X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=net%2Fmac80211%2Fcfg.c;h=7d5108a867ad9ec5341fc5122a2b65cd792846c3;hb=e6db06a53b1dcf4e9da4aba143e2eb4d63418abb;hp=e9cecca5c44d1a4b9134de59c6ee9afb7418e0e5;hpb=8874e812feb4926f4a51a82c4fca75c7daa05fc5;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)