X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/1bd3d118c77e7c3336f3042c56e4932717ebc804..a7c40da22bced34d3adaa31cc54ae0fc8f462759:/openwrt/target/linux/package/wlcompat/wlcompat.c 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)); }