summaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2012-06-18 15:13:27 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-06-18 15:13:27 -0400
commit8cfe523a1294da65ef95b6ed7b0f7db5629f8d88 (patch)
treed6118f2e2a55f5906a0c9b42bf6d33c5551cd583 /net/mac80211/cfg.c
parent31fdc5553b42abd7e29bb7b89f6ba07514eb4763 (diff)
parentbcb7ad7bcbef030e6ba71ede1f9866368aca7c99 (diff)
downloadlinux-8cfe523a1294da65ef95b6ed7b0f7db5629f8d88.tar.gz
linux-8cfe523a1294da65ef95b6ed7b0f7db5629f8d88.tar.bz2
linux-8cfe523a1294da65ef95b6ed7b0f7db5629f8d88.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index e9cecca5c44d..7d5108a867ad 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -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)