/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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 | 87 const struct ieee80211_mgmt *mgmt, size_t len, 1290 const struct ieee80211_mgmt *mgmt, size_t len, in handle_auth_sae() argument 1307 pos = mgmt->u.auth.variable; in handle_auth_sae() 1308 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1310 send_auth_reply(hapd, sta, mgmt->sa, mgmt->bssid, WLAN_AUTH_SAE, in handle_auth_sae() 1318 send_auth_reply(hapd, sta, mgmt->sa, mgmt->bssid, WLAN_AUTH_SAE, in handle_auth_sae() 1363 pos = mgmt->u.auth.variable; in handle_auth_sae() 1364 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1397 resp = auth_sae_send_commit(hapd, sta, mgmt->bssid, 0, in handle_auth_sae() 1433 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 | ctrl_iface_ap.c | 467 struct ieee80211_mgmt *mgmt; in p2p_manager_disconnect() local 471 mgmt = os_zalloc(sizeof(*mgmt) + 100); in p2p_manager_disconnect() 472 if (mgmt == NULL) in p2p_manager_disconnect() 475 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, stype); in p2p_manager_disconnect() 479 fc2str(le_to_host16(mgmt->frame_control))); in p2p_manager_disconnect() 481 os_memcpy(mgmt->da, addr, ETH_ALEN); in p2p_manager_disconnect() 482 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 483 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 485 mgmt->u.deauth.reason_code = in p2p_manager_disconnect() 487 pos = mgmt->u.deauth.variable; in p2p_manager_disconnect() [all …]
|
D | ieee802_11_shared.c | 56 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 …]
|
D | ap_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 | 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 | 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 | 841 const struct ieee80211_mgmt *mgmt, size_t len, in handle_probe_req() argument 862 ie = ((const u8 *) mgmt) + IEEE80211_HDRLEN; in handle_probe_req() 864 sta_track_add(hapd->iface, mgmt->sa, ssi_signal); in handle_probe_req() 867 ret = hostapd_allowed_address(hapd, mgmt->sa, (const u8 *) mgmt, len, in handle_probe_req() 872 " due to ACL reject ", MAC2STR(mgmt->sa)); in handle_probe_req() 878 mgmt->sa, mgmt->da, mgmt->bssid, in handle_probe_req() 887 MAC2STR(mgmt->sa)); in handle_probe_req() 894 MAC2STR(mgmt->sa)); in handle_probe_req() 949 "broadcast SSID ignored", MAC2STR(mgmt->sa)); in handle_probe_req() 968 if ((sta = ap_get_sta(hapd, mgmt->sa)) != NULL) { in handle_probe_req() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | wnm_ap.c | 52 struct ieee80211_mgmt *mgmt; in ieee802_11_send_wnmsleep_resp() local 125 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len + in ieee802_11_send_wnmsleep_resp() 128 if (mgmt == NULL) { in ieee802_11_send_wnmsleep_resp() 134 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 135 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 136 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 137 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_wnmsleep_resp() 139 mgmt->u.action.category = WLAN_ACTION_WNM; in ieee802_11_send_wnmsleep_resp() 140 mgmt->u.action.u.wnm_sleep_resp.action = WNM_SLEEP_MODE_RESP; in ieee802_11_send_wnmsleep_resp() 141 mgmt->u.action.u.wnm_sleep_resp.dialogtoken = dialog_token; in ieee802_11_send_wnmsleep_resp() [all …]
|
D | ieee802_11.c | 68 const struct ieee80211_mgmt *mgmt, size_t len, 980 const struct ieee80211_mgmt *mgmt, size_t len, in handle_auth_sae() argument 996 pos = mgmt->u.auth.variable; in handle_auth_sae() 997 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 998 send_auth_reply(hapd, mgmt->sa, mgmt->bssid, WLAN_AUTH_SAE, in handle_auth_sae() 1006 send_auth_reply(hapd, mgmt->sa, mgmt->bssid, WLAN_AUTH_SAE, in handle_auth_sae() 1049 pos = mgmt->u.auth.variable; in handle_auth_sae() 1050 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1083 resp = auth_sae_send_commit(hapd, sta, mgmt->bssid, 0); in handle_auth_sae() 1118 pos = mgmt->u.auth.variable; in handle_auth_sae() [all …]
|
D | wmm.c | 293 const struct ieee80211_mgmt *mgmt, in wmm_addts_req() argument 296 const u8 *end = ((const u8 *) mgmt) + len; in wmm_addts_req() 306 mgmt->u.action.u.wmm_action.dialog_token, in wmm_addts_req() 307 MAC2STR(mgmt->sa)); in wmm_addts_req() 312 wmm_send_action(hapd, mgmt->sa, tspec, WMM_ACTION_CODE_ADDTS_RESP, in wmm_addts_req() 313 mgmt->u.action.u.wmm_action.dialog_token, res); in wmm_addts_req() 318 const struct ieee80211_mgmt *mgmt, size_t len) in hostapd_wmm_action() argument 322 const u8 *pos = ((const u8 *) mgmt) + IEEE80211_HDRLEN + 4; in hostapd_wmm_action() 324 struct sta_info *sta = ap_get_sta(hapd, mgmt->sa); in hostapd_wmm_action() 330 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in hostapd_wmm_action() [all …]
|
D | ctrl_iface_ap.c | 431 struct ieee80211_mgmt *mgmt; in p2p_manager_disconnect() local 438 mgmt = os_zalloc(sizeof(*mgmt) + 100); in p2p_manager_disconnect() 439 if (mgmt == NULL) in p2p_manager_disconnect() 442 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, stype); in p2p_manager_disconnect() 446 fc2str(le_to_host16(mgmt->frame_control))); in p2p_manager_disconnect() 448 os_memcpy(mgmt->da, addr, ETH_ALEN); in p2p_manager_disconnect() 449 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 450 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 452 mgmt->u.deauth.reason_code = in p2p_manager_disconnect() 454 pos = mgmt->u.deauth.variable; in p2p_manager_disconnect() [all …]
|
D | ieee802_11_shared.c | 57 struct ieee80211_mgmt *mgmt; in ieee802_11_send_sa_query_req() local 93 mgmt = os_zalloc(sizeof(*mgmt) + oci_ie_len); in ieee802_11_send_sa_query_req() 94 if (!mgmt) { in ieee802_11_send_sa_query_req() 101 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_sa_query_req() 103 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 104 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 105 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 106 mgmt->u.action.category = WLAN_ACTION_SA_QUERY; in ieee802_11_send_sa_query_req() 107 mgmt->u.action.u.sa_query_req.action = WLAN_SA_QUERY_REQUEST; in ieee802_11_send_sa_query_req() 108 os_memcpy(mgmt->u.action.u.sa_query_req.trans_id, trans_id, in ieee802_11_send_sa_query_req() [all …]
|
D | ap_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 | beacon.c | 731 const struct ieee80211_mgmt *mgmt, size_t len, in handle_probe_req() argument 752 ie = ((const u8 *) mgmt) + IEEE80211_HDRLEN; in handle_probe_req() 754 sta_track_add(hapd->iface, mgmt->sa, ssi_signal); in handle_probe_req() 757 ret = ieee802_11_allowed_address(hapd, mgmt->sa, (const u8 *) mgmt, len, in handle_probe_req() 764 " due to ACL reject ", MAC2STR(mgmt->sa)); in handle_probe_req() 770 mgmt->sa, mgmt->da, mgmt->bssid, in handle_probe_req() 779 MAC2STR(mgmt->sa)); in handle_probe_req() 786 MAC2STR(mgmt->sa)); in handle_probe_req() 841 "broadcast SSID ignored", MAC2STR(mgmt->sa)); in handle_probe_req() 860 if ((sta = ap_get_sta(hapd, mgmt->sa)) != NULL) { in handle_probe_req() [all …]
|
D | ieee802_11_ht.c | 230 const struct ieee80211_mgmt *mgmt, size_t len) in hostapd_2040_coex_action() argument 237 const u8 *start = (const u8 *) mgmt; in hostapd_2040_coex_action() 243 MACSTR, MAC2STR(mgmt->sa)); in hostapd_2040_coex_action() 245 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in hostapd_2040_coex_action() 247 mgmt->u.action.u.public_action.action); in hostapd_2040_coex_action() 291 sta = ap_get_sta(hapd, mgmt->sa); in hostapd_2040_coex_action() 298 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action() 308 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action() 339 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action() 355 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_nl80211_event.c | 150 const struct ieee80211_mgmt *mgmt; in mlme_event_auth() local 165 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_auth() 166 if (len < 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 172 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth() 175 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN); in mlme_event_auth() 176 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg); in mlme_event_auth() 178 le_to_host16(mgmt->u.auth.auth_transaction); in mlme_event_auth() 179 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code); in mlme_event_auth() 180 if (len > 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 181 event.auth.ies = mgmt->u.auth.variable; in mlme_event_auth() [all …]
|
D | driver_hostap.c | 1034 struct ieee80211_mgmt mgmt; in hostap_sta_deauth() local 1046 memset(&mgmt, 0, sizeof(mgmt)); in hostap_sta_deauth() 1047 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in hostap_sta_deauth() 1049 memcpy(mgmt.da, addr, ETH_ALEN); in hostap_sta_deauth() 1050 memcpy(mgmt.sa, own_addr, ETH_ALEN); in hostap_sta_deauth() 1051 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in hostap_sta_deauth() 1052 mgmt.u.deauth.reason_code = host_to_le16(reason); in hostap_sta_deauth() 1053 return hostap_send_mlme(drv, (u8 *) &mgmt, IEEE80211_HDRLEN + in hostap_sta_deauth() 1054 sizeof(mgmt.u.deauth), 0, 0, NULL, 0); in hostap_sta_deauth() 1082 struct ieee80211_mgmt mgmt; in hostap_sta_disassoc() local [all …]
|
D | driver_atheros.c | 864 const struct ieee80211_mgmt *mgmt; in atheros_raw_receive() local 873 mgmt = (const struct ieee80211_mgmt *) buf; in atheros_raw_receive() 875 fc = le_to_host16(mgmt->frame_control); in atheros_raw_receive() 890 event.rx_probe_req.sa = mgmt->sa; in atheros_raw_receive() 891 event.rx_probe_req.da = mgmt->da; in atheros_raw_receive() 892 event.rx_probe_req.bssid = mgmt->bssid; in atheros_raw_receive() 900 (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) == 0 || in atheros_raw_receive() 901 is_broadcast_ether_addr(mgmt->bssid))) { in atheros_raw_receive() 909 if (os_memcmp(drv->own_addr, mgmt->bssid, ETH_ALEN) != 0) { in atheros_raw_receive() 917 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req)) in atheros_raw_receive() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | driver_nl80211_event.c | 186 const struct ieee80211_mgmt *mgmt; in mlme_event_auth() local 201 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_auth() 202 if (len < 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 208 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth() 211 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN); in mlme_event_auth() 212 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg); in mlme_event_auth() 214 le_to_host16(mgmt->u.auth.auth_transaction); in mlme_event_auth() 215 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code); in mlme_event_auth() 216 if (len > 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 217 event.auth.ies = mgmt->u.auth.variable; in mlme_event_auth() [all …]
|
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_atheros.c | 860 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 …]
|