Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311378
b: refs/heads/master
c: 554a43d
h: refs/heads/master
v: v3
  • Loading branch information
Eliad Peller authored and Johannes Berg committed Jun 13, 2012
1 parent 75d8448 commit e1e7819
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: fe20b39ec32e975f1054c0b7866c873a954adf05
refs/heads/master: 554a43d5e77e8256aa9685ffd19ad555e6f77979
3 changes: 3 additions & 0 deletions trunk/net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,9 @@ static int ieee80211_set_bitrate_mask(struct wiphy *wiphy,
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
int i, ret;

if (!ieee80211_sdata_running(sdata))
return -ENETDOWN;

if (local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL) {
ret = drv_set_bitrate_mask(local, sdata, mask);
if (ret)
Expand Down

0 comments on commit e1e7819

Please sign in to comment.