mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
ee7ebdf402
commit
c08ad1e304
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue