36c09169bccd484247656750c5ab8849d1d5a38c
[openwrt-10.03/.git] / package / mac80211 / patches / 530-mac80211_fix_beacon_race.patch
1 --- a/net/mac80211/tx.c
2 +++ b/net/mac80211/tx.c
3 @@ -2241,6 +2241,9 @@ struct sk_buff *ieee80211_beacon_get_tim
4  
5         sdata = vif_to_sdata(vif);
6  
7 +       if (!ieee80211_sdata_running(sdata))
8 +               goto out;
9 +
10         if (tim_offset)
11                 *tim_offset = 0;
12         if (tim_length)