Lines Matching refs:mgmt
1251 const struct ieee80211_mgmt *mgmt;
1255 mgmt = (const struct ieee80211_mgmt *) frame;
1256 if (len < 24 + sizeof(mgmt->u.auth)) {
1262 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN);
1265 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN);
1266 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg);
1268 le_to_host16(mgmt->u.auth.auth_transaction);
1269 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code);
1270 if (len > 24 + sizeof(mgmt->u.auth)) {
1271 event.auth.ies = mgmt->u.auth.variable;
1272 event.auth.ies_len = len - 24 - sizeof(mgmt->u.auth);
1315 const struct ieee80211_mgmt *mgmt;
1320 mgmt = (const struct ieee80211_mgmt *) frame;
1321 if (len < 24 + sizeof(mgmt->u.assoc_resp)) {
1327 status = le_to_host16(mgmt->u.assoc_resp.status_code);
1330 event.assoc_reject.bssid = mgmt->bssid;
1331 if (len > 24 + sizeof(mgmt->u.assoc_resp)) {
1333 (u8 *) mgmt->u.assoc_resp.variable;
1335 len - 24 - sizeof(mgmt->u.assoc_resp);
1344 os_memcpy(drv->bssid, mgmt->sa, ETH_ALEN);
1345 os_memcpy(drv->prev_bssid, mgmt->sa, ETH_ALEN);
1348 if (len > 24 + sizeof(mgmt->u.assoc_resp)) {
1349 event.assoc_info.resp_ies = (u8 *) mgmt->u.assoc_resp.variable;
1351 len - 24 - sizeof(mgmt->u.assoc_resp);
1519 const struct ieee80211_mgmt *mgmt;
1525 mgmt = (const struct ieee80211_mgmt *) frame;
1531 fc = le_to_host16(mgmt->frame_control);
1543 event.rx_action.da = mgmt->da;
1544 event.rx_action.sa = mgmt->sa;
1545 event.rx_action.bssid = mgmt->bssid;
1546 event.rx_action.category = mgmt->u.action.category;
1547 event.rx_action.data = &mgmt->u.action.category + 1;
1602 const struct ieee80211_mgmt *mgmt;
1612 mgmt = (const struct ieee80211_mgmt *) frame;
1614 bssid = mgmt->bssid;
1651 if (len >= 24 + sizeof(mgmt->u.deauth))
1652 reason_code = le_to_host16(mgmt->u.deauth.reason_code);
1656 !os_memcmp(mgmt->sa, drv->first_bss.addr, ETH_ALEN);
1659 if (frame + len > mgmt->u.disassoc.variable) {
1660 event.disassoc_info.ie = mgmt->u.disassoc.variable;
1662 mgmt->u.disassoc.variable;
1666 !os_memcmp(mgmt->sa, drv->first_bss.addr, ETH_ALEN);
1669 if (frame + len > mgmt->u.deauth.variable) {
1670 event.deauth_info.ie = mgmt->u.deauth.variable;
1672 mgmt->u.deauth.variable;
1684 const struct ieee80211_mgmt *mgmt;
1696 mgmt = (const struct ieee80211_mgmt *) frame;
1700 if (len >= 24 + sizeof(mgmt->u.deauth))
1701 reason_code = le_to_host16(mgmt->u.deauth.reason_code);
1704 event.unprot_disassoc.sa = mgmt->sa;
1705 event.unprot_disassoc.da = mgmt->da;
1708 event.unprot_deauth.sa = mgmt->sa;
1709 event.unprot_deauth.da = mgmt->da;
3751 wpa_printf(MSG_DEBUG, "nl80211: Mgmt reporting "
3756 bss->nl_mgmt = nl_create_handle(drv->nl_cb, "mgmt");
3783 wpa_printf(MSG_DEBUG, "nl80211: Subscribe to mgmt frames with non-AP "
3894 wpa_printf(MSG_DEBUG, "nl80211: Subscribe to mgmt frames with AP "
3925 wpa_printf(MSG_DEBUG, "nl80211: Subscribe to mgmt frames with AP "
3947 wpa_printf(MSG_DEBUG, "nl80211: Unsubscribe mgmt frames handle %p "
6144 struct ieee80211_mgmt *mgmt;
6148 mgmt = (struct ieee80211_mgmt *) data;
6149 fc = le_to_host16(mgmt->frame_control);
6186 u16 auth_alg = le_to_host16(mgmt->u.auth.auth_alg);
6187 u16 auth_trans = le_to_host16(mgmt->u.auth.auth_transaction);
7802 int mgmt = WLAN_AKM_SUITE_PSK;
7806 mgmt = WLAN_AKM_SUITE_CCKM;
7809 mgmt = WLAN_AKM_SUITE_8021X;
7812 mgmt = WLAN_AKM_SUITE_FT_8021X;
7815 mgmt = WLAN_AKM_SUITE_FT_PSK;
7819 mgmt = WLAN_AKM_SUITE_PSK;
7822 NLA_PUT_U32(msg, NL80211_ATTR_AKM_SUITES, mgmt);
8637 struct ieee80211_mgmt mgmt;
8642 memset(&mgmt, 0, sizeof(mgmt));
8643 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
8645 memcpy(mgmt.da, addr, ETH_ALEN);
8646 memcpy(mgmt.sa, own_addr, ETH_ALEN);
8647 memcpy(mgmt.bssid, own_addr, ETH_ALEN);
8648 mgmt.u.deauth.reason_code = host_to_le16(reason);
8649 return wpa_driver_nl80211_send_mlme(bss, (u8 *) &mgmt,
8651 sizeof(mgmt.u.deauth), 0, 0, 0, 0,
8661 struct ieee80211_mgmt mgmt;
8666 memset(&mgmt, 0, sizeof(mgmt));
8667 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
8669 memcpy(mgmt.da, addr, ETH_ALEN);
8670 memcpy(mgmt.sa, own_addr, ETH_ALEN);
8671 memcpy(mgmt.bssid, own_addr, ETH_ALEN);
8672 mgmt.u.disassoc.reason_code = host_to_le16(reason);
8673 return wpa_driver_nl80211_send_mlme(bss, (u8 *) &mgmt,
8675 sizeof(mgmt.u.disassoc), 0, 0, 0, 0,