don't return an error if a part of SIOCSIWMODE fails (fixes wlcompat for newer wl driver)
SVN-Revision: 1092
This commit is contained in:
parent
3909344b3a
commit
62ab279556
1 changed files with 5 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue