Lines Matching refs:elems

124 			   struct ieee802_11_elems *elems)  in copy_supp_rates()  argument
126 if (!elems->supp_rates) { in copy_supp_rates()
132 if (elems->supp_rates_len + elems->ext_supp_rates_len > in copy_supp_rates()
136 " %d+%d", MAC2STR(sta->addr), elems->supp_rates_len, in copy_supp_rates()
137 elems->ext_supp_rates_len); in copy_supp_rates()
143 elems->supp_rates, elems->supp_rates_len, in copy_supp_rates()
144 elems->ext_supp_rates, elems->ext_supp_rates_len); in copy_supp_rates()
152 struct ieee802_11_elems *elems) in matches_local() argument
156 if (elems->mesh_config_len < 5) in matches_local()
159 return (mconf->meshid_len == elems->mesh_id_len && in matches_local()
160 os_memcmp(mconf->meshid, elems->mesh_id, in matches_local()
161 elems->mesh_id_len) == 0 && in matches_local()
162 mconf->mesh_pp_id == elems->mesh_config[0] && in matches_local()
163 mconf->mesh_pm_id == elems->mesh_config[1] && in matches_local()
164 mconf->mesh_cc_id == elems->mesh_config[2] && in matches_local()
165 mconf->mesh_sp_id == elems->mesh_config[3] && in matches_local()
166 mconf->mesh_auth_id == elems->mesh_config[4]); in matches_local()
726 struct ieee802_11_elems *elems) in mesh_mpm_add_peer() argument
735 if (elems->mesh_config_len >= 7 && in mesh_mpm_add_peer()
736 !(elems->mesh_config[6] & MESH_CAP_ACCEPT_ADDITIONAL_PEER)) { in mesh_mpm_add_peer()
755 if (copy_supp_rates(wpa_s, sta, elems)) { in mesh_mpm_add_peer()
763 copy_sta_ht_capab(data, sta, elems->ht_capabilities); in mesh_mpm_add_peer()
765 oper = (struct ieee80211_ht_operation *) elems->ht_operation; in mesh_mpm_add_peer()
779 copy_sta_vht_capab(data, sta, elems->vht_capabilities); in mesh_mpm_add_peer()
780 copy_sta_vht_oper(data, sta, elems->vht_operation); in mesh_mpm_add_peer()
781 set_sta_vht_opmode(data, sta, elems->opmode_notif); in mesh_mpm_add_peer()
786 elems->he_capabilities, elems->he_capabilities_len); in mesh_mpm_add_peer()
787 copy_sta_he_6ghz_capab(data, sta, elems->he_6ghz_band_cap); in mesh_mpm_add_peer()
791 elems->he_capabilities, in mesh_mpm_add_peer()
792 elems->he_capabilities_len, in mesh_mpm_add_peer()
793 elems->eht_capabilities, in mesh_mpm_add_peer()
794 elems->eht_capabilities_len); in mesh_mpm_add_peer()
844 struct ieee802_11_elems *elems) in wpa_mesh_new_mesh_peer() argument
851 sta = mesh_mpm_add_peer(wpa_s, addr, elems); in wpa_mesh_new_mesh_peer()
1163 struct ieee802_11_elems elems; in mesh_mpm_action_rx() local
1206 if (ieee802_11_parse_elems(ies, ie_len, &elems, 0) == ParseFailed) { in mesh_mpm_action_rx()
1210 if (!elems.peer_mgmt) { in mesh_mpm_action_rx()
1216 if (!elems.mesh_id || !elems.mesh_config) { in mesh_mpm_action_rx()
1222 if (!matches_local(wpa_s, &elems)) { in mesh_mpm_action_rx()
1230 elems.peer_mgmt, in mesh_mpm_action_rx()
1231 elems.peer_mgmt_len, in mesh_mpm_action_rx()
1257 sta = mesh_mpm_add_peer(wpa_s, mgmt->sa, &elems); in mesh_mpm_action_rx()
1278 res = mesh_rsn_process_ampe(wpa_s, sta, &elems, in mesh_mpm_action_rx()
1295 if (action_field == PLINK_OPEN && elems.rsn_ie) { in mesh_mpm_action_rx()
1299 res = wpa_parse_wpa_ie_rsn(elems.rsn_ie - 2, in mesh_mpm_action_rx()
1300 elems.rsn_ie_len + 2, in mesh_mpm_action_rx()
1306 wpa_hexdump(MSG_DEBUG, "RSN IE", elems.rsn_ie, in mesh_mpm_action_rx()
1307 elems.rsn_ie_len); in mesh_mpm_action_rx()
1334 if (ocv_verify_tx_params(elems.oci, elems.oci_len, &ci, in mesh_mpm_action_rx()