Commit c08ad1e3 authored by Pavel Roskin's avatar Pavel Roskin Committed by Jeff Garzik

[PATCH] orinoco: fix setting power management parameters

Power management parameters could not be set by iwconfig due to
incorrect error handling.
Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent ee7ebdf4
...@@ -3512,9 +3512,8 @@ static int orinoco_ioctl_setpower(struct net_device *dev, ...@@ -3512,9 +3512,8 @@ static int orinoco_ioctl_setpower(struct net_device *dev,
break; break;
default: default:
err = -EINVAL; err = -EINVAL;
}
if (err)
goto out; goto out;
}
if (prq->flags & IW_POWER_TIMEOUT) { if (prq->flags & IW_POWER_TIMEOUT) {
priv->pm_on = 1; priv->pm_on = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment