mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
some wificonf and wlcompat cleanups/fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1631 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user