mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
staging: r8188eu: use ieee80211 helper to read the "order" bit
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>
This commit is contained in:
parent
0beae891d3
commit
095f746502
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user