projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0300b33
)
airo endianness bug: cap_rid.extSoftCap
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 20 Dec 2007 22:21:36 +0000
(17:21 -0500)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 23:08:51 +0000
(15:08 -0800)
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>
drivers/net/wireless/airo.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/airo.c
b/drivers/net/wireless/airo.c
index 9d3f3357b6e1a730b23cad45da02330fdba845e4..68c5e54230c1ee3dcfae176f0a4d292c0efc2695 100644
(file)
--- 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);