Lines Matching full:mgmt
30 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)data->buf; in cfg80211_rx_assoc_resp() local
35 .resp_ie = mgmt->u.assoc_resp.variable, in cfg80211_rx_assoc_resp()
39 .status = le16_to_cpu(mgmt->u.assoc_resp.status_code), in cfg80211_rx_assoc_resp()
63 cr.resp_ie = (u8 *)&mgmt->u.s1g_assoc_resp.variable; in cfg80211_rx_assoc_resp()
114 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_deauth() local
115 const u8 *bssid = mgmt->bssid; in cfg80211_process_deauth()
116 u16 reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); in cfg80211_process_deauth()
117 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth()
133 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf; in cfg80211_process_disassoc() local
134 const u8 *bssid = mgmt->bssid; in cfg80211_process_disassoc()
135 u16 reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); in cfg80211_process_disassoc()
136 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_disassoc()
152 struct ieee80211_mgmt *mgmt = (void *)buf; in cfg80211_rx_mlme_mgmt() local
161 if (ieee80211_is_auth(mgmt->frame_control)) in cfg80211_rx_mlme_mgmt()
163 else if (ieee80211_is_deauth(mgmt->frame_control)) in cfg80211_rx_mlme_mgmt()
165 else if (ieee80211_is_disassoc(mgmt->frame_control)) in cfg80211_rx_mlme_mgmt()
217 struct ieee80211_mgmt *mgmt = (void *)buf; in cfg80211_tx_mlme_mgmt() local
226 if (ieee80211_is_deauth(mgmt->frame_control)) in cfg80211_tx_mlme_mgmt()
800 const struct ieee80211_mgmt *mgmt) in cfg80211_allowed_random_address() argument
802 if (ieee80211_is_auth(mgmt->frame_control) || in cfg80211_allowed_random_address()
803 ieee80211_is_deauth(mgmt->frame_control)) { in cfg80211_allowed_random_address()
811 } else if (ieee80211_is_action(mgmt->frame_control) && in cfg80211_allowed_random_address()
812 mgmt->u.action.category == WLAN_CATEGORY_PUBLIC) { in cfg80211_allowed_random_address()
836 const struct ieee80211_mgmt *mgmt; in cfg80211_mlme_mgmt_tx() local
850 mgmt = (const struct ieee80211_mgmt *)params->buf; in cfg80211_mlme_mgmt_tx()
852 if (!ieee80211_is_mgmt(mgmt->frame_control)) in cfg80211_mlme_mgmt_tx()
855 stype = le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE; in cfg80211_mlme_mgmt_tx()
859 if (ieee80211_is_action(mgmt->frame_control) && in cfg80211_mlme_mgmt_tx()
860 mgmt->u.action.category != WLAN_CATEGORY_PUBLIC) { in cfg80211_mlme_mgmt_tx()
871 mgmt->bssid)) { in cfg80211_mlme_mgmt_tx()
886 mgmt->bssid)) { in cfg80211_mlme_mgmt_tx()
893 mgmt->da)) { in cfg80211_mlme_mgmt_tx()
901 if (!ether_addr_equal(mgmt->bssid, wdev_address(wdev)) && in cfg80211_mlme_mgmt_tx()
903 !ether_addr_equal(mgmt->bssid, in cfg80211_mlme_mgmt_tx()
908 if (!ether_addr_equal(mgmt->sa, mgmt->bssid)) { in cfg80211_mlme_mgmt_tx()
932 if (!cfg80211_allowed_address(wdev, mgmt->sa) && in cfg80211_mlme_mgmt_tx()
933 !cfg80211_allowed_random_address(wdev, mgmt)) in cfg80211_mlme_mgmt_tx()
948 struct ieee80211_mgmt *mgmt = (void *)info->buf; in cfg80211_rx_mgmt_ext() local
952 __le16 ftype = mgmt->frame_control & in cfg80211_rx_mgmt_ext()
957 stype = (le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE) >> 4; in cfg80211_rx_mgmt_ext()
964 data = info->buf + ieee80211_hdrlen(mgmt->frame_control); in cfg80211_rx_mgmt_ext()
965 data_len = info->len - ieee80211_hdrlen(mgmt->frame_control); in cfg80211_rx_mgmt_ext()