diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-13 15:46:11 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-13 15:46:11 +0000 |
commit | 86807fb071ee720e050ff3edf8a65f642d6f3a10 (patch) | |
tree | 38082d5398c94b2302ad12cdc274c5aa70e67d84 /openwrt/target/linux | |
parent | 18efc84b1b0ac3b57aa46b7faa10dbaacfc33ec0 (diff) |
some wificonf and wlcompat cleanups/fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1631 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/linux')
-rw-r--r-- | openwrt/target/linux/package/wlcompat/wlcompat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openwrt/target/linux/package/wlcompat/wlcompat.c b/openwrt/target/linux/package/wlcompat/wlcompat.c index aaccc7bce..b5f9bff60 100644 --- a/openwrt/target/linux/package/wlcompat/wlcompat.c +++ b/openwrt/target/linux/package/wlcompat/wlcompat.c @@ -360,10 +360,12 @@ static int wlcompat_ioctl(struct net_device *dev, reg.size = 4; reg.byteoff = 0x184; - wl_ioctl(dev, WLC_R_REG, ®, sizeof(reg)); + reg.val = bss_force << 16 | bss_force; + wl_ioctl(dev, WLC_W_REG, ®, sizeof(reg)); - reg.val &= 0x0000ffff; - reg.val |= bss_force << 16; + reg.byteoff = 0x180; + wl_ioctl(dev, WLC_R_REG, ®, sizeof(reg)); + reg.val = bss_force << 16; wl_ioctl(dev, WLC_W_REG, ®, sizeof(reg)); } |