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 15:07:24 +02:00 committed by GitHub
parent 5a09d2cbce
commit c7f1aeb257

View File

@ -1153,21 +1153,17 @@ struct cmd_hdl wlancmds[] = {
struct C2HEvent_Header {
#ifdef CONFIG_LITTLE_ENDIAN
#ifdef __LITTLE_ENDIAN
unsigned int len:16;
unsigned int ID:8;
unsigned int seq:8;
#elif defined(CONFIG_BIG_ENDIAN)
unsigned int seq:8;
unsigned int ID:8;
unsigned int len:16;
#else
# error "Must be LITTLE or BIG Endian"
unsigned int seq:8;
unsigned int ID:8;
unsigned int len:16;
#endif