1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-03 00:25:03 +02:00
openwrt-xburst/package/mac80211/patches/530-mac80211_fix_beacon_race.patch
nbd 6850d22cf4 mac80211: backport 2011-01-24 from trunk
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25198 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-28 13:31:36 +00:00

13 lines
254 B
Diff

--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -2241,6 +2241,9 @@ struct sk_buff *ieee80211_beacon_get_tim
sdata = vif_to_sdata(vif);
+ if (!ieee80211_sdata_running(sdata))
+ goto out;
+
if (tim_offset)
*tim_offset = 0;
if (tim_length)