diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-12-20 23:21:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-29 00:08:51 +0100 |
commit | 15617858b3cf249a3577df8da970f779bbc8a737 (patch) | |
tree | e1031acf17683b559a0b4fcb9fc007957256cb53 | |
parent | airo: bug in airo_interrupt() handling on incoming 802.11 (diff) | |
download | linux-15617858b3cf249a3577df8da970f779bbc8a737.tar.xz linux-15617858b3cf249a3577df8da970f779bbc8a737.zip |
airo endianness bug: cap_rid.extSoftCap
never had been byteswapped, used as host-endian...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/airo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 9d3f3357b6e1..68c5e54230c1 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c @@ -3847,7 +3847,8 @@ static u16 setup_card(struct airo_info *ai, u8 *mac, int lock) ai->config.authType = AUTH_OPEN; ai->config.modulation = MOD_CCK; - if ((cap_rid.len>=sizeof(cap_rid)) && (cap_rid.extSoftCap&1) && + if ((cap_rid.len>=sizeof(cap_rid)) && + (cap_rid.extSoftCap & cpu_to_le16(1)) && (micsetup(ai) == SUCCESS)) { ai->config.opmode |= MODE_MIC; set_bit(FLAG_MIC_CAPABLE, &ai->flags); |