dect
/
linux-2.6
Archived
13
0
Fork 0

[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:
Pavel Roskin 2005-11-29 02:59:27 -05:00 committed by Jeff Garzik
parent ee7ebdf402
commit c08ad1e304
1 changed files with 1 additions and 2 deletions

View File

@ -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;