Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179793
b: refs/heads/master
c: e5de30c
h: refs/heads/master
i:
  179791: 870ce03
v: v3
  • Loading branch information
Benoit Papillault authored and John W. Linville committed Jan 15, 2010
1 parent 4690086 commit 812c25a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f6120335c701ba07d5151206071f4d6ccaa684f
refs/heads/master: e5de30c9bf4a39db9f54c4a373470ce65881ade0
3 changes: 3 additions & 0 deletions trunk/net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,9 @@ static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
struct ieee80211_conf *conf = &local->hw.conf;

if (sdata->vif.type != NL80211_IFTYPE_STATION)
return -EOPNOTSUPP;

if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_PS))
return -EOPNOTSUPP;

Expand Down

0 comments on commit 812c25a

Please sign in to comment.