Home
last modified time | relevance | path

Searched refs:mgmt (Results 1 – 25 of 45) sorted by relevance

12

/external/wpa_supplicant_8/src/ap/
Dwnm_ap.c52 struct ieee80211_mgmt *mgmt; in ieee802_11_send_wnmsleep_resp() local
136 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len + in ieee802_11_send_wnmsleep_resp()
140 if (mgmt == NULL) { in ieee802_11_send_wnmsleep_resp()
146 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
147 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
148 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
149 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_wnmsleep_resp()
151 mgmt->u.action.category = WLAN_ACTION_WNM; in ieee802_11_send_wnmsleep_resp()
152 mgmt->u.action.u.wnm_sleep_resp.action = WNM_SLEEP_MODE_RESP; in ieee802_11_send_wnmsleep_resp()
153 mgmt->u.action.u.wnm_sleep_resp.dialogtoken = dialog_token; in ieee802_11_send_wnmsleep_resp()
[all …]
Dieee802_11.c87 const struct ieee80211_mgmt *mgmt, size_t len,
1271 const struct ieee80211_mgmt *mgmt, size_t len, in handle_auth_sae() argument
1288 pos = mgmt->u.auth.variable; in handle_auth_sae()
1289 end = ((const u8 *) mgmt) + len; in handle_auth_sae()
1291 send_auth_reply(hapd, sta, mgmt->sa, mgmt->bssid, WLAN_AUTH_SAE, in handle_auth_sae()
1299 send_auth_reply(hapd, sta, mgmt->sa, mgmt->bssid, WLAN_AUTH_SAE, in handle_auth_sae()
1344 pos = mgmt->u.auth.variable; in handle_auth_sae()
1345 end = ((const u8 *) mgmt) + len; in handle_auth_sae()
1378 resp = auth_sae_send_commit(hapd, sta, mgmt->bssid, 0, in handle_auth_sae()
1414 pos = mgmt->u.auth.variable; in handle_auth_sae()
[all …]
Dwmm.c295 const struct ieee80211_mgmt *mgmt, in wmm_addts_req() argument
298 const u8 *end = ((const u8 *) mgmt) + len; in wmm_addts_req()
309 mgmt->u.action.u.wmm_action.dialog_token, in wmm_addts_req()
310 MAC2STR(mgmt->sa)); in wmm_addts_req()
316 wmm_send_action(hapd, mgmt->sa, &tspec_resp, WMM_ACTION_CODE_ADDTS_RESP, in wmm_addts_req()
317 mgmt->u.action.u.wmm_action.dialog_token, res); in wmm_addts_req()
322 const struct ieee80211_mgmt *mgmt, size_t len) in hostapd_wmm_action() argument
326 const u8 *pos = ((const u8 *) mgmt) + IEEE80211_HDRLEN + 4; in hostapd_wmm_action()
328 struct sta_info *sta = ap_get_sta(hapd, mgmt->sa); in hostapd_wmm_action()
334 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in hostapd_wmm_action()
[all …]
Dctrl_iface_ap.c459 struct ieee80211_mgmt *mgmt; in p2p_manager_disconnect() local
463 mgmt = os_zalloc(sizeof(*mgmt) + 100); in p2p_manager_disconnect()
464 if (mgmt == NULL) in p2p_manager_disconnect()
467 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, stype); in p2p_manager_disconnect()
471 fc2str(le_to_host16(mgmt->frame_control))); in p2p_manager_disconnect()
473 os_memcpy(mgmt->da, addr, ETH_ALEN); in p2p_manager_disconnect()
474 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect()
475 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect()
477 mgmt->u.deauth.reason_code = in p2p_manager_disconnect()
479 pos = mgmt->u.deauth.variable; in p2p_manager_disconnect()
[all …]
Drrm.c98 const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *) buf; in hostapd_handle_radio_msmt_report() local
103 token = mgmt->u.action.u.rrm.dialog_token; in hostapd_handle_radio_msmt_report()
104 pos = mgmt->u.action.u.rrm.variable; in hostapd_handle_radio_msmt_report()
124 hostapd_handle_beacon_report(hapd, mgmt->sa, token, in hostapd_handle_radio_msmt_report()
281 const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *) buf; in hostapd_handle_nei_report_req() local
296 token = mgmt->u.action.u.rrm.dialog_token; in hostapd_handle_nei_report_req()
297 pos = mgmt->u.action.u.rrm.variable; in hostapd_handle_nei_report_req()
332 hostapd_send_nei_report_resp(hapd, mgmt->sa, token, &ssid, lci, civic, in hostapd_handle_nei_report_req()
340 const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *) buf; in hostapd_handle_radio_measurement() local
350 mgmt->u.action.u.rrm.action, MAC2STR(mgmt->sa)); in hostapd_handle_radio_measurement()
[all …]
Dieee802_11_shared.c56 struct ieee80211_mgmt *mgmt; in ieee802_11_send_sa_query_req() local
102 mgmt = os_zalloc(sizeof(*mgmt) + oci_ie_len); in ieee802_11_send_sa_query_req()
103 if (!mgmt) { in ieee802_11_send_sa_query_req()
110 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_sa_query_req()
112 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_sa_query_req()
113 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req()
114 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req()
115 mgmt->u.action.category = WLAN_ACTION_SA_QUERY; in ieee802_11_send_sa_query_req()
116 mgmt->u.action.u.sa_query_req.action = WLAN_SA_QUERY_REQUEST; in ieee802_11_send_sa_query_req()
117 os_memcpy(mgmt->u.action.u.sa_query_req.trans_id, trans_id, in ieee802_11_send_sa_query_req()
[all …]
Dieee802_11_ht.c208 const struct ieee80211_mgmt *mgmt, size_t len) in hostapd_2040_coex_action() argument
215 const u8 *start = (const u8 *) mgmt; in hostapd_2040_coex_action()
221 MACSTR, MAC2STR(mgmt->sa)); in hostapd_2040_coex_action()
223 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in hostapd_2040_coex_action()
225 mgmt->u.action.u.public_action.action); in hostapd_2040_coex_action()
269 sta = ap_get_sta(hapd, mgmt->sa); in hostapd_2040_coex_action()
276 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action()
286 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action()
317 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action()
333 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action()
Dbeacon.c812 const struct ieee80211_mgmt *mgmt, size_t len, in handle_probe_req() argument
833 ie = ((const u8 *) mgmt) + IEEE80211_HDRLEN; in handle_probe_req()
835 sta_track_add(hapd->iface, mgmt->sa, ssi_signal); in handle_probe_req()
838 ret = hostapd_allowed_address(hapd, mgmt->sa, (const u8 *) mgmt, len, in handle_probe_req()
843 " due to ACL reject ", MAC2STR(mgmt->sa)); in handle_probe_req()
849 mgmt->sa, mgmt->da, mgmt->bssid, in handle_probe_req()
858 MAC2STR(mgmt->sa)); in handle_probe_req()
865 MAC2STR(mgmt->sa)); in handle_probe_req()
920 "broadcast SSID ignored", MAC2STR(mgmt->sa)); in handle_probe_req()
939 if ((sta = ap_get_sta(hapd, mgmt->sa)) != NULL) { in handle_probe_req()
[all …]
Ddrv_callbacks.c1289 struct ieee80211_mgmt *mgmt; in hostapd_action_rx() local
1300 mgmt = (struct ieee80211_mgmt *) drv_mgmt->frame; in hostapd_action_rx()
1301 fc = le_to_host16(mgmt->frame_control); in hostapd_action_rx()
1305 action = (u8 *) &mgmt->u.action.u; in hostapd_action_rx()
1308 mgmt->u.action.category, *action, in hostapd_action_rx()
1309 MAC2STR(mgmt->sa), MAC2STR(mgmt->da), (int) plen); in hostapd_action_rx()
1311 sta = ap_get_sta(hapd, mgmt->sa); in hostapd_action_rx()
1317 if (mgmt->u.action.category == WLAN_ACTION_FT) { in hostapd_action_rx()
1318 wpa_ft_action_rx(sta->wpa_sm, (u8 *) &mgmt->u.action, plen); in hostapd_action_rx()
1322 if (mgmt->u.action.category == WLAN_ACTION_SA_QUERY) { in hostapd_action_rx()
[all …]
Dap_list.c170 const struct ieee80211_mgmt *mgmt, in ap_list_process_beacon() argument
181 ap = ap_get_ap(iface, mgmt->bssid); in ap_list_process_beacon()
183 ap = ap_ap_add(iface, mgmt->bssid); in ap_list_process_beacon()
Dwmm.h20 const struct ieee80211_mgmt *mgmt, size_t len);
Drrm.h30 const struct ieee80211_mgmt *mgmt,
Dap_list.h36 const struct ieee80211_mgmt *mgmt,
/external/wpa_supplicant_8/src/fst/
Dfst_session.c359 const struct ieee80211_mgmt *mgmt, in fst_session_handle_setup_request() argument
378 (((const u8 *) mgmt) + IEEE80211_HDRLEN + 1); in fst_session_handle_setup_request()
395 fst_iface_update_mb_ie(iface, mgmt->sa, (const u8 *) (req + 1), in fst_session_handle_setup_request()
399 MAC2STR(mgmt->sa)); in fst_session_handle_setup_request()
402 new_iface = fst_group_get_peer_other_connection(iface, mgmt->sa, in fst_session_handle_setup_request()
415 s = fst_find_session_in_progress(mgmt->sa, g); in fst_session_handle_setup_request()
434 os_memcmp(mgmt->da, mgmt->sa, ETH_ALEN) > 0) { in fst_session_handle_setup_request()
438 MAC2STR(mgmt->da)); in fst_session_handle_setup_request()
485 fst_session_set_peer_addr(s, mgmt->sa, true); in fst_session_handle_setup_request()
502 const struct ieee80211_mgmt *mgmt, in fst_session_handle_setup_response() argument
[all …]
Dfst.c166 void fst_rx_action(struct fst_iface *iface, const struct ieee80211_mgmt *mgmt, in fst_rx_action() argument
169 if (fst_iface_is_connected(iface, mgmt->sa, false)) in fst_rx_action()
170 fst_session_on_action_rx(iface, mgmt, len); in fst_rx_action()
174 MACSTR, MAC2STR(mgmt->sa)); in fst_rx_action()
Dfst_session.h35 const struct ieee80211_mgmt *mgmt,
56 const struct ieee80211_mgmt *mgmt, size_t len);
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_event.c161 const struct ieee80211_mgmt *mgmt; in mlme_event_auth() local
176 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_auth()
177 if (len < 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth()
183 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth()
186 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN); in mlme_event_auth()
187 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg); in mlme_event_auth()
189 le_to_host16(mgmt->u.auth.auth_transaction); in mlme_event_auth()
190 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code); in mlme_event_auth()
191 if (len > 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth()
192 event.auth.ies = mgmt->u.auth.variable; in mlme_event_auth()
[all …]
Ddriver_hostap.c1038 struct ieee80211_mgmt mgmt; in hostap_sta_deauth() local
1050 memset(&mgmt, 0, sizeof(mgmt)); in hostap_sta_deauth()
1051 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in hostap_sta_deauth()
1053 memcpy(mgmt.da, addr, ETH_ALEN); in hostap_sta_deauth()
1054 memcpy(mgmt.sa, own_addr, ETH_ALEN); in hostap_sta_deauth()
1055 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in hostap_sta_deauth()
1056 mgmt.u.deauth.reason_code = host_to_le16(reason); in hostap_sta_deauth()
1057 return hostap_send_mlme(drv, (u8 *) &mgmt, IEEE80211_HDRLEN + in hostap_sta_deauth()
1058 sizeof(mgmt.u.deauth), 0, 0, NULL, 0, 0, 0); in hostap_sta_deauth()
1086 struct ieee80211_mgmt mgmt; in hostap_sta_disassoc() local
[all …]
Ddriver_atheros.c860 const struct ieee80211_mgmt *mgmt; in atheros_raw_receive() local
869 mgmt = (const struct ieee80211_mgmt *) buf; in atheros_raw_receive()
871 fc = le_to_host16(mgmt->frame_control); in atheros_raw_receive()
886 event.rx_probe_req.sa = mgmt->sa; in atheros_raw_receive()
887 event.rx_probe_req.da = mgmt->da; in atheros_raw_receive()
888 event.rx_probe_req.bssid = mgmt->bssid; in atheros_raw_receive()
896 (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) == 0 || in atheros_raw_receive()
897 is_broadcast_ether_addr(mgmt->bssid))) { in atheros_raw_receive()
905 if (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) != 0) { in atheros_raw_receive()
913 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req)) in atheros_raw_receive()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dpasn_supplicant.c1219 const struct ieee80211_mgmt *mgmt, size_t len) in wpas_pasn_auth_rx() argument
1233 if (!wpa_s->pasn_auth_work || !mgmt || in wpas_pasn_auth_rx()
1238 if ((mgmt->frame_control & fc) != fc) in wpas_pasn_auth_rx()
1242 if (os_memcmp(mgmt->da, wpa_s->own_addr, ETH_ALEN) != 0 || in wpas_pasn_auth_rx()
1243 os_memcmp(mgmt->sa, pasn->bssid, ETH_ALEN) != 0 || in wpas_pasn_auth_rx()
1244 os_memcmp(mgmt->bssid, pasn->bssid, ETH_ALEN) != 0) in wpas_pasn_auth_rx()
1248 if (mgmt->u.auth.auth_alg != host_to_le16(WLAN_AUTH_PASN)) in wpas_pasn_auth_rx()
1251 if (mgmt->u.auth.auth_transaction != in wpas_pasn_auth_rx()
1255 le_to_host16(mgmt->u.auth.auth_transaction), in wpas_pasn_auth_rx()
1260 status = le_to_host16(mgmt->u.auth.status_code); in wpas_pasn_auth_rx()
[all …]
Dwnm_sta.c59 struct ieee80211_mgmt *mgmt; in ieee802_11_send_wnmsleep_req() local
153 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len + wnmtfs_ie_len + in ieee802_11_send_wnmsleep_req()
155 if (mgmt == NULL) { in ieee802_11_send_wnmsleep_req()
163 os_memcpy(mgmt->da, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req()
164 os_memcpy(mgmt->sa, wpa_s->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_req()
165 os_memcpy(mgmt->bssid, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req()
166 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_wnmsleep_req()
168 mgmt->u.action.category = WLAN_ACTION_WNM; in ieee802_11_send_wnmsleep_req()
169 mgmt->u.action.u.wnm_sleep_req.action = WNM_SLEEP_MODE_REQ; in ieee802_11_send_wnmsleep_req()
170 mgmt->u.action.u.wnm_sleep_req.dialogtoken = 1; in ieee802_11_send_wnmsleep_req()
[all …]
Dmesh_mpm.h28 const struct ieee80211_mgmt *mgmt, size_t len);
34 const struct ieee80211_mgmt *mgmt, in mesh_mpm_action_rx() argument
Dmesh_mpm.c815 const struct ieee80211_mgmt *mgmt; in wpa_mesh_new_mesh_peer() local
818 mgmt = wpabuf_head(data->mesh_pending_auth); in wpa_mesh_new_mesh_peer()
821 os_memcmp(mgmt->sa, addr, ETH_ALEN) == 0) { in wpa_mesh_new_mesh_peer()
1115 const struct ieee80211_mgmt *mgmt, size_t len) in mesh_mpm_action_rx() argument
1130 if (mgmt->u.action.category != WLAN_ACTION_SELF_PROTECTED) in mesh_mpm_action_rx()
1133 action_field = mgmt->u.action.u.slf_prot_action.action; in mesh_mpm_action_rx()
1139 ies = mgmt->u.action.u.slf_prot_action.variable; in mesh_mpm_action_rx()
1140 ie_len = (const u8 *) mgmt + len - in mesh_mpm_action_rx()
1141 mgmt->u.action.u.slf_prot_action.variable; in mesh_mpm_action_rx()
1208 sta = ap_get_sta(hapd, mgmt->sa); in mesh_mpm_action_rx()
[all …]
Devents.c4220 const struct ieee80211_mgmt *mgmt; in wpas_event_rx_mgmt_action() local
4228 mgmt = (const struct ieee80211_mgmt *) frame; in wpas_event_rx_mgmt_action()
4235 MAC2STR(mgmt->sa), category, (int) plen, freq); in wpas_event_rx_mgmt_action()
4238 wmm_ac_rx_action(wpa_s, mgmt->da, mgmt->sa, payload, plen); in wpas_event_rx_mgmt_action()
4251 sme_sa_query_rx(wpa_s, mgmt->sa, payload, plen); in wpas_event_rx_mgmt_action()
4257 if (mgmt->u.action.category == WLAN_ACTION_WNM) { in wpas_event_rx_mgmt_action()
4258 ieee802_11_rx_wnm_action(wpa_s, mgmt, len); in wpas_event_rx_mgmt_action()
4264 if ((mgmt->u.action.category == WLAN_ACTION_PUBLIC || in wpas_event_rx_mgmt_action()
4265 mgmt->u.action.category == WLAN_ACTION_PROTECTED_DUAL) && in wpas_event_rx_mgmt_action()
4266 gas_query_rx(wpa_s->gas, mgmt->da, mgmt->sa, mgmt->bssid, in wpas_event_rx_mgmt_action()
[all …]
Dap.c697 const struct ieee80211_mgmt *mgmt; in ap_public_action_rx() local
699 mgmt = (const struct ieee80211_mgmt *) buf; in ap_public_action_rx()
702 if (mgmt->u.action.category != WLAN_ACTION_PUBLIC) in ap_public_action_rx()
704 wpas_p2p_rx_action(wpa_s, mgmt->da, mgmt->sa, mgmt->bssid, in ap_public_action_rx()
705 mgmt->u.action.category, in ap_public_action_rx()
762 const struct ieee80211_mgmt *mgmt; in ap_vendor_action_rx() local
764 mgmt = (const struct ieee80211_mgmt *) buf; in ap_vendor_action_rx()
767 wpas_p2p_rx_action(wpa_s, mgmt->da, mgmt->sa, mgmt->bssid, in ap_vendor_action_rx()
768 mgmt->u.action.category, in ap_vendor_action_rx()

12