Lines Matching defs:mgmt
46 struct ieee80211_mgmt *mgmt;
80 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len + wnmtfs_ie_len);
81 if (mgmt == NULL) {
87 os_memcpy(mgmt->da, wpa_s->bssid, ETH_ALEN);
88 os_memcpy(mgmt->sa, wpa_s->own_addr, ETH_ALEN);
89 os_memcpy(mgmt->bssid, wpa_s->bssid, ETH_ALEN);
90 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
92 mgmt->u.action.category = WLAN_ACTION_WNM;
93 mgmt->u.action.u.wnm_sleep_req.action = WNM_SLEEP_MODE_REQ;
94 os_memcpy(mgmt->u.action.u.wnm_sleep_req.variable, wnmsleep_ie,
98 os_memcpy(mgmt->u.action.u.wnm_sleep_req.variable +
102 len = 1 + sizeof(mgmt->u.action.u.wnm_sleep_req) + wnmsleep_ie_len +
107 &mgmt->u.action.category, len, 0);
114 os_free(mgmt);