Lines Matching refs:mgmt

52 	struct ieee80211_mgmt *mgmt;  in ieee802_11_send_wnmsleep_resp()  local
136 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len + in ieee802_11_send_wnmsleep_resp()
140 if (mgmt == NULL) { in ieee802_11_send_wnmsleep_resp()
146 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
147 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
148 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
149 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_wnmsleep_resp()
151 mgmt->u.action.category = WLAN_ACTION_WNM; in ieee802_11_send_wnmsleep_resp()
152 mgmt->u.action.u.wnm_sleep_resp.action = WNM_SLEEP_MODE_RESP; in ieee802_11_send_wnmsleep_resp()
153 mgmt->u.action.u.wnm_sleep_resp.dialogtoken = dialog_token; in ieee802_11_send_wnmsleep_resp()
154 pos = (u8 *)mgmt->u.action.u.wnm_sleep_resp.variable; in ieee802_11_send_wnmsleep_resp()
159 mgmt->u.action.u.wnm_sleep_resp.keydata_len = 0; in ieee802_11_send_wnmsleep_resp()
185 &mgmt->u.action.u.wnm_sleep_resp.keydata_len, in ieee802_11_send_wnmsleep_resp()
201 len = 1 + sizeof(mgmt->u.action.u.wnm_sleep_resp) + gtk_elem_len + in ieee802_11_send_wnmsleep_resp()
208 mgmt->da, &mgmt->u.action.category, len); in ieee802_11_send_wnmsleep_resp()
252 os_free(mgmt); in ieee802_11_send_wnmsleep_resp()
368 struct ieee80211_mgmt *mgmt; in ieee802_11_send_bss_trans_mgmt_request() local
373 mgmt = os_zalloc(sizeof(*mgmt)); in ieee802_11_send_bss_trans_mgmt_request()
374 if (mgmt == NULL) in ieee802_11_send_bss_trans_mgmt_request()
376 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
377 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
378 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
379 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_bss_trans_mgmt_request()
381 mgmt->u.action.category = WLAN_ACTION_WNM; in ieee802_11_send_bss_trans_mgmt_request()
382 mgmt->u.action.u.bss_tm_req.action = WNM_BSS_TRANS_MGMT_REQ; in ieee802_11_send_bss_trans_mgmt_request()
383 mgmt->u.action.u.bss_tm_req.dialog_token = dialog_token; in ieee802_11_send_bss_trans_mgmt_request()
384 mgmt->u.action.u.bss_tm_req.req_mode = 0; in ieee802_11_send_bss_trans_mgmt_request()
385 mgmt->u.action.u.bss_tm_req.disassoc_timer = host_to_le16(0); in ieee802_11_send_bss_trans_mgmt_request()
386 mgmt->u.action.u.bss_tm_req.validity_interval = 1; in ieee802_11_send_bss_trans_mgmt_request()
387 pos = mgmt->u.action.u.bss_tm_req.variable; in ieee802_11_send_bss_trans_mgmt_request()
393 mgmt->u.action.u.bss_tm_req.req_mode, in ieee802_11_send_bss_trans_mgmt_request()
394 le_to_host16(mgmt->u.action.u.bss_tm_req.disassoc_timer), in ieee802_11_send_bss_trans_mgmt_request()
395 mgmt->u.action.u.bss_tm_req.validity_interval); in ieee802_11_send_bss_trans_mgmt_request()
397 len = pos - &mgmt->u.action.category; in ieee802_11_send_bss_trans_mgmt_request()
399 mgmt->da, &mgmt->u.action.category, len); in ieee802_11_send_bss_trans_mgmt_request()
400 os_free(mgmt); in ieee802_11_send_bss_trans_mgmt_request()
634 const struct ieee80211_mgmt *mgmt, size_t len) in ieee802_11_rx_wnm_action_ap() argument
643 payload = ((const u8 *) mgmt) + IEEE80211_HDRLEN + 1; in ieee802_11_rx_wnm_action_ap()
649 ieee802_11_rx_bss_trans_mgmt_query(hapd, mgmt->sa, payload, in ieee802_11_rx_wnm_action_ap()
653 ieee802_11_rx_bss_trans_mgmt_resp(hapd, mgmt->sa, payload, in ieee802_11_rx_wnm_action_ap()
657 ieee802_11_rx_wnmsleep_req(hapd, mgmt->sa, payload, plen); in ieee802_11_rx_wnm_action_ap()
660 ieee802_11_rx_wnm_notification_req(hapd, mgmt->sa, payload, in ieee802_11_rx_wnm_action_ap()
664 ieee802_11_rx_wnm_coloc_intf_report(hapd, mgmt->sa, payload, in ieee802_11_rx_wnm_action_ap()
670 action, MAC2STR(mgmt->sa)); in ieee802_11_rx_wnm_action_ap()
679 struct ieee80211_mgmt *mgmt; in wnm_send_disassoc_imminent() local
682 mgmt = (struct ieee80211_mgmt *) buf; in wnm_send_disassoc_imminent()
683 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in wnm_send_disassoc_imminent()
685 os_memcpy(mgmt->da, sta->addr, ETH_ALEN); in wnm_send_disassoc_imminent()
686 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent()
687 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent()
688 mgmt->u.action.category = WLAN_ACTION_WNM; in wnm_send_disassoc_imminent()
689 mgmt->u.action.u.bss_tm_req.action = WNM_BSS_TRANS_MGMT_REQ; in wnm_send_disassoc_imminent()
690 mgmt->u.action.u.bss_tm_req.dialog_token = 1; in wnm_send_disassoc_imminent()
691 mgmt->u.action.u.bss_tm_req.req_mode = in wnm_send_disassoc_imminent()
693 mgmt->u.action.u.bss_tm_req.disassoc_timer = in wnm_send_disassoc_imminent()
695 mgmt->u.action.u.bss_tm_req.validity_interval = 0; in wnm_send_disassoc_imminent()
697 pos = mgmt->u.action.u.bss_tm_req.variable; in wnm_send_disassoc_imminent()
744 struct ieee80211_mgmt *mgmt; in wnm_send_ess_disassoc_imminent() local
748 mgmt = (struct ieee80211_mgmt *) buf; in wnm_send_ess_disassoc_imminent()
749 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in wnm_send_ess_disassoc_imminent()
751 os_memcpy(mgmt->da, sta->addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent()
752 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent()
753 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent()
754 mgmt->u.action.category = WLAN_ACTION_WNM; in wnm_send_ess_disassoc_imminent()
755 mgmt->u.action.u.bss_tm_req.action = WNM_BSS_TRANS_MGMT_REQ; in wnm_send_ess_disassoc_imminent()
756 mgmt->u.action.u.bss_tm_req.dialog_token = 1; in wnm_send_ess_disassoc_imminent()
757 mgmt->u.action.u.bss_tm_req.req_mode = in wnm_send_ess_disassoc_imminent()
760 mgmt->u.action.u.bss_tm_req.disassoc_timer = in wnm_send_ess_disassoc_imminent()
762 mgmt->u.action.u.bss_tm_req.validity_interval = 0x01; in wnm_send_ess_disassoc_imminent()
764 pos = mgmt->u.action.u.bss_tm_req.variable; in wnm_send_ess_disassoc_imminent()
796 struct ieee80211_mgmt *mgmt; in wnm_send_bss_tm_req() local
807 mgmt = (struct ieee80211_mgmt *) buf; in wnm_send_bss_tm_req()
808 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in wnm_send_bss_tm_req()
810 os_memcpy(mgmt->da, sta->addr, ETH_ALEN); in wnm_send_bss_tm_req()
811 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req()
812 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req()
813 mgmt->u.action.category = WLAN_ACTION_WNM; in wnm_send_bss_tm_req()
814 mgmt->u.action.u.bss_tm_req.action = WNM_BSS_TRANS_MGMT_REQ; in wnm_send_bss_tm_req()
815 mgmt->u.action.u.bss_tm_req.dialog_token = dialog_token; in wnm_send_bss_tm_req()
816 mgmt->u.action.u.bss_tm_req.req_mode = req_mode; in wnm_send_bss_tm_req()
817 mgmt->u.action.u.bss_tm_req.disassoc_timer = in wnm_send_bss_tm_req()
819 mgmt->u.action.u.bss_tm_req.validity_interval = valid_int; in wnm_send_bss_tm_req()
821 pos = mgmt->u.action.u.bss_tm_req.variable; in wnm_send_bss_tm_req()
873 struct ieee80211_mgmt *mgmt; in wnm_send_coloc_intf_req() local
879 mgmt = (struct ieee80211_mgmt *) buf; in wnm_send_coloc_intf_req()
880 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in wnm_send_coloc_intf_req()
882 os_memcpy(mgmt->da, sta->addr, ETH_ALEN); in wnm_send_coloc_intf_req()
883 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_coloc_intf_req()
884 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_coloc_intf_req()
885 mgmt->u.action.category = WLAN_ACTION_WNM; in wnm_send_coloc_intf_req()
886 mgmt->u.action.u.coloc_intf_req.action = in wnm_send_coloc_intf_req()
888 mgmt->u.action.u.coloc_intf_req.dialog_token = dialog_token; in wnm_send_coloc_intf_req()
889 mgmt->u.action.u.coloc_intf_req.req_info = auto_report | (timeout << 2); in wnm_send_coloc_intf_req()
890 pos = &mgmt->u.action.u.coloc_intf_req.req_info; in wnm_send_coloc_intf_req()