Skip to content

Commit

Permalink
[PATCH] orinoco: fix setting power management parameters
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Roskin authored and Jeff Garzik committed Dec 1, 2005
1 parent ee7ebdf commit c08ad1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c08ad1e

Please sign in to comment.