summaryrefslogtreecommitdiff
path: root/openwrt/target/linux/package/wlcompat
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-08-13 15:46:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-08-13 15:46:11 +0000
commita2300375e426ae3d82ad9587bd17467f52c1294e (patch)
tree38082d5398c94b2302ad12cdc274c5aa70e67d84 /openwrt/target/linux/package/wlcompat
parent200f0b3c15898121322d871f6ebb8d666105b0a4 (diff)
downloadmtk-20170518-a2300375e426ae3d82ad9587bd17467f52c1294e.zip
mtk-20170518-a2300375e426ae3d82ad9587bd17467f52c1294e.tar.gz
mtk-20170518-a2300375e426ae3d82ad9587bd17467f52c1294e.tar.bz2
some wificonf and wlcompat cleanups/fixes
SVN-Revision: 1631
Diffstat (limited to 'openwrt/target/linux/package/wlcompat')
-rw-r--r--openwrt/target/linux/package/wlcompat/wlcompat.c8
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 aaccc7b..b5f9bff 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, &reg, sizeof(reg));
+ reg.val = bss_force << 16 | bss_force;
+ wl_ioctl(dev, WLC_W_REG, &reg, sizeof(reg));
- reg.val &= 0x0000ffff;
- reg.val |= bss_force << 16;
+ reg.byteoff = 0x180;
+ wl_ioctl(dev, WLC_R_REG, &reg, sizeof(reg));
+ reg.val = bss_force << 16;
wl_ioctl(dev, WLC_W_REG, &reg, sizeof(reg));
}