1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-22 21:34:37 +00:00

Use endian macros from kernel

This commit is contained in:
Christian kimocoder 2017-10-24 14:56:21 +02:00 committed by GitHub
parent 8c6bb81767
commit eeb8466919

View File

@ -63,7 +63,7 @@ struct rsn_ie_hdr {
} __attribute__((packed));
struct wme_ac_parameter {
#if defined(CONFIG_LITTLE_ENDIAN)
#if defined(__LITTLE_ENDIAN)
/* byte 1 */
u8 aifsn:4,
acm:1,
@ -73,7 +73,7 @@ struct wme_ac_parameter {
/* byte 2 */
u8 eCWmin:4,
eCWmax:4;
#elif defined(CONFIG_BIG_ENDIAN)
#else
/* byte 1 */
u8 reserved:1,
aci:2,
@ -83,8 +83,6 @@ struct wme_ac_parameter {
/* byte 2 */
u8 eCWmax:4,
eCWmin:4;
#else
#error "Please fix <endian.h>"
#endif
/* bytes 3 & 4 */