forked from luck/tmp_suning_uos_patched
[PATCH] orinoco: fix setting power management parameters
Power management parameters could not be set by iwconfig due to incorrect error handling. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
parent
ee7ebdf402
commit
c08ad1e304
@ -3512,9 +3512,8 @@ static int orinoco_ioctl_setpower(struct net_device *dev,
|
||||
break;
|
||||
default:
|
||||
err = -EINVAL;
|
||||
}
|
||||
if (err)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (prq->flags & IW_POWER_TIMEOUT) {
|
||||
priv->pm_on = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user