staging: r8188eu: replace the GetFrameSubType call
authorMartin Kaiser <martin@kaiser.cx>
Sun, 17 Apr 2022 10:22:17 +0000 (12:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 16:37:17 +0000 (18:37 +0200)
commitbd379a21488bbe694984ba5d1bd7d4cd4a17d416
treebe903e8cb1d076a8ed1aa748006777b47372bafb
parent59e8d56f00a5a7635be11d4c4959de9458230553
staging: r8188eu: replace the GetFrameSubType call

The driver's local GetFrameSubType macro returns both frame type and
subtype.

Use the ieee80211 framework to extract the two fields. This shows more
clearly that both type and subtype are read.

Convert everything to host endianness before we use bit operations.

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