]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
staging: r8188eu: use ieee80211 helper to read the "order" bit
authorMartin Kaiser <martin@kaiser.cx>
Sun, 27 Feb 2022 16:41:47 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Mar 2022 21:34:16 +0000 (22:34 +0100)
Use the ieee80211 helper to read the "order" bit. The driver-specific
macro GetOrder can be removed.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220227164147.1168847-9-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

index b245b0d54973d82ef7dde93e5cc8b0cedef8197a..d77d983510a08c8ae34ec558ff2d95fd15624b9a 100644 (file)
@@ -1084,7 +1084,7 @@ static int validate_recv_frame(struct adapter *adapter, struct recv_frame *precv
        pattrib->mfrag = ieee80211_has_morefrags(fc);
        pattrib->mdata = ieee80211_has_moredata(fc);
        pattrib->privacy = ieee80211_has_protected(fc);
-       pattrib->order = GetOrder(ptr);
+       pattrib->order = ieee80211_has_order(fc);
 
        /* Dump rx packets */
        GetHalDefVar8188EUsb(adapter, HAL_DEF_DBG_DUMP_RXPKT, &bDumpRxPkt);
index 336c32470150ac4e4b900964b00698b2ced11ae1..39b7a596e4c1d281e11f9ea714d33e9e7435ed76 100644 (file)
@@ -217,9 +217,6 @@ enum WIFI_REG_DOMAIN {
 #define ClearPrivacy(pbuf)     \
        *(__le16 *)(pbuf) &= (~cpu_to_le16(_PRIVACY_))
 
-#define GetOrder(pbuf)                                 \
-       (((*(__le16 *)(pbuf)) & cpu_to_le16(_ORDER_)) != 0)
-
 #define GetFrameType(pbuf)                             \
        (le16_to_cpu(*(__le16 *)(pbuf)) & (BIT(3) | BIT(2)))