staging: r8188eu: read back action code from ieee80211_mgmt
authorMartin Kaiser <martin@kaiser.cx>
Sun, 8 May 2022 16:14:51 +0000 (18:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 15:40:56 +0000 (17:40 +0200)
commit073d44eaccf07ffbc48e941c62ccd95324df93bf
treee8f1fa88f488b0504a70e9c623e73606d1327c1f
parente2b1711fb54436b681257ee75e0b1a230f5cbb1c
staging: r8188eu: read back action code from ieee80211_mgmt

Read the back action code from struct ieee80211_mgmt.

struct ieee80211_mgmt contains an "action" union. Each of its members
starts with an 8-bit action code. Treat the union as addba_req when we
read the action code although we do not yet know if it is an addba_req.
This approach is similar to ieee80211_iface_process_skb.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220508161451.115847-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c