diff options
author | 2009-09-23 13:49:12 +0530 | |
---|---|---|
committer | 2009-09-23 11:35:54 -0400 | |
commit | e31f7b96f0252e8da06df1bc7fd0f6dbc8cbec42 (patch) | |
tree | a9b9220dc1621e7153e68c0e8f529846f700ceae /kernel | |
parent | drivers/net/wireless: Use usb_endpoint_dir_out (diff) | |
download | linux-dev-e31f7b96f0252e8da06df1bc7fd0f6dbc8cbec42.tar.xz linux-dev-e31f7b96f0252e8da06df1bc7fd0f6dbc8cbec42.zip |
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 <Sujith.Manoharan@atheros.com>
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions