diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-08-13 15:46:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-08-13 15:46:11 +0000 |
commit | 1adfeda71cdcf294a8bef1518414d33ecac25c02 (patch) | |
tree | 62fb8276f932ef590ac9704344e1a3f28ada4209 /target/linux/package/wlcompat | |
parent | b3bc40901ba09f38fdaac640f64abf2bd3b66b75 (diff) | |
download | master-187ad058-1adfeda71cdcf294a8bef1518414d33ecac25c02.tar.gz master-187ad058-1adfeda71cdcf294a8bef1518414d33ecac25c02.tar.bz2 master-187ad058-1adfeda71cdcf294a8bef1518414d33ecac25c02.zip |
some wificonf and wlcompat cleanups/fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1631 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/package/wlcompat')
-rw-r--r-- | target/linux/package/wlcompat/wlcompat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/package/wlcompat/wlcompat.c b/target/linux/package/wlcompat/wlcompat.c index aaccc7bceb..b5f9bff60e 100644 --- a/target/linux/package/wlcompat/wlcompat.c +++ b/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)); } |