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()
644 struct ieee802_11_elems *elems) in mesh_mpm_add_peer() argument
663 if (copy_supp_rates(wpa_s, sta, elems)) { in mesh_mpm_add_peer()
672 copy_sta_ht_capab(data, sta, elems->ht_capabilities); in mesh_mpm_add_peer()
677 copy_sta_vht_capab(data, sta, elems->vht_capabilities); in mesh_mpm_add_peer()
678 set_sta_vht_opmode(data, sta, elems->vht_opmode_notif); in mesh_mpm_add_peer()
721 struct ieee802_11_elems *elems) in wpa_mesh_new_mesh_peer() argument
728 sta = mesh_mpm_add_peer(wpa_s, addr, elems); in wpa_mesh_new_mesh_peer()
1011 struct ieee802_11_elems elems; in mesh_mpm_action_rx() local
1052 if (ieee802_11_parse_elems(ies, ie_len, &elems, 0) == ParseFailed) { in mesh_mpm_action_rx()
1056 if (!elems.peer_mgmt) { in mesh_mpm_action_rx()
1062 if (!elems.mesh_id || !elems.mesh_config) { in mesh_mpm_action_rx()
1068 if (!matches_local(wpa_s, &elems)) { in mesh_mpm_action_rx()
1076 elems.peer_mgmt, in mesh_mpm_action_rx()
1077 elems.peer_mgmt_len, in mesh_mpm_action_rx()
1099 sta = mesh_mpm_add_peer(wpa_s, mgmt->sa, &elems); in mesh_mpm_action_rx()
1118 mesh_rsn_process_ampe(wpa_s, sta, &elems, in mesh_mpm_action_rx()