X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fmac80211%2Ftx.c;h=ffc67491c38f4b90655baa5c92b2a60ca10ebb4b;hp=e46c801320e15991faafeb51c8dc04464fdab8d0;hb=3e11210d46a4f252f41db6e442b46026aeddbb59;hpb=3bf63e59e577cbecd41334c866f501c4cc5d54c5;ds=sidebyside diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index e46c801320e1..ffc67491c38f 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -2230,6 +2230,9 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, sdata = vif_to_sdata(vif); + if (!ieee80211_sdata_running(sdata)) + goto out; + if (tim_offset) *tim_offset = 0; if (tim_length)