Lines Matching refs:mgmt
48 struct ieee80211_mgmt *mgmt;
90 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len +
92 if (mgmt == NULL) {
97 os_memcpy(mgmt->da, addr, ETH_ALEN);
98 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);
99 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN);
100 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
102 mgmt->u.action.category = WLAN_ACTION_WNM;
103 mgmt->u.action.u.wnm_sleep_resp.action = WNM_SLEEP_MODE_RESP;
104 mgmt->u.action.u.wnm_sleep_resp.dialogtoken = dialog_token;
105 pos = (u8 *)mgmt->u.action.u.wnm_sleep_resp.variable;
109 mgmt->u.action.u.wnm_sleep_resp.keydata_len = 0;
119 os_free(mgmt);
129 &mgmt->u.action.u.wnm_sleep_resp.keydata_len,
138 len = 1 + sizeof(mgmt->u.action.u.wnm_sleep_resp) + gtk_elem_len +
144 mgmt->da, &mgmt->u.action.category, len);
182 os_free(mgmt);