Commit 095f7465 authored by Martin Kaiser's avatar Martin Kaiser Committed by Greg Kroah-Hartman
Browse files

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


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0beae891
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+0 −3
Original line number Diff line number Diff line
@@ -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)))