From: Felix Fietkau Date: Mon, 24 Jan 2011 18:28:49 +0000 (+0100) Subject: mac80211: fix a crash in ieee80211_beacon_get_tim on change_interface X-Git-Tag: v2.6.38-rc3~29^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb3e554b4b3a56386ef5214dbe0e3935a350178b;p=pandora-kernel.git 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 Cc: stable@kernel.org Signed-off-by: John W. Linville --- Reading git-diff-tree failed