staging: r8188eu: use ieee80211 struct for aid
authorMartin Kaiser <martin@kaiser.cx>
Sun, 3 Apr 2022 16:45:26 +0000 (18:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:31:07 +0000 (16:31 +0200)
commitaada014aa50cb2c93ea72c38a79270cd4b66b170
treeede824683b5dc3ff73a13a0881c323ad15e4c9d3
parenta32dad7d97eadb69fcddc5fdb3dd98e684a7a870
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>
drivers/staging/r8188eu/core/rtw_recv.c
drivers/staging/r8188eu/include/wifi.h