1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 22:29:43 +02:00

don't return an error if a part of SIOCSIWMODE fails (fixes wlcompat for newer wl driver)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1092 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2005-05-28 18:13:24 +00:00
parent fefb504d93
commit d7f91d01b0

View File

@ -485,18 +485,11 @@ static int wlcompat_ioctl(struct net_device *dev,
return -EINVAL; return -EINVAL;
} }
if (wl_ioctl(dev, WLC_SET_PASSIVE, &passive, sizeof(passive)) < 0) wl_ioctl(dev, WLC_SET_PASSIVE, &passive, sizeof(passive));
return -EINVAL; wl_ioctl(dev, WLC_SET_MONITOR, &passive, sizeof(passive));
if (wl_ioctl(dev, WLC_SET_MONITOR, &passive, sizeof(passive)) < 0) wl_ioctl(dev, WLC_SET_WET, &wet, sizeof(wet));
return -EINVAL; wl_ioctl(dev, WLC_SET_AP, &ap, sizeof(ap));
if (wl_ioctl(dev, WLC_SET_WET, &wet, sizeof(wet)) < 0) wl_ioctl(dev, WLC_SET_INFRA, &infra, sizeof(infra));
return -EINVAL;
if (ap >= 0)
if (wl_ioctl(dev, WLC_SET_AP, &ap, sizeof(ap)) < 0)
return -EINVAL;
if (infra >= 0)
if (wl_ioctl(dev, WLC_SET_INFRA, &infra, sizeof(infra)) < 0)
return -EINVAL;
break; break;