/external/wpa_supplicant_8/src/ap/ |
D | wnm_ap.c | 52 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 …]
|
D | ieee802_11.c | 84 const struct ieee80211_mgmt *mgmt, size_t len, 1210 const struct ieee80211_mgmt *mgmt, size_t len, in handle_auth_sae() argument 1227 pos = mgmt->u.auth.variable; in handle_auth_sae() 1228 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1230 send_auth_reply(hapd, sta, mgmt->sa, mgmt->bssid, WLAN_AUTH_SAE, in handle_auth_sae() 1238 send_auth_reply(hapd, sta, mgmt->sa, mgmt->bssid, WLAN_AUTH_SAE, in handle_auth_sae() 1283 pos = mgmt->u.auth.variable; in handle_auth_sae() 1284 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1317 resp = auth_sae_send_commit(hapd, sta, mgmt->bssid, 0, in handle_auth_sae() 1353 pos = mgmt->u.auth.variable; in handle_auth_sae() [all …]
|
D | wmm.c | 295 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 …]
|
D | ieee802_11_shared.c | 57 struct ieee80211_mgmt *mgmt; in ieee802_11_send_sa_query_req() local 103 mgmt = os_zalloc(sizeof(*mgmt) + oci_ie_len); in ieee802_11_send_sa_query_req() 104 if (!mgmt) { in ieee802_11_send_sa_query_req() 111 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_sa_query_req() 113 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 114 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 115 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 116 mgmt->u.action.category = WLAN_ACTION_SA_QUERY; in ieee802_11_send_sa_query_req() 117 mgmt->u.action.u.sa_query_req.action = WLAN_SA_QUERY_REQUEST; in ieee802_11_send_sa_query_req() 118 os_memcpy(mgmt->u.action.u.sa_query_req.trans_id, trans_id, in ieee802_11_send_sa_query_req() [all …]
|
D | rrm.c | 98 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 …]
|
D | ctrl_iface_ap.c | 501 struct ieee80211_mgmt *mgmt; in p2p_manager_disconnect() local 505 mgmt = os_zalloc(sizeof(*mgmt) + 100); in p2p_manager_disconnect() 506 if (mgmt == NULL) in p2p_manager_disconnect() 509 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, stype); in p2p_manager_disconnect() 513 fc2str(le_to_host16(mgmt->frame_control))); in p2p_manager_disconnect() 515 os_memcpy(mgmt->da, addr, ETH_ALEN); in p2p_manager_disconnect() 516 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 517 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 519 mgmt->u.deauth.reason_code = in p2p_manager_disconnect() 521 pos = mgmt->u.deauth.variable; in p2p_manager_disconnect() [all …]
|
D | ieee802_11_ht.c | 208 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()
|
D | beacon.c | 1015 const struct ieee80211_mgmt *mgmt, size_t len, in handle_probe_req() argument 1036 ie = ((const u8 *) mgmt) + IEEE80211_HDRLEN; in handle_probe_req() 1038 sta_track_add(hapd->iface, mgmt->sa, ssi_signal); in handle_probe_req() 1041 ret = hostapd_allowed_address(hapd, mgmt->sa, (const u8 *) mgmt, len, in handle_probe_req() 1046 " due to ACL reject ", MAC2STR(mgmt->sa)); in handle_probe_req() 1052 mgmt->sa, mgmt->da, mgmt->bssid, in handle_probe_req() 1061 MAC2STR(mgmt->sa)); in handle_probe_req() 1068 MAC2STR(mgmt->sa)); in handle_probe_req() 1123 "broadcast SSID ignored", MAC2STR(mgmt->sa)); in handle_probe_req() 1142 if ((sta = ap_get_sta(hapd, mgmt->sa)) != NULL) { in handle_probe_req() [all …]
|
D | drv_callbacks.c | 1349 struct ieee80211_mgmt *mgmt; in hostapd_action_rx() local 1360 mgmt = (struct ieee80211_mgmt *) drv_mgmt->frame; in hostapd_action_rx() 1361 fc = le_to_host16(mgmt->frame_control); in hostapd_action_rx() 1365 action = (u8 *) &mgmt->u.action.u; in hostapd_action_rx() 1368 mgmt->u.action.category, *action, in hostapd_action_rx() 1369 MAC2STR(mgmt->sa), MAC2STR(mgmt->da), (int) plen); in hostapd_action_rx() 1371 sta = ap_get_sta(hapd, mgmt->sa); in hostapd_action_rx() 1377 if (mgmt->u.action.category == WLAN_ACTION_FT) { in hostapd_action_rx() 1378 wpa_ft_action_rx(sta->wpa_sm, (u8 *) &mgmt->u.action, plen); in hostapd_action_rx() 1382 if (mgmt->u.action.category == WLAN_ACTION_SA_QUERY) { in hostapd_action_rx() [all …]
|
D | ap_list.c | 170 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()
|
D | wmm.h | 20 const struct ieee80211_mgmt *mgmt, size_t len);
|
/external/wpa_supplicant_8/src/fst/ |
D | fst_session.c | 359 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 …]
|
D | fst.c | 166 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()
|
D | fst_session.h | 35 const struct ieee80211_mgmt *mgmt, 56 const struct ieee80211_mgmt *mgmt, size_t len);
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_hostap.c | 1038 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 …]
|
D | driver_nl80211_event.c | 198 const struct ieee80211_mgmt *mgmt; in mlme_event_auth() local 213 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_auth() 214 if (len < 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 220 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth() 223 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN); in mlme_event_auth() 224 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg); in mlme_event_auth() 226 le_to_host16(mgmt->u.auth.auth_transaction); in mlme_event_auth() 227 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code); in mlme_event_auth() 228 if (len > 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 229 event.auth.ies = mgmt->u.auth.variable; in mlme_event_auth() [all …]
|
D | driver_atheros.c | 859 const struct ieee80211_mgmt *mgmt; in atheros_raw_receive() local 868 mgmt = (const struct ieee80211_mgmt *) buf; in atheros_raw_receive() 870 fc = le_to_host16(mgmt->frame_control); in atheros_raw_receive() 885 event.rx_probe_req.sa = mgmt->sa; in atheros_raw_receive() 886 event.rx_probe_req.da = mgmt->da; in atheros_raw_receive() 887 event.rx_probe_req.bssid = mgmt->bssid; in atheros_raw_receive() 895 (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) == 0 || in atheros_raw_receive() 896 is_broadcast_ether_addr(mgmt->bssid))) { in atheros_raw_receive() 904 if (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) != 0) { in atheros_raw_receive() 912 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req)) in atheros_raw_receive() [all …]
|
/external/wpa_supplicant_8/src/pasn/ |
D | pasn_initiator.c | 1012 const struct ieee80211_mgmt *mgmt, in is_pasn_auth_frame() argument 1017 if (!mgmt || len < offsetof(struct ieee80211_mgmt, u.auth.variable)) in is_pasn_auth_frame() 1021 fc = le_to_host16(mgmt->frame_control); in is_pasn_auth_frame() 1027 if (os_memcmp(mgmt->bssid, pasn->bssid, ETH_ALEN) != 0) in is_pasn_auth_frame() 1030 if (rx && (os_memcmp(mgmt->da, pasn->own_addr, ETH_ALEN) != 0 || in is_pasn_auth_frame() 1031 os_memcmp(mgmt->sa, pasn->peer_addr, ETH_ALEN) != 0)) in is_pasn_auth_frame() 1034 if (!rx && (os_memcmp(mgmt->sa, pasn->own_addr, ETH_ALEN) != 0 || in is_pasn_auth_frame() 1035 os_memcmp(mgmt->da, pasn->peer_addr, ETH_ALEN) != 0)) in is_pasn_auth_frame() 1039 if (mgmt->u.auth.auth_alg != host_to_le16(WLAN_AUTH_PASN)) in is_pasn_auth_frame() 1052 const struct ieee80211_mgmt *mgmt = in wpa_pasn_auth_rx() local [all …]
|
D | pasn_responder.c | 589 const struct ieee80211_mgmt *mgmt, size_t len) in handle_auth_pasn_1() argument 608 if (ieee802_11_parse_elems(mgmt->u.auth.variable, in handle_auth_pasn_1() 801 ((const u8 *) mgmt) + IEEE80211_HDRLEN, in handle_auth_pasn_1() 877 ((const u8 *) mgmt) + IEEE80211_HDRLEN, in handle_auth_pasn_1() 906 const struct ieee80211_mgmt *mgmt, size_t len) in handle_auth_pasn_3() argument 917 if (ieee802_11_parse_elems(mgmt->u.auth.variable, in handle_auth_pasn_3() 958 mic_offset = elems.mic - (const u8 *) &mgmt->u.auth; in handle_auth_pasn_3() 962 copy = os_memdup(&mgmt->u.auth, copy_len); in handle_auth_pasn_3()
|
D | pasn_common.h | 172 const struct ieee80211_mgmt *mgmt, size_t len); 175 const struct ieee80211_mgmt *mgmt, size_t len);
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wnm_sta.c | 59 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 …]
|
D | mesh_mpm.h | 28 const struct ieee80211_mgmt *mgmt, size_t len); 34 const struct ieee80211_mgmt *mgmt, in mesh_mpm_action_rx() argument
|
D | mesh_mpm.c | 854 const struct ieee80211_mgmt *mgmt; in wpa_mesh_new_mesh_peer() local 857 mgmt = wpabuf_head(data->mesh_pending_auth); in wpa_mesh_new_mesh_peer() 860 os_memcmp(mgmt->sa, addr, ETH_ALEN) == 0) { in wpa_mesh_new_mesh_peer() 1156 const struct ieee80211_mgmt *mgmt, size_t len) in mesh_mpm_action_rx() argument 1171 if (mgmt->u.action.category != WLAN_ACTION_SELF_PROTECTED) in mesh_mpm_action_rx() 1174 action_field = mgmt->u.action.u.slf_prot_action.action; in mesh_mpm_action_rx() 1180 ies = mgmt->u.action.u.slf_prot_action.variable; in mesh_mpm_action_rx() 1181 ie_len = (const u8 *) mgmt + len - in mesh_mpm_action_rx() 1182 mgmt->u.action.u.slf_prot_action.variable; in mesh_mpm_action_rx() 1249 sta = ap_get_sta(hapd, mgmt->sa); in mesh_mpm_action_rx() [all …]
|
D | events.c | 4852 const struct ieee80211_mgmt *mgmt; in wpas_event_rx_mgmt_action() local 4860 mgmt = (const struct ieee80211_mgmt *) frame; in wpas_event_rx_mgmt_action() 4867 MAC2STR(mgmt->sa), category, (int) plen, freq); in wpas_event_rx_mgmt_action() 4870 wmm_ac_rx_action(wpa_s, mgmt->da, mgmt->sa, payload, plen); in wpas_event_rx_mgmt_action() 4883 sme_sa_query_rx(wpa_s, mgmt->da, mgmt->sa, payload, plen); in wpas_event_rx_mgmt_action() 4889 if (mgmt->u.action.category == WLAN_ACTION_WNM) { in wpas_event_rx_mgmt_action() 4890 ieee802_11_rx_wnm_action(wpa_s, mgmt, len); in wpas_event_rx_mgmt_action() 4896 if ((mgmt->u.action.category == WLAN_ACTION_PUBLIC || in wpas_event_rx_mgmt_action() 4897 mgmt->u.action.category == WLAN_ACTION_PROTECTED_DUAL) && in wpas_event_rx_mgmt_action() 4898 gas_query_rx(wpa_s->gas, mgmt->da, mgmt->sa, mgmt->bssid, in wpas_event_rx_mgmt_action() [all …]
|
/external/iw/ |
D | mgmt.c | 13 SECTION(mgmt); 90 HIDDEN(mgmt, reg, "", NL80211_CMD_REGISTER_FRAME, 0, CIB_NETDEV, handle_mgmt_reg); 166 COMMAND(mgmt, dump, "frame <type as hex ab> <pattern as hex ab:cd:..> [frame <type> <pattern>]* [co…
|