Lines Matching refs:mgmt

31 	struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf;  in cfg80211_rx_assoc_resp()  local
33 const u8 *resp_ie = mgmt->u.assoc_resp.variable; in cfg80211_rx_assoc_resp()
38 resp_ie = (u8 *)&mgmt->u.s1g_assoc_resp.variable; in cfg80211_rx_assoc_resp()
44 cr.status = (int)le16_to_cpu(mgmt->u.assoc_resp.status_code); in cfg80211_rx_assoc_resp()
45 cr.bssid = mgmt->bssid; in cfg80211_rx_assoc_resp()
88 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_deauth() local
89 const u8 *bssid = mgmt->bssid; in cfg80211_process_deauth()
90 u16 reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); in cfg80211_process_deauth()
91 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth()
108 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_disassoc() local
109 const u8 *bssid = mgmt->bssid; in cfg80211_process_disassoc()
110 u16 reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); in cfg80211_process_disassoc()
111 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_disassoc()
127 struct ieee80211_mgmt *mgmt = (void *)buf; in cfg80211_rx_mlme_mgmt() local
136 if (ieee80211_is_auth(mgmt->frame_control)) in cfg80211_rx_mlme_mgmt()
138 else if (ieee80211_is_deauth(mgmt->frame_control)) in cfg80211_rx_mlme_mgmt()
140 else if (ieee80211_is_disassoc(mgmt->frame_control)) in cfg80211_rx_mlme_mgmt()
190 struct ieee80211_mgmt *mgmt = (void *)buf; in cfg80211_tx_mlme_mgmt() local
199 if (ieee80211_is_deauth(mgmt->frame_control)) in cfg80211_tx_mlme_mgmt()
650 const struct ieee80211_mgmt *mgmt; in cfg80211_mlme_mgmt_tx() local
662 mgmt = (const struct ieee80211_mgmt *)params->buf; in cfg80211_mlme_mgmt_tx()
664 if (!ieee80211_is_mgmt(mgmt->frame_control)) in cfg80211_mlme_mgmt_tx()
667 stype = le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE; in cfg80211_mlme_mgmt_tx()
671 if (ieee80211_is_action(mgmt->frame_control) && in cfg80211_mlme_mgmt_tx()
672 mgmt->u.action.category != WLAN_CATEGORY_PUBLIC) { in cfg80211_mlme_mgmt_tx()
687 mgmt->bssid)) { in cfg80211_mlme_mgmt_tx()
701 mgmt->da)) { in cfg80211_mlme_mgmt_tx()
709 if (!ether_addr_equal(mgmt->bssid, wdev_address(wdev))) in cfg80211_mlme_mgmt_tx()
713 if (!ether_addr_equal(mgmt->sa, mgmt->bssid)) { in cfg80211_mlme_mgmt_tx()
738 if (!ether_addr_equal(mgmt->sa, wdev_address(wdev))) { in cfg80211_mlme_mgmt_tx()
743 if (!ieee80211_is_action(mgmt->frame_control) || in cfg80211_mlme_mgmt_tx()
744 mgmt->u.action.category != WLAN_CATEGORY_PUBLIC) in cfg80211_mlme_mgmt_tx()
770 struct ieee80211_mgmt *mgmt = (void *)buf; in cfg80211_rx_mgmt_khz() local
774 __le16 ftype = mgmt->frame_control & in cfg80211_rx_mgmt_khz()
779 stype = (le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE) >> 4; in cfg80211_rx_mgmt_khz()
786 data = buf + ieee80211_hdrlen(mgmt->frame_control); in cfg80211_rx_mgmt_khz()
787 data_len = len - ieee80211_hdrlen(mgmt->frame_control); in cfg80211_rx_mgmt_khz()