Commit ea995abf authored by Al Viro's avatar Al Viro Committed by John W. Linville

wavelan_cs arm fix

Even when all fields are unsigned char, struct still might have
alignment > 1.  Does so on arm, unless you explicitly say that
it's packed...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0a74892b
...@@ -309,7 +309,7 @@ struct mmw_t ...@@ -309,7 +309,7 @@ struct mmw_t
#define MMW_EXT_ANT_INTERNAL 0x00 /* Internal antenna */ #define MMW_EXT_ANT_INTERNAL 0x00 /* Internal antenna */
#define MMW_EXT_ANT_EXTERNAL 0x03 /* External antenna */ #define MMW_EXT_ANT_EXTERNAL 0x03 /* External antenna */
#define MMW_EXT_ANT_IQ_TEST 0x1C /* IQ test pattern (set to 0) */ #define MMW_EXT_ANT_IQ_TEST 0x1C /* IQ test pattern (set to 0) */
}; } __attribute__((packed));
/* Size for structure checking (if padding is correct) */ /* Size for structure checking (if padding is correct) */
#define MMW_SIZE 37 #define MMW_SIZE 37
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment