Lines Matching refs:elems
122 struct ieee802_11_elems *elems) in copy_supp_rates() argument
124 if (!elems->supp_rates) { in copy_supp_rates()
130 if (elems->supp_rates_len + elems->ext_supp_rates_len > in copy_supp_rates()
134 " %d+%d", MAC2STR(sta->addr), elems->supp_rates_len, in copy_supp_rates()
135 elems->ext_supp_rates_len); in copy_supp_rates()
141 elems->supp_rates, elems->supp_rates_len, in copy_supp_rates()
142 elems->ext_supp_rates, elems->ext_supp_rates_len); in copy_supp_rates()
150 struct ieee802_11_elems *elems) in matches_local() argument
154 if (elems->mesh_config_len < 5) in matches_local()
157 return (mconf->meshid_len == elems->mesh_id_len && in matches_local()
158 os_memcmp(mconf->meshid, elems->mesh_id, in matches_local()
159 elems->mesh_id_len) == 0 && in matches_local()
160 mconf->mesh_pp_id == elems->mesh_config[0] && in matches_local()
161 mconf->mesh_pm_id == elems->mesh_config[1] && in matches_local()
162 mconf->mesh_cc_id == elems->mesh_config[2] && in matches_local()
163 mconf->mesh_sp_id == elems->mesh_config[3] && in matches_local()
164 mconf->mesh_auth_id == elems->mesh_config[4]); in matches_local()
645 struct ieee802_11_elems *elems) in mesh_mpm_add_peer() argument
656 if (elems->mesh_config_len >= 7 && in mesh_mpm_add_peer()
657 !(elems->mesh_config[6] & MESH_CAP_ACCEPT_ADDITIONAL_PEER)) { in mesh_mpm_add_peer()
675 if (copy_supp_rates(wpa_s, sta, elems)) { in mesh_mpm_add_peer()
684 copy_sta_ht_capab(data, sta, elems->ht_capabilities); in mesh_mpm_add_peer()
686 oper = (struct ieee80211_ht_operation *) elems->ht_operation; in mesh_mpm_add_peer()
700 copy_sta_vht_capab(data, sta, elems->vht_capabilities); in mesh_mpm_add_peer()
701 set_sta_vht_opmode(data, sta, elems->vht_opmode_notif); in mesh_mpm_add_peer()
745 struct ieee802_11_elems *elems) in wpa_mesh_new_mesh_peer() argument
752 sta = mesh_mpm_add_peer(wpa_s, addr, elems); in wpa_mesh_new_mesh_peer()
1068 struct ieee802_11_elems elems; in mesh_mpm_action_rx() local
1111 if (ieee802_11_parse_elems(ies, ie_len, &elems, 0) == ParseFailed) { in mesh_mpm_action_rx()
1115 if (!elems.peer_mgmt) { in mesh_mpm_action_rx()
1121 if (!elems.mesh_id || !elems.mesh_config) { in mesh_mpm_action_rx()
1127 if (!matches_local(wpa_s, &elems)) { in mesh_mpm_action_rx()
1135 elems.peer_mgmt, in mesh_mpm_action_rx()
1136 elems.peer_mgmt_len, in mesh_mpm_action_rx()
1162 sta = mesh_mpm_add_peer(wpa_s, mgmt->sa, &elems); in mesh_mpm_action_rx()
1183 res = mesh_rsn_process_ampe(wpa_s, sta, &elems, in mesh_mpm_action_rx()