Lines Matching refs:mgmt
74 if (len < 24) /* drop incorrect hdr len (mgmt) */
1175 struct ieee80211_mgmt *mgmt;
1186 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24 + 6);
1187 memset(mgmt, 0, 24 + 6);
1188 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
1190 memcpy(mgmt->da, da, ETH_ALEN);
1191 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN);
1192 memcpy(mgmt->bssid, bssid, ETH_ALEN);
1193 mgmt->u.auth.auth_alg = cpu_to_le16(auth_alg);
1194 mgmt->u.auth.auth_transaction = cpu_to_le16(transaction);
1195 mgmt->u.auth.status_code = cpu_to_le16(status);
1200 mgmt->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED);
1216 struct ieee80211_mgmt *mgmt = (void *)frame_buf;
1219 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | stype);
1220 mgmt->duration = 0; /* initialize only */
1221 mgmt->seq_ctrl = 0; /* initialize only */
1222 memcpy(mgmt->da, bssid, ETH_ALEN);
1223 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN);
1224 memcpy(mgmt->bssid, bssid, ETH_ALEN);
1226 mgmt->u.deauth.reason_code = cpu_to_le16(reason);
1238 mgmt, IEEE80211_DEAUTH_FRAME_LEN);
1459 struct ieee80211_mgmt *mgmt;
1488 mgmt = (struct ieee80211_mgmt *) skb->data;
1489 memcpy(mgmt->da, dst, ETH_ALEN);
1490 memcpy(mgmt->bssid, dst, ETH_ALEN);
2638 struct ieee80211_mgmt *mgmt;
2642 sizeof(mgmt->u.action.u.chan_switch);
2657 mgmt = (struct ieee80211_mgmt *)skb_put(skb, hdr_len);
2658 memset(mgmt, 0, hdr_len);
2659 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
2662 eth_broadcast_addr(mgmt->da);
2663 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN);
2665 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN);
2668 memcpy(mgmt->bssid, ifibss->bssid, ETH_ALEN);
2670 mgmt->u.action.category = WLAN_CATEGORY_SPECTRUM_MGMT;
2671 mgmt->u.action.u.chan_switch.action_code = WLAN_ACTION_SPCT_CHL_SWITCH;