ath9k: fix double calls to ath_radio_enable
commit0d54cd89c5cb669505946ab6789ef68b3a7d7f75
authorFelix Fietkau <nbd@openwrt.org>
Tue, 6 Apr 2010 19:05:01 +0000 (6 12:05 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:47:51 +0000 (26 07:47 -0700)
treef992e9fe0a76e748d78bd7d56c15bdef4f6f7110
parent328f7088efe2d95b00fe277c51896062aa82942e
ath9k: fix double calls to ath_radio_enable

commit 1144601118507f8b3b676a9a392584d216d3f2cc upstream.

With the enable_radio being uninitialized, ath_radio_enable() might be
called twice, which can leave some hardware in an undefined state.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/main.c