From: Sujith Date: Wed, 23 Sep 2009 08:19:12 +0000 (+0530) Subject: ath9k: Fix RFKILL bugs X-Git-Tag: v2.6.32-rc1~27^2~11^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e31f7b96f0252e8da06df1bc7fd0f6dbc8cbec42;p=pandora-kernel.git ath9k: Fix RFKILL bugs This patch fixes 2 issues in RFKILL: * Calling wiphy_rfkill_stop_polling() in ath9k_stop would mean that the driver cannot report HW status when the radio is re-enabled. Move this to ath_detach(). * Calling ath_radio_{enable/disable} without checking the current state results in ath_radio_enable() being called repeatedly for every invocation of rfkill_poll(). This is not needed in any case since wiphy_rfkill_set_hw_state() would call ->stop() if the radio has been disabled. Signed-off-by: Sujith Signed-off-by: Vasanthakumar Thiagarajan Signed-off-by: John W. Linville --- Reading git-diff-tree failed