summaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include/wifi.h
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2022-04-03 18:45:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-04 16:31:07 +0200
commitaada014aa50cb2c93ea72c38a79270cd4b66b170 (patch)
treeede824683b5dc3ff73a13a0881c323ad15e4c9d3 /drivers/staging/r8188eu/include/wifi.h
parenta32dad7d97eadb69fcddc5fdb3dd98e684a7a870 (diff)
downloadlinux-aada014aa50cb2c93ea72c38a79270cd4b66b170.tar.bz2
staging: r8188eu: use ieee80211 struct for aid
Remove the GetAid macro and map the frame data to a struct ieee80211_pspoll instead. We can then read the aid component. psta->aid is in host endianness and has a 0x3FFF mask applied. We have to convert our read value as well and apply the mask before we compare it to psta->aid. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220403164526.357371-6-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/wifi.h')
-rw-r--r--drivers/staging/r8188eu/include/wifi.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/r8188eu/include/wifi.h b/drivers/staging/r8188eu/include/wifi.h
index e10cf17d6aa0..eb3cb1fb285f 100644
--- a/drivers/staging/r8188eu/include/wifi.h
+++ b/drivers/staging/r8188eu/include/wifi.h
@@ -228,8 +228,6 @@ enum WIFI_REG_DOMAIN {
#define SetAMsdu(pbuf, amsdu) \
*(__le16 *)(pbuf) |= cpu_to_le16((amsdu & 1) << 7)
-#define GetAid(pbuf) (le16_to_cpu(*(__le16 *)((size_t)(pbuf) + 2)) & 0x3fff)
-
#define GetTid(pbuf) (le16_to_cpu(*(__le16 *)((size_t)(pbuf) + \
(((GetToDs(pbuf)<<1) | GetFrDs(pbuf)) == 3 ? \
30 : 24))) & 0x000f)