diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-05-28 18:13:24 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-05-28 18:13:24 +0000 |
commit | b201332a774ee118b77c1df93d0647f011026bc2 (patch) | |
tree | cd755f3e3b4f0899c3ca382c740e0bd964f188b4 /target/linux/package/wlcompat | |
parent | abc265ae8f253739562633f5d94ea6e649443a23 (diff) | |
download | master-187ad058-b201332a774ee118b77c1df93d0647f011026bc2.tar.gz master-187ad058-b201332a774ee118b77c1df93d0647f011026bc2.tar.bz2 master-187ad058-b201332a774ee118b77c1df93d0647f011026bc2.zip |
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
Diffstat (limited to 'target/linux/package/wlcompat')
-rw-r--r-- | target/linux/package/wlcompat/wlcompat.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/target/linux/package/wlcompat/wlcompat.c b/target/linux/package/wlcompat/wlcompat.c index d010e2bc87..e39fe6889a 100644 --- a/target/linux/package/wlcompat/wlcompat.c +++ b/target/linux/package/wlcompat/wlcompat.c @@ -485,18 +485,11 @@ static int wlcompat_ioctl(struct net_device *dev, return -EINVAL; } - if (wl_ioctl(dev, WLC_SET_PASSIVE, &passive, sizeof(passive)) < 0) - return -EINVAL; - if (wl_ioctl(dev, WLC_SET_MONITOR, &passive, sizeof(passive)) < 0) - return -EINVAL; - if (wl_ioctl(dev, WLC_SET_WET, &wet, sizeof(wet)) < 0) - 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; + wl_ioctl(dev, WLC_SET_PASSIVE, &passive, sizeof(passive)); + wl_ioctl(dev, WLC_SET_MONITOR, &passive, sizeof(passive)); + wl_ioctl(dev, WLC_SET_WET, &wet, sizeof(wet)); + wl_ioctl(dev, WLC_SET_AP, &ap, sizeof(ap)); + wl_ioctl(dev, WLC_SET_INFRA, &infra, sizeof(infra)); break; |