staging: r8188eu: remove to_fr_ds from struct rx_pkt_attrib
authorMartin Kaiser <martin@kaiser.cx>
Sun, 3 Apr 2022 16:54:34 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:32:43 +0000 (16:32 +0200)
commit1a90b6e23bf9b97e29de9c8666b239fbcd457a46
tree0d29d9e326552e7823eeb430b8f3833275f75767
parentd9290327e6f52851c82db5997deb76405df976a6
staging: r8188eu: remove to_fr_ds from struct rx_pkt_attrib

to_fr_ds in struct rx_pkt_attrib stores the values of the to_ds and
from_ds bits of an incoming data frame. to_fr_ds is set by parsing the
frame control bytes and it's used only in validate_recv_data_frame.

Remove to_fr_ds from struct rx_pkt_attrib and use the ieee80211 helpers
to distinguish between the four different cases for to_ds, from_ds.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220403165438.357728-8-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c
drivers/staging/r8188eu/include/rtw_recv.h
drivers/staging/r8188eu/include/wifi.h