Lines Matching refs:mgmt
1010 const struct ieee80211_mgmt *mgmt; in mlme_event_auth() local
1013 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_auth()
1014 if (len < 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth()
1020 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth()
1022 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN); in mlme_event_auth()
1023 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg); in mlme_event_auth()
1024 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code); in mlme_event_auth()
1025 if (len > 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth()
1026 event.auth.ies = mgmt->u.auth.variable; in mlme_event_auth()
1027 event.auth.ies_len = len - 24 - sizeof(mgmt->u.auth); in mlme_event_auth()
1068 const struct ieee80211_mgmt *mgmt; in mlme_event_assoc() local
1072 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_assoc()
1073 if (len < 24 + sizeof(mgmt->u.assoc_resp)) { in mlme_event_assoc()
1079 status = le_to_host16(mgmt->u.assoc_resp.status_code); in mlme_event_assoc()
1082 event.assoc_reject.bssid = mgmt->bssid; in mlme_event_assoc()
1083 if (len > 24 + sizeof(mgmt->u.assoc_resp)) { in mlme_event_assoc()
1085 (u8 *) mgmt->u.assoc_resp.variable; in mlme_event_assoc()
1087 len - 24 - sizeof(mgmt->u.assoc_resp); in mlme_event_assoc()
1096 os_memcpy(drv->bssid, mgmt->sa, ETH_ALEN); in mlme_event_assoc()
1099 if (len > 24 + sizeof(mgmt->u.assoc_resp)) { in mlme_event_assoc()
1100 event.assoc_info.resp_ies = (u8 *) mgmt->u.assoc_resp.variable; in mlme_event_assoc()
1102 len - 24 - sizeof(mgmt->u.assoc_resp); in mlme_event_assoc()
1213 const struct ieee80211_mgmt *mgmt; in mlme_event_mgmt() local
1217 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_mgmt()
1223 fc = le_to_host16(mgmt->frame_control); in mlme_event_mgmt()
1232 event.rx_action.da = mgmt->da; in mlme_event_mgmt()
1233 event.rx_action.sa = mgmt->sa; in mlme_event_mgmt()
1234 event.rx_action.bssid = mgmt->bssid; in mlme_event_mgmt()
1235 event.rx_action.category = mgmt->u.action.category; in mlme_event_mgmt()
1236 event.rx_action.data = &mgmt->u.action.category + 1; in mlme_event_mgmt()
1289 const struct ieee80211_mgmt *mgmt; in mlme_event_deauth_disassoc() local
1294 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_deauth_disassoc()
1296 bssid = mgmt->bssid; in mlme_event_deauth_disassoc()
1317 if (len >= 24 + sizeof(mgmt->u.deauth)) in mlme_event_deauth_disassoc()
1318 reason_code = le_to_host16(mgmt->u.deauth.reason_code); in mlme_event_deauth_disassoc()
1322 !os_memcmp(mgmt->sa, drv->first_bss.addr, ETH_ALEN); in mlme_event_deauth_disassoc()
1325 if (frame + len > mgmt->u.disassoc.variable) { in mlme_event_deauth_disassoc()
1326 event.disassoc_info.ie = mgmt->u.disassoc.variable; in mlme_event_deauth_disassoc()
1328 mgmt->u.disassoc.variable; in mlme_event_deauth_disassoc()
1332 !os_memcmp(mgmt->sa, drv->first_bss.addr, ETH_ALEN); in mlme_event_deauth_disassoc()
1335 if (frame + len > mgmt->u.deauth.variable) { in mlme_event_deauth_disassoc()
1336 event.deauth_info.ie = mgmt->u.deauth.variable; in mlme_event_deauth_disassoc()
1338 mgmt->u.deauth.variable; in mlme_event_deauth_disassoc()
1350 const struct ieee80211_mgmt *mgmt; in mlme_event_unprot_disconnect() local
1357 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_unprot_disconnect()
1361 if (len >= 24 + sizeof(mgmt->u.deauth)) in mlme_event_unprot_disconnect()
1362 reason_code = le_to_host16(mgmt->u.deauth.reason_code); in mlme_event_unprot_disconnect()
1365 event.unprot_disassoc.sa = mgmt->sa; in mlme_event_unprot_disconnect()
1366 event.unprot_disassoc.da = mgmt->da; in mlme_event_unprot_disconnect()
1369 event.unprot_deauth.sa = mgmt->sa; in mlme_event_unprot_disconnect()
1370 event.unprot_deauth.da = mgmt->da; in mlme_event_unprot_disconnect()
5169 struct ieee80211_mgmt *mgmt; in wpa_driver_nl80211_send_mlme_freq() local
5173 mgmt = (struct ieee80211_mgmt *) data; in wpa_driver_nl80211_send_mlme_freq()
5174 fc = le_to_host16(mgmt->frame_control); in wpa_driver_nl80211_send_mlme_freq()
5208 u16 auth_alg = le_to_host16(mgmt->u.auth.auth_alg); in wpa_driver_nl80211_send_mlme_freq()
5209 u16 auth_trans = le_to_host16(mgmt->u.auth.auth_transaction); in wpa_driver_nl80211_send_mlme_freq()
6670 int mgmt = WLAN_AKM_SUITE_PSK; in wpa_driver_nl80211_connect() local
6674 mgmt = WLAN_AKM_SUITE_8021X; in wpa_driver_nl80211_connect()
6678 mgmt = WLAN_AKM_SUITE_PSK; in wpa_driver_nl80211_connect()
6681 NLA_PUT_U32(msg, NL80211_ATTR_AKM_SUITES, mgmt); in wpa_driver_nl80211_connect()
7405 struct ieee80211_mgmt mgmt; in i802_sta_deauth() local
7407 memset(&mgmt, 0, sizeof(mgmt)); in i802_sta_deauth()
7408 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in i802_sta_deauth()
7410 memcpy(mgmt.da, addr, ETH_ALEN); in i802_sta_deauth()
7411 memcpy(mgmt.sa, own_addr, ETH_ALEN); in i802_sta_deauth()
7412 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in i802_sta_deauth()
7413 mgmt.u.deauth.reason_code = host_to_le16(reason); in i802_sta_deauth()
7414 return wpa_driver_nl80211_send_mlme(bss, (u8 *) &mgmt, in i802_sta_deauth()
7416 sizeof(mgmt.u.deauth), 0); in i802_sta_deauth()
7424 struct ieee80211_mgmt mgmt; in i802_sta_disassoc() local
7426 memset(&mgmt, 0, sizeof(mgmt)); in i802_sta_disassoc()
7427 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in i802_sta_disassoc()
7429 memcpy(mgmt.da, addr, ETH_ALEN); in i802_sta_disassoc()
7430 memcpy(mgmt.sa, own_addr, ETH_ALEN); in i802_sta_disassoc()
7431 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in i802_sta_disassoc()
7432 mgmt.u.disassoc.reason_code = host_to_le16(reason); in i802_sta_disassoc()
7433 return wpa_driver_nl80211_send_mlme(bss, (u8 *) &mgmt, in i802_sta_disassoc()
7435 sizeof(mgmt.u.disassoc), 0); in i802_sta_disassoc()