X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fmac80211%2Fcfg.c;h=7d5108a867ad9ec5341fc5122a2b65cd792846c3;hb=ccce27c0fe9dd61bc35ba2f52a2de485008c53ed;hp=e9cecca5c44d1a4b9134de59c6ee9afb7418e0e5;hpb=60d2c25251cac20d8c142a03e230237528b68430;p=~andy%2Flinux diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index e9cecca5c44..7d5108a867a 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)