Lines Matching refs:mgmt

49 	struct ieee80211_mgmt *mgmt;
91 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len +
93 if (mgmt == NULL) {
98 os_memcpy(mgmt->da, addr, ETH_ALEN);
99 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);
100 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN);
101 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
103 mgmt->u.action.category = WLAN_ACTION_WNM;
104 mgmt->u.action.u.wnm_sleep_resp.action = WNM_SLEEP_MODE_RESP;
105 mgmt->u.action.u.wnm_sleep_resp.dialogtoken = dialog_token;
106 pos = (u8 *)mgmt->u.action.u.wnm_sleep_resp.variable;
110 mgmt->u.action.u.wnm_sleep_resp.keydata_len = 0;
120 os_free(mgmt);
130 &mgmt->u.action.u.wnm_sleep_resp.keydata_len,
139 len = 1 + sizeof(mgmt->u.action.u.wnm_sleep_resp) + gtk_elem_len +
145 mgmt->da, &mgmt->u.action.category, len);
185 os_free(mgmt);
254 struct ieee80211_mgmt *mgmt;
264 mgmt = os_zalloc(sizeof(*mgmt) + (url_len ? 1 + url_len : 0));
265 if (mgmt == NULL)
267 os_memcpy(mgmt->da, addr, ETH_ALEN);
268 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);
269 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN);
270 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
272 mgmt->u.action.category = WLAN_ACTION_WNM;
273 mgmt->u.action.u.bss_tm_req.action = WNM_BSS_TRANS_MGMT_REQ;
274 mgmt->u.action.u.bss_tm_req.dialog_token = dialog_token;
275 mgmt->u.action.u.bss_tm_req.req_mode = 0;
276 mgmt->u.action.u.bss_tm_req.disassoc_timer = host_to_le16(0);
277 mgmt->u.action.u.bss_tm_req.validity_interval = 1;
278 pos = mgmt->u.action.u.bss_tm_req.variable;
289 mgmt->u.action.u.bss_tm_req.req_mode,
290 le_to_host16(mgmt->u.action.u.bss_tm_req.disassoc_timer),
291 mgmt->u.action.u.bss_tm_req.validity_interval);
293 len = pos - &mgmt->u.action.category;
295 mgmt->da, &mgmt->u.action.category, len);
296 os_free(mgmt);
370 const struct ieee80211_mgmt *mgmt, size_t len)
379 payload = ((const u8 *) mgmt) + IEEE80211_HDRLEN + 1;
385 ieee802_11_rx_bss_trans_mgmt_query(hapd, mgmt->sa, payload,
389 ieee802_11_rx_bss_trans_mgmt_resp(hapd, mgmt->sa, payload,
393 ieee802_11_rx_wnmsleep_req(hapd, mgmt->sa, payload, plen);
398 action, MAC2STR(mgmt->sa));
407 struct ieee80211_mgmt *mgmt;
410 mgmt = (struct ieee80211_mgmt *) buf;
411 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
413 os_memcpy(mgmt->da, sta->addr, ETH_ALEN);
414 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);
415 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN);
416 mgmt->u.action.category = WLAN_ACTION_WNM;
417 mgmt->u.action.u.bss_tm_req.action = WNM_BSS_TRANS_MGMT_REQ;
418 mgmt->u.action.u.bss_tm_req.dialog_token = 1;
419 mgmt->u.action.u.bss_tm_req.req_mode =
421 mgmt->u.action.u.bss_tm_req.disassoc_timer =
423 mgmt->u.action.u.bss_tm_req.validity_interval = 0;
425 pos = mgmt->u.action.u.bss_tm_req.variable;
444 struct ieee80211_mgmt *mgmt;
448 mgmt = (struct ieee80211_mgmt *) buf;
449 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
451 os_memcpy(mgmt->da, sta->addr, ETH_ALEN);
452 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);
453 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN);
454 mgmt->u.action.category = WLAN_ACTION_WNM;
455 mgmt->u.action.u.bss_tm_req.action = WNM_BSS_TRANS_MGMT_REQ;
456 mgmt->u.action.u.bss_tm_req.dialog_token = 1;
457 mgmt->u.action.u.bss_tm_req.req_mode =
460 mgmt->u.action.u.bss_tm_req.disassoc_timer =
462 mgmt->u.action.u.bss_tm_req.validity_interval = 0x01;
464 pos = mgmt->u.action.u.bss_tm_req.variable;