/hostap-latest/src/ap/ |
D | wnm_ap.c | 66 struct ieee80211_mgmt *mgmt; in ieee802_11_send_wnmsleep_resp() local 151 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len + in ieee802_11_send_wnmsleep_resp() 155 if (mgmt == NULL) { in ieee802_11_send_wnmsleep_resp() 164 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 165 os_memcpy(mgmt->sa, own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 166 os_memcpy(mgmt->bssid, own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 167 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_wnmsleep_resp() 169 mgmt->u.action.category = WLAN_ACTION_WNM; in ieee802_11_send_wnmsleep_resp() 170 mgmt->u.action.u.wnm_sleep_resp.action = WNM_SLEEP_MODE_RESP; in ieee802_11_send_wnmsleep_resp() 171 mgmt->u.action.u.wnm_sleep_resp.dialogtoken = dialog_token; in ieee802_11_send_wnmsleep_resp() [all …]
|
D | ieee802_11.c | 85 const struct ieee80211_mgmt *mgmt, size_t len, 1307 const struct ieee80211_mgmt *mgmt, size_t len, in handle_auth_sae() argument 1324 pos = mgmt->u.auth.variable; in handle_auth_sae() 1325 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1382 pos = mgmt->u.auth.variable; in handle_auth_sae() 1383 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1457 pos = mgmt->u.auth.variable; in handle_auth_sae() 1458 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1475 resp = sae_parse_commit(sta->sae, mgmt->u.auth.variable, in handle_auth_sae() 1476 ((const u8 *) mgmt) + len - in handle_auth_sae() [all …]
|
D | wmm.c | 288 const struct ieee80211_mgmt *mgmt, in wmm_addts_req() argument 291 const u8 *end = ((const u8 *) mgmt) + len; in wmm_addts_req() 302 mgmt->u.action.u.wmm_action.dialog_token, in wmm_addts_req() 303 MAC2STR(mgmt->sa)); in wmm_addts_req() 309 wmm_send_action(hapd, mgmt->sa, &tspec_resp, WMM_ACTION_CODE_ADDTS_RESP, in wmm_addts_req() 310 mgmt->u.action.u.wmm_action.dialog_token, res); in wmm_addts_req() 315 const struct ieee80211_mgmt *mgmt, size_t len) in hostapd_wmm_action() argument 319 const u8 *pos = ((const u8 *) mgmt) + IEEE80211_HDRLEN + 4; in hostapd_wmm_action() 321 struct sta_info *sta = ap_get_sta(hapd, mgmt->sa); in hostapd_wmm_action() 327 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in hostapd_wmm_action() [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() 352 const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *) buf; in hostapd_handle_link_mesr_report() local 358 pos = mgmt->u.action.u.rrm.variable; in hostapd_handle_link_mesr_report() [all …]
|
D | ieee802_11_shared.c | 68 struct ieee80211_mgmt *mgmt; in ieee802_11_send_sa_query_req() local 114 mgmt = os_zalloc(sizeof(*mgmt) + oci_ie_len); in ieee802_11_send_sa_query_req() 115 if (!mgmt) { in ieee802_11_send_sa_query_req() 127 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_sa_query_req() 129 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 130 os_memcpy(mgmt->sa, own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 131 os_memcpy(mgmt->bssid, own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 132 mgmt->u.action.category = WLAN_ACTION_SA_QUERY; in ieee802_11_send_sa_query_req() 133 mgmt->u.action.u.sa_query_req.action = WLAN_SA_QUERY_REQUEST; in ieee802_11_send_sa_query_req() 134 os_memcpy(mgmt->u.action.u.sa_query_req.trans_id, trans_id, in ieee802_11_send_sa_query_req() [all …]
|
D | ctrl_iface_ap.c | 570 struct ieee80211_mgmt *mgmt; in p2p_manager_disconnect() local 574 mgmt = os_zalloc(sizeof(*mgmt) + 100); in p2p_manager_disconnect() 575 if (mgmt == NULL) in p2p_manager_disconnect() 578 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, stype); in p2p_manager_disconnect() 582 fc2str(le_to_host16(mgmt->frame_control))); in p2p_manager_disconnect() 584 os_memcpy(mgmt->da, addr, ETH_ALEN); in p2p_manager_disconnect() 585 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 586 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 588 mgmt->u.deauth.reason_code = in p2p_manager_disconnect() 590 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 | 1039 const struct ieee80211_mgmt *mgmt, in hostapd_fill_probe_resp_ml_params() argument 1424 const struct ieee80211_mgmt *mgmt, size_t len, in handle_probe_req() argument 1449 ie = ((const u8 *) mgmt) + IEEE80211_HDRLEN; in handle_probe_req() 1451 sta_track_add(hapd->iface, mgmt->sa, ssi_signal); in handle_probe_req() 1454 ret = hostapd_allowed_address(hapd, mgmt->sa, (const u8 *) mgmt, len, in handle_probe_req() 1459 " due to ACL reject ", MAC2STR(mgmt->sa)); in handle_probe_req() 1465 mgmt->sa, mgmt->da, mgmt->bssid, in handle_probe_req() 1474 MAC2STR(mgmt->sa)); in handle_probe_req() 1481 MAC2STR(mgmt->sa)); in handle_probe_req() 1536 "broadcast SSID ignored", MAC2STR(mgmt->sa)); in handle_probe_req() [all …]
|
D | ieee802_11_eht.c | 836 sae_commit_skip_fixed_fields(const struct ieee80211_mgmt *mgmt, size_t len, in sae_commit_skip_fixed_fields() argument 884 if (pos - mgmt->u.auth.variable > (int) len) { in sae_commit_skip_fixed_fields() 891 pos, (int) len - (pos - mgmt->u.auth.variable)); in sae_commit_skip_fixed_fields() 899 const struct ieee80211_mgmt *mgmt, size_t len, in sae_confirm_skip_fixed_fields() argument 914 sta = ap_get_sta(hapd, mgmt->sa); in sae_confirm_skip_fixed_fields() 934 if (pos - mgmt->u.auth.variable > (int) len) { in sae_confirm_skip_fixed_fields() 947 const struct ieee80211_mgmt *mgmt, in auth_skip_fixed_fields() argument 950 u16 auth_alg = le_to_host16(mgmt->u.auth.auth_alg); in auth_skip_fixed_fields() 952 u16 auth_transaction = le_to_host16(mgmt->u.auth.auth_transaction); in auth_skip_fixed_fields() 953 u16 status_code = le_to_host16(mgmt->u.auth.status_code); in auth_skip_fixed_fields() [all …]
|
D | drv_callbacks.c | 1646 struct ieee80211_mgmt *mgmt; in hostapd_action_rx() local 1657 mgmt = (struct ieee80211_mgmt *) drv_mgmt->frame; in hostapd_action_rx() 1658 fc = le_to_host16(mgmt->frame_control); in hostapd_action_rx() 1662 action = (u8 *) &mgmt->u.action.u; in hostapd_action_rx() 1665 mgmt->u.action.category, *action, in hostapd_action_rx() 1666 MAC2STR(mgmt->sa), MAC2STR(mgmt->da), (int) plen); in hostapd_action_rx() 1668 sta = ap_get_sta(hapd, mgmt->sa); in hostapd_action_rx() 1674 if (mgmt->u.action.category == WLAN_ACTION_FT) { in hostapd_action_rx() 1675 wpa_ft_action_rx(sta->wpa_sm, (u8 *) &mgmt->u.action, plen); in hostapd_action_rx() 1679 if (mgmt->u.action.category == WLAN_ACTION_SA_QUERY) { in hostapd_action_rx() [all …]
|
/hostap-latest/wlantest/ |
D | rx_mgmt.c | 404 const struct ieee80211_mgmt *mgmt; in rx_mgmt_beacon() local 412 mgmt = (const struct ieee80211_mgmt *) data; in rx_mgmt_beacon() 413 offset = mgmt->u.beacon.variable - data; in rx_mgmt_beacon() 416 bss = bss_get(wt, mgmt->bssid); in rx_mgmt_beacon() 421 bss->capab_info = le_to_host16(mgmt->u.beacon.capab_info); in rx_mgmt_beacon() 422 if (ieee802_11_parse_elems(mgmt->u.beacon.variable, len - offset, in rx_mgmt_beacon() 427 MACSTR, MAC2STR(mgmt->sa)); in rx_mgmt_beacon() 500 os_memcpy(bssid, mgmt->bssid, ETH_ALEN); in rx_mgmt_beacon() 574 mme = get_ie(mgmt->u.beacon.variable, len - offset, WLAN_EID_MMIE); in rx_mgmt_beacon() 579 MACSTR, MAC2STR(mgmt->sa)); in rx_mgmt_beacon() [all …]
|
D | ctrl.c | 464 static void build_mgmt_hdr(struct ieee80211_mgmt *mgmt, in build_mgmt_hdr() argument 468 os_memset(mgmt, 0, 24); in build_mgmt_hdr() 469 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, stype); in build_mgmt_hdr() 472 os_memcpy(mgmt->da, sta->addr, ETH_ALEN); in build_mgmt_hdr() 474 os_memset(mgmt->da, 0xff, ETH_ALEN); in build_mgmt_hdr() 475 os_memcpy(mgmt->sa, bss->bssid, ETH_ALEN); in build_mgmt_hdr() 477 os_memcpy(mgmt->da, bss->bssid, ETH_ALEN); in build_mgmt_hdr() 478 os_memcpy(mgmt->sa, sta->addr, ETH_ALEN); in build_mgmt_hdr() 480 os_memcpy(mgmt->bssid, bss->bssid, ETH_ALEN); in build_mgmt_hdr() 488 struct ieee80211_mgmt mgmt; in ctrl_inject_auth() local [all …]
|
/hostap-latest/src/fst/ |
D | fst_session.c | 357 const struct ieee80211_mgmt *mgmt, in fst_session_handle_setup_request() argument 376 (((const u8 *) mgmt) + IEEE80211_HDRLEN + 1); in fst_session_handle_setup_request() 393 fst_iface_update_mb_ie(iface, mgmt->sa, (const u8 *) (req + 1), in fst_session_handle_setup_request() 397 MAC2STR(mgmt->sa)); in fst_session_handle_setup_request() 400 new_iface = fst_group_get_peer_other_connection(iface, mgmt->sa, in fst_session_handle_setup_request() 413 s = fst_find_session_in_progress(mgmt->sa, g); in fst_session_handle_setup_request() 432 os_memcmp(mgmt->da, mgmt->sa, ETH_ALEN) > 0) { in fst_session_handle_setup_request() 436 MAC2STR(mgmt->da)); in fst_session_handle_setup_request() 483 fst_session_set_peer_addr(s, mgmt->sa, true); in fst_session_handle_setup_request() 500 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()
|
/hostap-latest/tests/fuzzing/p2p/ |
D | p2p.c | 127 const struct ieee80211_mgmt *mgmt; in test_send() local 129 mgmt = (const struct ieee80211_mgmt *) ctx->data; in test_send() 131 p2p_rx_action(ctx->p2p, mgmt->da, mgmt->sa, mgmt->bssid, in test_send() 132 mgmt->u.action.category, in test_send()
|
/hostap-latest/tests/fuzzing/ap-mgmt/ |
D | Makefile | 1 ALL=ap-mgmt 29 OBJS += ap-mgmt.o 40 ap-mgmt: $(OBJS) $(LIBS) 44 rm -f ap-mgmt *~ *.o *.d ../*~ ../*.o ../*.d
|
/hostap-latest/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, -1); in hostap_sta_deauth() 1086 struct ieee80211_mgmt mgmt; in hostap_sta_disassoc() local [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 (ether_addr_equal(drv->own_addr, mgmt->bssid) || in atheros_raw_receive() 896 is_broadcast_ether_addr(mgmt->bssid))) { in atheros_raw_receive() 904 if (!ether_addr_equal(drv->own_addr, mgmt->bssid)) { in atheros_raw_receive() 912 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req)) in atheros_raw_receive() [all …]
|
D | driver_nl80211_event.c | 200 const struct ieee80211_mgmt *mgmt; in mlme_event_auth() local 215 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_auth() 216 if (len < 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 222 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth() 225 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN); in mlme_event_auth() 226 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg); in mlme_event_auth() 228 le_to_host16(mgmt->u.auth.auth_transaction); in mlme_event_auth() 229 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code); in mlme_event_auth() 230 if (len > 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 231 event.auth.ies = mgmt->u.auth.variable; in mlme_event_auth() [all …]
|
D | driver_zephyr.c | 562 union wpa_event_data *event, const struct ieee80211_mgmt *mgmt) in wpa_drv_zep_event_proc_deauth() argument 566 bssid = mgmt->bssid; in wpa_drv_zep_event_proc_deauth() 938 const struct ieee80211_mgmt *mgmt; in wpa_drv_zep_event_mgmt_rx() local 945 mgmt = (const struct ieee80211_mgmt *)frame; in wpa_drv_zep_event_mgmt_rx() 952 fc = le_to_host16(mgmt->frame_control); in wpa_drv_zep_event_mgmt_rx() 2384 struct ieee80211_mgmt mgmt; in wpa_drv_zep_sta_deauth() local 2399 memset(&mgmt, 0, sizeof(mgmt)); in wpa_drv_zep_sta_deauth() 2400 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in wpa_drv_zep_sta_deauth() 2402 memcpy(mgmt.da, addr, ETH_ALEN); in wpa_drv_zep_sta_deauth() 2403 memcpy(mgmt.sa, own_addr, ETH_ALEN); in wpa_drv_zep_sta_deauth() [all …]
|
/hostap-latest/src/pasn/ |
D | pasn_initiator.c | 1025 const struct ieee80211_mgmt *mgmt, in is_pasn_auth_frame() argument 1030 if (!mgmt || len < offsetof(struct ieee80211_mgmt, u.auth.variable)) in is_pasn_auth_frame() 1034 fc = le_to_host16(mgmt->frame_control); in is_pasn_auth_frame() 1040 if (!ether_addr_equal(mgmt->bssid, pasn->bssid)) in is_pasn_auth_frame() 1043 if (rx && (!ether_addr_equal(mgmt->da, pasn->own_addr) || in is_pasn_auth_frame() 1044 !ether_addr_equal(mgmt->sa, pasn->peer_addr))) in is_pasn_auth_frame() 1047 if (!rx && (!ether_addr_equal(mgmt->sa, pasn->own_addr) || in is_pasn_auth_frame() 1048 !ether_addr_equal(mgmt->da, pasn->peer_addr))) in is_pasn_auth_frame() 1052 if (mgmt->u.auth.auth_alg != host_to_le16(WLAN_AUTH_PASN)) in is_pasn_auth_frame() 1065 const struct ieee80211_mgmt *mgmt = in wpa_pasn_auth_rx() local [all …]
|
/hostap-latest/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 | 862 const struct ieee80211_mgmt *mgmt; in wpa_mesh_new_mesh_peer() local 865 mgmt = wpabuf_head(data->mesh_pending_auth); in wpa_mesh_new_mesh_peer() 868 ether_addr_equal(mgmt->sa, addr)) { in wpa_mesh_new_mesh_peer() 1155 const struct ieee80211_mgmt *mgmt, size_t len) in mesh_mpm_action_rx() argument 1170 if (mgmt->u.action.category != WLAN_ACTION_SELF_PROTECTED) in mesh_mpm_action_rx() 1173 action_field = mgmt->u.action.u.slf_prot_action.action; in mesh_mpm_action_rx() 1179 ies = mgmt->u.action.u.slf_prot_action.variable; in mesh_mpm_action_rx() 1180 ie_len = (const u8 *) mgmt + len - in mesh_mpm_action_rx() 1181 mgmt->u.action.u.slf_prot_action.variable; in mesh_mpm_action_rx() 1248 sta = ap_get_sta(hapd, mgmt->sa); in mesh_mpm_action_rx() [all …]
|
/hostap-latest/tests/fuzzing/wnm/ |
D | wnm.c | 37 const struct ieee80211_mgmt *mgmt; in test_send_wnm() local 41 mgmt = (const struct ieee80211_mgmt *) ctx->data; in test_send_wnm() 42 ieee802_11_rx_wnm_action(&ctx->wpa_s, mgmt, ctx->data_len); in test_send_wnm()
|