1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03: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:
nbd
2005-08-13 15:46:11 +00:00
parent b3742ec5bc
commit 56d6d3bbec
2 changed files with 28 additions and 24 deletions

View File

@@ -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));
}