Lines Matching full:mgmt
22 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_is_twt_setup() local
24 if (likely(!ieee80211_is_action(mgmt->frame_control))) in ieee80211_s1g_is_twt_setup()
27 if (likely(mgmt->u.action.category != WLAN_CATEGORY_S1G)) in ieee80211_s1g_is_twt_setup()
30 return mgmt->u.action.u.s1g.action_code == WLAN_S1G_TWT_SETUP; in ieee80211_s1g_is_twt_setup()
39 struct ieee80211_mgmt *mgmt; in ieee80211_s1g_send_twt_setup() local
47 mgmt = skb_put_zero(skb, len); in ieee80211_s1g_send_twt_setup()
48 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_s1g_send_twt_setup()
50 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
51 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
52 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
54 mgmt->u.action.category = WLAN_CATEGORY_S1G; in ieee80211_s1g_send_twt_setup()
55 mgmt->u.action.u.s1g.action_code = WLAN_S1G_TWT_SETUP; in ieee80211_s1g_send_twt_setup()
56 memcpy(mgmt->u.action.u.s1g.variable, twt, 3 + twt->length); in ieee80211_s1g_send_twt_setup()
69 struct ieee80211_mgmt *mgmt; in ieee80211_s1g_send_twt_teardown() local
79 mgmt = skb_put_zero(skb, IEEE80211_MIN_ACTION_SIZE + 2); in ieee80211_s1g_send_twt_teardown()
80 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_s1g_send_twt_teardown()
82 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_s1g_send_twt_teardown()
83 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_s1g_send_twt_teardown()
84 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_s1g_send_twt_teardown()
86 mgmt->u.action.category = WLAN_CATEGORY_S1G; in ieee80211_s1g_send_twt_teardown()
87 mgmt->u.action.u.s1g.action_code = WLAN_S1G_TWT_TEARDOWN; in ieee80211_s1g_send_twt_teardown()
88 id = (u8 *)mgmt->u.action.u.s1g.variable; in ieee80211_s1g_send_twt_teardown()
100 struct ieee80211_mgmt *mgmt = (void *)skb->data; in ieee80211_s1g_rx_twt_setup() local
101 struct ieee80211_twt_setup *twt = (void *)mgmt->u.action.u.s1g.variable; in ieee80211_s1g_rx_twt_setup()
121 ieee80211_s1g_send_twt_setup(sdata, mgmt->sa, sdata->vif.addr, twt); in ieee80211_s1g_rx_twt_setup()
128 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_rx_twt_teardown() local
131 mgmt->u.action.u.s1g.variable[0]); in ieee80211_s1g_rx_twt_teardown()
138 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_tx_twt_setup_fail() local
139 struct ieee80211_twt_setup *twt = (void *)mgmt->u.action.u.s1g.variable; in ieee80211_s1g_tx_twt_setup_fail()
146 ieee80211_s1g_send_twt_teardown(sdata, mgmt->sa, sdata->vif.addr, in ieee80211_s1g_tx_twt_setup_fail()
153 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_rx_twt_action() local
159 sta = sta_info_get_bss(sdata, mgmt->sa); in ieee80211_s1g_rx_twt_action()
163 switch (mgmt->u.action.u.s1g.action_code) { in ieee80211_s1g_rx_twt_action()
178 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; in ieee80211_s1g_status_twt_action() local
184 sta = sta_info_get_bss(sdata, mgmt->da); in ieee80211_s1g_status_twt_action()
188 switch (mgmt->u.action.u.s1g.action_code) { in ieee80211_s1g_status_twt_action()