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