Skip to content

Commit

Permalink
airo endianness bug: cap_rid.extSoftCap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and David S. Miller committed Jan 28, 2008
1 parent 0300b33 commit 1561785
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1561785

Please sign in to comment.