mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: More endian fixes
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
276a62340a
commit
87f2c0473e
2 changed files with 5 additions and 3 deletions
|
@ -280,8 +280,8 @@ enum WIFI_REG_DOMAIN {
|
|||
|
||||
#define SetFrameType(pbuf, type) \
|
||||
do { \
|
||||
*(__le16 *)(pbuf) &= __constant_cpu_to_le16(~(BIT(3) | BIT(2))); \
|
||||
*(__le16 *)(pbuf) |= __constant_cpu_to_le16(type); \
|
||||
*(unsigned short *)(pbuf) &= __constant_cpu_to_le16(~(BIT(3) | BIT(2))); \
|
||||
*(unsigned short *)(pbuf) |= __constant_cpu_to_le16(type); \
|
||||
} while (0)
|
||||
|
||||
#define GetFrameSubType(pbuf) (le16_to_cpu(*(__le16 *)(pbuf)) & (BIT(7) |\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue