Lines Matching refs:mgmt

1224 	struct ieee80211_mgmt *mgmt;  in ieee80211_send_auth()  local
1235 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24 + 6); in ieee80211_send_auth()
1236 memset(mgmt, 0, 24 + 6); in ieee80211_send_auth()
1237 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_auth()
1239 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_send_auth()
1240 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_auth()
1241 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_send_auth()
1242 mgmt->u.auth.auth_alg = cpu_to_le16(auth_alg); in ieee80211_send_auth()
1243 mgmt->u.auth.auth_transaction = cpu_to_le16(transaction); in ieee80211_send_auth()
1244 mgmt->u.auth.status_code = cpu_to_le16(status); in ieee80211_send_auth()
1249 mgmt->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); in ieee80211_send_auth()
1265 struct ieee80211_mgmt *mgmt = (void *)frame_buf; in ieee80211_send_deauth_disassoc() local
1268 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | stype); in ieee80211_send_deauth_disassoc()
1269 mgmt->duration = 0; /* initialize only */ in ieee80211_send_deauth_disassoc()
1270 mgmt->seq_ctrl = 0; /* initialize only */ in ieee80211_send_deauth_disassoc()
1271 memcpy(mgmt->da, bssid, ETH_ALEN); in ieee80211_send_deauth_disassoc()
1272 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_deauth_disassoc()
1273 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_send_deauth_disassoc()
1275 mgmt->u.deauth.reason_code = cpu_to_le16(reason); in ieee80211_send_deauth_disassoc()
1287 mgmt, IEEE80211_DEAUTH_FRAME_LEN); in ieee80211_send_deauth_disassoc()
1520 struct ieee80211_mgmt *mgmt; in ieee80211_build_probe_req() local
1549 mgmt = (struct ieee80211_mgmt *) skb->data; in ieee80211_build_probe_req()
1550 memcpy(mgmt->da, dst, ETH_ALEN); in ieee80211_build_probe_req()
1551 memcpy(mgmt->bssid, dst, ETH_ALEN); in ieee80211_build_probe_req()
2832 struct ieee80211_mgmt *mgmt; in ieee80211_send_action_csa() local
2836 sizeof(mgmt->u.action.u.chan_switch); in ieee80211_send_action_csa()
2851 mgmt = (struct ieee80211_mgmt *)skb_put(skb, hdr_len); in ieee80211_send_action_csa()
2852 memset(mgmt, 0, hdr_len); in ieee80211_send_action_csa()
2853 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_action_csa()
2856 eth_broadcast_addr(mgmt->da); in ieee80211_send_action_csa()
2857 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_action_csa()
2859 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_action_csa()
2862 memcpy(mgmt->bssid, ifibss->bssid, ETH_ALEN); in ieee80211_send_action_csa()
2864 mgmt->u.action.category = WLAN_CATEGORY_SPECTRUM_MGMT; in ieee80211_send_action_csa()
2865 mgmt->u.action.u.chan_switch.action_code = WLAN_ACTION_SPCT_CHL_SWITCH; in ieee80211_send_action_csa()