| /freebsd/sys/contrib/dev/iwlwifi/mld/tests/ |
| H A D | link-selection.c | 92 struct cfg80211_bss_ies *ies; in setup_link() local 102 KUNIT_ALLOC_AND_ASSERT_SIZE(test, ies, sizeof(*ies) + elem_len); in setup_link() 103 memcpy(ies->data, elem, elem_len); in setup_link() 104 ies->len = elem_len; in setup_link() 105 rcu_assign_pointer(link->bss->beacon_ies, ies); in setup_link() 106 rcu_assign_pointer(link->bss->ies, ies); in setup_link()
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/ |
| H A D | scan.c | 249 iwl_mld_scan_add_2ghz_elems(struct iwl_mld *mld, const u8 *ies, in iwl_mld_scan_add_2ghz_elems() argument 261 offs = ieee80211_ie_split(ies, len, in iwl_mld_scan_add_2ghz_elems() 266 memcpy(newpos, ies, offs); in iwl_mld_scan_add_2ghz_elems() 274 memcpy(newpos, ies + offs, len - offs); in iwl_mld_scan_add_2ghz_elems() 361 struct ieee80211_scan_ies *ies, int n_channels) in iwl_mld_scan_fits() argument 365 (ies->common_ie_len + ies->len[NL80211_BAND_2GHZ] + in iwl_mld_scan_fits() 366 ies->len[NL80211_BAND_5GHZ] + ies->len[NL80211_BAND_6GHZ] <= in iwl_mld_scan_fits() 372 struct ieee80211_scan_ies *ies, in iwl_mld_scan_build_probe_req() argument 400 ies->ies[NL80211_BAND_2GHZ], in iwl_mld_scan_build_probe_req() 401 ies->len[NL80211_BAND_2GHZ], in iwl_mld_scan_build_probe_req() [all …]
|
| H A D | scan.h | 12 struct ieee80211_scan_ies *ies); 24 struct ieee80211_scan_ies *ies,
|
| H A D | link.c | 701 const struct cfg80211_bss_ies *ies; in iwl_mld_get_chan_load_from_element() local 708 ies = rcu_dereference(link_conf->bss->beacon_ies); in iwl_mld_get_chan_load_from_element() 710 ies = rcu_dereference(link_conf->bss->ies); in iwl_mld_get_chan_load_from_element() 712 if (ies) in iwl_mld_get_chan_load_from_element() 714 ies->data, ies->len); in iwl_mld_get_chan_load_from_element()
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | mesh.h | 19 int wpas_mesh_scan_result_text(const u8 *ies, size_t ies_len, char *buf, 30 const u8 *ies, size_t ie_len); 38 const u8 *ies, size_t ie_len) in wpa_mesh_notify_peer() argument
|
| H A D | rrm.c | 712 int wpas_get_op_chan_phy(int freq, const u8 *ies, size_t ies_len, in wpas_get_op_chan_phy() argument 721 ie = get_ie(ies, ies_len, WLAN_EID_HT_OPERATION); in wpas_get_op_chan_phy() 735 ie = get_ie(ies, ies_len, WLAN_EID_VHT_OPERATION); in wpas_get_op_chan_phy() 787 const u8 *ies = *ies_buf; in wpas_beacon_rep_add_frame_body() local 836 while (ies_len > 2 && 2U + ies[1] <= ies_len && rem_len > 0) { in wpas_beacon_rep_add_frame_body() 838 (eids && bitfield_is_set(eids, ies[0])) || in wpas_beacon_rep_add_frame_body() 839 (ext_eids && ies[0] == WLAN_EID_EXTENSION && ies[1] && in wpas_beacon_rep_add_frame_body() 840 bitfield_is_set(ext_eids, ies[2]))) { in wpas_beacon_rep_add_frame_body() 841 u8 elen = ies[1]; in wpas_beacon_rep_add_frame_body() 847 *pos++ = ies[0]; in wpas_beacon_rep_add_frame_body() [all …]
|
| H A D | scan.c | 298 struct wpabuf *ies = NULL; in wpa_supplicant_trigger_scan() local 311 ies = wpa_supplicant_extra_ies(wpa_s); in wpa_supplicant_trigger_scan() 312 if (ies) { in wpa_supplicant_trigger_scan() 313 params->extra_ies = wpabuf_head(ies); in wpa_supplicant_trigger_scan() 314 params->extra_ies_len = wpabuf_len(ies); in wpa_supplicant_trigger_scan() 318 if (ies) { in wpa_supplicant_trigger_scan() 319 wpabuf_free(ies); in wpa_supplicant_trigger_scan() 2125 const u8 *ies; in wpa_scan_get_vendor_ie() local 2128 ies = (const u8 *) (res + 1); in wpa_scan_get_vendor_ie() 2130 for_each_element_id(elem, WLAN_EID_VENDOR_SPECIFIC, ies, res->ie_len) { in wpa_scan_get_vendor_ie() [all …]
|
| H A D | scan.h | 95 const u8 *ies, size_t ies_len, int rate, 103 int wpas_channel_width_rssi_bump(const u8 *ies, size_t ies_len, 105 int wpas_adjust_snr_by_chanwidth(const u8 *ies, size_t ies_len,
|
| H A D | bss.c | 494 os_memcpy(bss->ies, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_add() 740 os_memcpy(bss->ies, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_update() 775 os_memcpy(bss->ies, res + 1, in wpa_bss_update() 1242 const u8 *ies; in wpa_bss_get_ie_beacon() local 1247 ies = wpa_bss_ie_ptr(bss); in wpa_bss_get_ie_beacon() 1248 ies += bss->ie_len; in wpa_bss_get_ie_beacon() 1249 return get_ie(ies, bss->beacon_ie_len, ie); in wpa_bss_get_ie_beacon() 1279 const u8 *ies; in wpa_bss_get_vendor_ie() local 1282 ies = wpa_bss_ie_ptr(bss); in wpa_bss_get_vendor_ie() 1284 for_each_element_id(elem, WLAN_EID_VENDOR_SPECIFIC, ies, bss->ie_len) { in wpa_bss_get_vendor_ie() [all …]
|
| H A D | sme.h | 20 const u8 *ies, size_t ies_len); 60 const u8 *ies, size_t ies_len) in sme_update_ft_ies() argument
|
| H A D | wmm_ac.c | 418 wmm_ac_process_param_elem(struct wpa_supplicant *wpa_s, const u8 *ies, in wmm_ac_process_param_elem() argument 427 if (ieee802_11_parse_elems(ies, ies_len, &elems, 1) == ParseFailed) { in wmm_ac_process_param_elem() 463 static int wmm_ac_init(struct wpa_supplicant *wpa_s, const u8 *ies, in wmm_ac_init() argument 474 if (!ies || !(wmm_params->info_bitmap & WMM_PARAMS_UAPSD_QUEUES_INFO)) { in wmm_ac_init() 483 assoc_data = wmm_ac_process_param_elem(wpa_s, ies, ies_len); in wmm_ac_init() 528 void wmm_ac_notify_assoc(struct wpa_supplicant *wpa_s, const u8 *ies, in wmm_ac_notify_assoc() argument 531 if (wmm_ac_init(wpa_s, ies, ies_len, wmm_params)) in wmm_ac_notify_assoc()
|
| H A D | mesh.c | 282 params->ies = ifmsh->mconf->rsn_ie; in wpas_mesh_complete() 583 const u8 *ies, size_t ie_len) in wpa_mesh_notify_peer() argument 590 if (ieee802_11_parse_elems(ies, ie_len, &elems, 0) == ParseFailed) { in wpa_mesh_notify_peer() 735 static int mesh_attr_text(const u8 *ies, size_t ies_len, char *buf, char *end) in mesh_attr_text() argument 742 if (ieee802_11_parse_elems(ies, ies_len, &elems, 0) == ParseFailed) in mesh_attr_text() 823 int wpas_mesh_scan_result_text(const u8 *ies, size_t ies_len, char *buf, in wpas_mesh_scan_result_text() argument 826 return mesh_attr_text(ies, ies_len, buf, end); in wpas_mesh_scan_result_text()
|
| H A D | bss.h | 144 u8 ies[]; member 149 return bss->ies; in wpa_bss_ie_ptr()
|
| /freebsd/contrib/wpa/src/rsn_supp/ |
| H A D | wpa.h | 56 int (*update_ft_ies)(void *ctx, const u8 *md, const u8 *ies, 59 const u8 *ies, size_t ies_len); 488 int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len); 490 int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len, 493 int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, 498 int wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, 513 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params() argument 524 static inline int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len, in wpa_ft_add_mdie() argument 531 wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_process_response() argument 547 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_validate_reassoc_resp() argument [all …]
|
| H A D | wpa_ft.c | 112 int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params() argument 119 if (!get_ie(ies, ies_len, WLAN_EID_MOBILITY_DOMAIN)) { in wpa_sm_set_ft_params() 130 if (wpa_ft_parse_ies(ies, ies_len, &ft, sm->key_mgmt, false) < 0) in wpa_sm_set_ft_params() 584 int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_process_response() argument 600 wpa_hexdump(MSG_DEBUG, "FT: Response IEs", ies, ies_len); in wpa_ft_process_response() 624 if (wpa_ft_parse_ies(ies, ies_len, &parse, sm->key_mgmt, in wpa_ft_process_response() 1021 int wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, in wpa_ft_validate_reassoc_resp() argument 1036 wpa_hexdump(MSG_DEBUG, "FT: Response IEs", ies, ies_len); in wpa_ft_validate_reassoc_resp() 1049 if (wpa_ft_parse_ies(ies, ies_len, &parse, sm->key_mgmt, true) < 0) { in wpa_ft_validate_reassoc_resp()
|
| H A D | wpa_i.h | 340 const u8 *ies, size_t ies_len) in wpa_sm_update_ft_ies() argument 343 return sm->ctx->update_ft_ies(sm->ctx->ctx, md, ies, ies_len); in wpa_sm_update_ft_ies() 349 const u8 *ies, size_t ies_len) in wpa_sm_send_ft_action() argument 353 ies, ies_len); in wpa_sm_send_ft_action()
|
| /freebsd/sys/net80211/ |
| H A D | ieee80211_node.c | 1120 ieee80211_ies_init(struct ieee80211_ies *ies, const uint8_t *data, int len) in ieee80211_ies_init() argument 1123 memset(ies, 0, offsetof(struct ieee80211_ies, data)); in ieee80211_ies_init() 1124 if (ies->data != NULL && ies->len != len) { in ieee80211_ies_init() 1126 IEEE80211_FREE(ies->data, M_80211_NODE_IE); in ieee80211_ies_init() 1127 ies->data = NULL; in ieee80211_ies_init() 1129 if (ies->data == NULL) { in ieee80211_ies_init() 1130 ies->data = (uint8_t *) IEEE80211_MALLOC(len, M_80211_NODE_IE, in ieee80211_ies_init() 1132 if (ies->data == NULL) { in ieee80211_ies_init() 1133 ies->len = 0; in ieee80211_ies_init() 1138 memcpy(ies->data, data, len); in ieee80211_ies_init() [all …]
|
| /freebsd/contrib/wpa/src/common/ |
| H A D | ieee802_11_common.h | 29 } ies[MAX_NOF_MB_IES_SUPPORTED]; member 207 int ieee802_11_ie_count(const u8 *ies, size_t ies_len); 208 struct wpabuf * ieee802_11_vendor_ie_concat(const u8 *ies, size_t ies_len, 272 const u8 * get_ie(const u8 *ies, size_t len, u8 eid); 273 const u8 * get_ie_ext(const u8 *ies, size_t len, u8 ext); 274 const u8 * get_vendor_ie(const u8 *ies, size_t len, u32 vendor_type); 370 const u8 * get_ml_ie(const u8 *ies, size_t len, u8 type);
|
| H A D | ieee802_11_common.c | 598 elems->mb_ies.ies[elems->mb_ies.nof_ies].ie = pos; in __ieee802_11_parse_elems() 599 elems->mb_ies.ies[elems->mb_ies.nof_ies].ie_len = elen; in __ieee802_11_parse_elems() 1110 int ieee802_11_ie_count(const u8 *ies, size_t ies_len) in ieee802_11_ie_count() argument 1115 if (ies == NULL) in ieee802_11_ie_count() 1118 for_each_element(elem, ies, ies_len) in ieee802_11_ie_count() 1125 struct wpabuf * ieee802_11_vendor_ie_concat(const u8 *ies, size_t ies_len, in ieee802_11_vendor_ie_concat() argument 1131 for_each_element_id(elem, WLAN_EID_VENDOR_SPECIFIC, ies, ies_len) { in ieee802_11_vendor_ie_concat() 1150 for_each_element_id(elem, WLAN_EID_VENDOR_SPECIFIC, ies, ies_len) { in ieee802_11_vendor_ie_concat() 2345 info->ies[info->nof_ies].ie = elem->data; in mb_ies_info_by_ies() 2346 info->ies[info->nof_ies].ie_len = elem->datalen; in mb_ies_info_by_ies() [all …]
|
| /freebsd/contrib/wpa/src/p2p/ |
| H A D | p2p_dev_disc.c | 313 struct wpabuf *ies; in p2p_process_go_disc_req() local 317 ies = p2p_build_probe_resp_ies(p2p, NULL, 0); in p2p_process_go_disc_req() 318 if (ies == NULL) in p2p_process_go_disc_req() 325 ies) < 0) { in p2p_process_go_disc_req() 328 wpabuf_free(ies); in p2p_process_go_disc_req()
|
| H A D | p2p.c | 257 struct wpabuf *ies; in p2p_listen_in_find() local 291 ies = p2p_build_probe_resp_ies(p2p, NULL, 0); in p2p_listen_in_find() 292 if (ies == NULL) in p2p_listen_in_find() 300 ies) < 0) { in p2p_listen_in_find() 306 wpabuf_free(ies); in p2p_listen_in_find() 313 struct wpabuf *ies; in p2p_listen() local 342 ies = p2p_build_probe_resp_ies(p2p, NULL, 0); in p2p_listen() 343 if (ies == NULL) in p2p_listen() 348 if (p2p->cfg->start_listen(p2p->cfg->cb_ctx, freq, timeout, ies) < 0) { in p2p_listen() 351 wpabuf_free(ies); in p2p_listen() [all …]
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | taxonomy.c | 85 static void ie_to_string(char *fstr, size_t fstr_len, const struct wpabuf *ies) in ie_to_string() argument 118 if (!ies) in ie_to_string() 120 ie = wpabuf_head(ies); in ie_to_string() 121 ie_len = wpabuf_len(ies); in ie_to_string()
|
| H A D | wpa_auth.h | 524 u16 auth_transaction, const u8 *ies, size_t ies_len, 527 const u8 *ies, size_t ies_len), 529 int wpa_ft_validate_reassoc(struct wpa_state_machine *sm, const u8 *ies, 583 const u8 *ies, size_t ies_len, 585 int wpa_fils_validate_key_confirm(struct wpa_state_machine *sm, const u8 *ies,
|
| /freebsd/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | scan.c | 701 static u8 *iwl_mvm_copy_and_insert_ds_elem(struct iwl_mvm *mvm, const u8 *ies, in iwl_mvm_copy_and_insert_ds_elem() argument 714 memcpy(newpos, ies, len); in iwl_mvm_copy_and_insert_ds_elem() 718 offs = ieee80211_ie_split(ies, len, in iwl_mvm_copy_and_insert_ds_elem() 723 memcpy(newpos, ies, offs); in iwl_mvm_copy_and_insert_ds_elem() 731 memcpy(newpos, ies + offs, len - offs); in iwl_mvm_copy_and_insert_ds_elem() 753 struct ieee80211_scan_ies *ies, in iwl_mvm_build_scan_probe() argument 787 ies->ies[NL80211_BAND_2GHZ], in iwl_mvm_build_scan_probe() 788 ies->len[NL80211_BAND_2GHZ], in iwl_mvm_build_scan_probe() 794 memcpy(pos, ies->ies[NL80211_BAND_5GHZ], in iwl_mvm_build_scan_probe() 795 ies->len[NL80211_BAND_5GHZ]); in iwl_mvm_build_scan_probe() [all …]
|
| H A D | link.c | 470 const struct cfg80211_bss_ies *ies; in iwl_mvm_get_chan_load() local 476 ies = rcu_dereference(link_conf->bss->beacon_ies); in iwl_mvm_get_chan_load() 478 ies = rcu_dereference(link_conf->bss->ies); in iwl_mvm_get_chan_load() 480 if (ies) in iwl_mvm_get_chan_load() 482 ies->data, ies->len); in iwl_mvm_get_chan_load()
|