aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/airo.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-12-20 23:04:35 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:08:52 -0500
commit2ab1f519cbec0902cb86f1e29b10f2f00dd020c0 (patch)
tree2e907d3feade98ee1ec5dbd0061f12b8052e709c /drivers/net/wireless/airo.c
parent15617858b3cf249a3577df8da970f779bbc8a737 (diff)
airo: fix writerids() endianness
in writerids() we do _not_ byteswap, so we want to access ->opmode as little-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/wireless/airo.c')
-rw-r--r--drivers/net/wireless/airo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 68c5e54230c1..87b6adbc34da 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -7865,9 +7865,9 @@ static int writerids(struct net_device *dev, aironet_ioctl *comp) {
7865 ConfigRid *cfg = (ConfigRid *)iobuf; 7865 ConfigRid *cfg = (ConfigRid *)iobuf;
7866 7866
7867 if (test_bit(FLAG_MIC_CAPABLE, &ai->flags)) 7867 if (test_bit(FLAG_MIC_CAPABLE, &ai->flags))
7868 cfg->opmode |= MODE_MIC; 7868 cfg->opmode |= cpu_to_le16(MODE_MIC);
7869 7869
7870 if ((cfg->opmode & 0xFF) == MODE_STA_IBSS) 7870 if ((le16_to_cpu(cfg->opmode) & 0xFF) == MODE_STA_IBSS)
7871 set_bit (FLAG_ADHOC, &ai->flags); 7871 set_bit (FLAG_ADHOC, &ai->flags);
7872 else 7872 else
7873 clear_bit (FLAG_ADHOC, &ai->flags); 7873 clear_bit (FLAG_ADHOC, &ai->flags);