Felix Fietkau eb3e554b4b mac80211: fix a crash in ieee80211_beacon_get_tim on change_interface
Some drivers (e.g. ath9k) do not always disable beacons when they're
supposed to. When an interface is changed using the change_interface op,
the mode specific sdata part is in an undefined state and trying to
get a beacon at this point can produce weird crashes.

To fix this, add a check for ieee80211_sdata_running before using
anything from the sdata.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-01-25 16:28:56 -05:00
..
2010-10-13 15:45:23 -04:00
2010-12-13 15:23:29 -05:00
2011-01-05 16:07:12 -05:00
2011-01-13 15:46:45 -05:00
2010-12-07 17:08:06 -05:00
2010-10-07 14:41:27 -04:00
2010-07-08 16:35:50 -04:00
2010-07-08 16:35:50 -04:00
2010-10-11 15:04:23 -04:00
2010-07-08 16:35:50 -04:00
2010-12-22 15:44:22 -05:00
2010-01-05 16:21:40 -05:00
2010-09-27 15:57:54 -04:00