Lines Matching refs:mgmt

21 	struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data;  in ieee80211_s1g_is_twt_setup()  local
23 if (likely(!ieee80211_is_action(mgmt->frame_control))) in ieee80211_s1g_is_twt_setup()
26 if (likely(mgmt->u.action.category != WLAN_CATEGORY_S1G)) in ieee80211_s1g_is_twt_setup()
29 return mgmt->u.action.u.s1g.action_code == WLAN_S1G_TWT_SETUP; in ieee80211_s1g_is_twt_setup()
38 struct ieee80211_mgmt *mgmt; in ieee80211_s1g_send_twt_setup() local
46 mgmt = skb_put_zero(skb, len); in ieee80211_s1g_send_twt_setup()
47 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_s1g_send_twt_setup()
49 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
50 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
51 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
53 mgmt->u.action.category = WLAN_CATEGORY_S1G; in ieee80211_s1g_send_twt_setup()
54 mgmt->u.action.u.s1g.action_code = WLAN_S1G_TWT_SETUP; in ieee80211_s1g_send_twt_setup()
55 memcpy(mgmt->u.action.u.s1g.variable, twt, 3 + twt->length); in ieee80211_s1g_send_twt_setup()
68 struct ieee80211_mgmt *mgmt; in ieee80211_s1g_send_twt_teardown() local
78 mgmt = skb_put_zero(skb, IEEE80211_MIN_ACTION_SIZE + 2); in ieee80211_s1g_send_twt_teardown()
79 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_s1g_send_twt_teardown()
81 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_s1g_send_twt_teardown()
82 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_s1g_send_twt_teardown()
83 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_s1g_send_twt_teardown()
85 mgmt->u.action.category = WLAN_CATEGORY_S1G; in ieee80211_s1g_send_twt_teardown()
86 mgmt->u.action.u.s1g.action_code = WLAN_S1G_TWT_TEARDOWN; in ieee80211_s1g_send_twt_teardown()
87 id = (u8 *)mgmt->u.action.u.s1g.variable; in ieee80211_s1g_send_twt_teardown()
99 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_s1g_rx_twt_setup() local
100 struct ieee80211_twt_setup *twt = (void *)mgmt->u.action.u.s1g.variable; in ieee80211_s1g_rx_twt_setup()
120 ieee80211_s1g_send_twt_setup(sdata, mgmt->sa, sdata->vif.addr, twt); in ieee80211_s1g_rx_twt_setup()
127 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_rx_twt_teardown() local
130 mgmt->u.action.u.s1g.variable[0]); in ieee80211_s1g_rx_twt_teardown()
137 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_tx_twt_setup_fail() local
138 struct ieee80211_twt_setup *twt = (void *)mgmt->u.action.u.s1g.variable; in ieee80211_s1g_tx_twt_setup_fail()
145 ieee80211_s1g_send_twt_teardown(sdata, mgmt->sa, sdata->vif.addr, in ieee80211_s1g_tx_twt_setup_fail()
152 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_rx_twt_action() local
158 sta = sta_info_get_bss(sdata, mgmt->sa); in ieee80211_s1g_rx_twt_action()
162 switch (mgmt->u.action.u.s1g.action_code) { in ieee80211_s1g_rx_twt_action()
180 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_status_twt_action() local
186 sta = sta_info_get_bss(sdata, mgmt->da); in ieee80211_s1g_status_twt_action()
190 switch (mgmt->u.action.u.s1g.action_code) { in ieee80211_s1g_status_twt_action()