libertas: endianness fixes

Recently I found that that sparse by default doesn't endianness
checks. So I changed my compilation habit to be

make modules C=1 SUBDIRS=drivers/net/wireless/libertas
CHECKFLAGS="-D__CHECK_ENDIAN__"

so that I get the little-endian checks from sparse as well. That
showed up a good bunch of problems.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Holger Schurig
2007-12-07 15:30:44 +00:00
committed by David S. Miller
parent 1723047d67
commit c2df2efe96
6 changed files with 23 additions and 23 deletions

View File

@@ -419,13 +419,13 @@ struct cmd_ds_802_11_rf_antenna {
};
struct cmd_ds_802_11_monitor_mode {
u16 action;
u16 mode;
__le16 action;
__le16 mode;
};
struct cmd_ds_set_boot2_ver {
u16 action;
u16 version;
__le16 action;
__le16 version;
};
struct cmd_ds_802_11_ps_mode {