From 15617858b3cf249a3577df8da970f779bbc8a737 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Thu, 20 Dec 2007 17:21:36 -0500 Subject: [PATCH] airo endianness bug: cap_rid.extSoftCap never had been byteswapped, used as host-endian... Signed-off-by: Al Viro Signed-off-by: John W. Linville --- drivers/net/wireless/airo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 9d3f3357b6e..68c5e54230c 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); -- 2.20.1