Skip to content

Commit

Permalink
wavelan_cs arm fix
Browse files Browse the repository at this point in the history
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: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Al Viro authored and John W. Linville committed Mar 24, 2008
1 parent 0a74892 commit ea995ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/wavelan_cs.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ struct mmw_t
#define MMW_EXT_ANT_INTERNAL 0x00 /* Internal antenna */
#define MMW_EXT_ANT_EXTERNAL 0x03 /* External antenna */
#define MMW_EXT_ANT_IQ_TEST 0x1C /* IQ test pattern (set to 0) */
};
} __attribute__((packed));

/* Size for structure checking (if padding is correct) */
#define MMW_SIZE 37
Expand Down

0 comments on commit ea995ab

Please sign in to comment.