Use cpu_to_le16() insted of RTW_PUT_LE16()

Port 83a9b6694d1e300ca8240fdf654650dcc096c86f
This commit is contained in:
Carlos Garces
2021-10-20 16:42:09 +02:00
parent c832879ea1
commit 51d0819382
8 changed files with 23 additions and 44 deletions

View File

@@ -514,11 +514,6 @@ extern u32 rtw_random32(void);
} while (0)
#define RTW_GET_LE16(a) ((u16) (((a)[1] << 8) | (a)[0]))
#define RTW_PUT_LE16(a, val) \
do { \
(a)[1] = ((u16) (val)) >> 8; \
(a)[0] = ((u16) (val)) & 0xff; \
} while (0)
#define RTW_GET_BE24(a) ((((u32) (a)[0]) << 16) | (((u32) (a)[1]) << 8) | \
((u32) (a)[2]))