ath5k: disable beacon interrupt when interface is down
authorBob Copeland <me@bobcopeland.com>
Wed, 3 Jun 2009 03:03:06 +0000 (23:03 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:06:15 +0000 (14:06 -0400)
commit72828b1b3cabecfce4321877aa526a2bd21acf0c
tree2ac007b084ddf9e19ebe97ade778ac9148dac7a0
parent894df1cbc376310163d41c50c891db41296056bf
ath5k: disable beacon interrupt when interface is down

When we remove the active interface, there's no need to continue
sending beacons; doing so would cause a null pointer deref in
ieee80211_beacon_get().  Disable the interrupt in remove_interface
and add a WARN_ON(!vif) in case there are other instances lurking.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c