Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134089
b: refs/heads/master
c: e9aeaba
h: refs/heads/master
i:
  134087: 6770701
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jan 29, 2009
1 parent 3b4d489 commit 9c38f6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4797938c5dfa22af30fd16679192972f878419a1
refs/heads/master: e9aeabaeb9a0bece50100dc74bbd720a68cb8f5c
5 changes: 4 additions & 1 deletion trunk/net/mac80211/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,12 @@ static int ieee80211_ioctl_siwpower(struct net_device *dev,
ps = true;
break;
default: /* Otherwise we ignore */
break;
return -EINVAL;
}

if (wrq->flags & ~(IW_POWER_MODE | IW_POWER_TIMEOUT))
return -EINVAL;

if (wrq->flags & IW_POWER_TIMEOUT)
timeout = wrq->value / 1000;

Expand Down

0 comments on commit 9c38f6d

Please sign in to comment.