diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-12-20 17:21:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:08:51 -0500 |
commit | 15617858b3cf249a3577df8da970f779bbc8a737 (patch) | |
tree | e1031acf17683b559a0b4fcb9fc007957256cb53 /drivers/net | |
parent | 0300b3321d9ed73a0c3f575f2df250c577852356 (diff) |
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>
Diffstat (limited to 'drivers/net')
-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) | |||
3847 | ai->config.authType = AUTH_OPEN; | 3847 | ai->config.authType = AUTH_OPEN; |
3848 | ai->config.modulation = MOD_CCK; | 3848 | ai->config.modulation = MOD_CCK; |
3849 | 3849 | ||
3850 | if ((cap_rid.len>=sizeof(cap_rid)) && (cap_rid.extSoftCap&1) && | 3850 | if ((cap_rid.len>=sizeof(cap_rid)) && |
3851 | (cap_rid.extSoftCap & cpu_to_le16(1)) && | ||
3851 | (micsetup(ai) == SUCCESS)) { | 3852 | (micsetup(ai) == SUCCESS)) { |
3852 | ai->config.opmode |= MODE_MIC; | 3853 | ai->config.opmode |= MODE_MIC; |
3853 | set_bit(FLAG_MIC_CAPABLE, &ai->flags); | 3854 | set_bit(FLAG_MIC_CAPABLE, &ai->flags); |