staging: r8188eu: use ieee80211 helper for protected bit
authorMartin Kaiser <martin@kaiser.cx>
Sat, 26 Nov 2022 15:42:53 +0000 (16:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Dec 2022 12:26:13 +0000 (13:26 +0100)
commit57a8f00f03f1fa493fadd20992e700d24f6860cb
treef8d964509668334ad5bd1d3fe985315f0b8cc803
parent92f1bb5ff104d7f36754f27c17483d4e8ffe85ae
staging: r8188eu: use ieee80211 helper for protected bit

Use ieee80211_has_protected to check if the "protected" bit is set. Remove
the r8188eu driver's internal macro for this check.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20221126154253.178275-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/include/wifi.h