From 62ab2795569bad7f099d145a24d4e2870ebda0b7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 28 May 2005 18:13:24 +0000 Subject: [PATCH] don't return an error if a part of SIOCSIWMODE fails (fixes wlcompat for newer wl driver) SVN-Revision: 1092 --- .../target/linux/package/wlcompat/wlcompat.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/openwrt/target/linux/package/wlcompat/wlcompat.c b/openwrt/target/linux/package/wlcompat/wlcompat.c index d010e2bc87..e39fe6889a 100644 --- a/openwrt/target/linux/package/wlcompat/wlcompat.c +++ b/openwrt/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; -- 2.30.2