diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2009-01-15 03:38:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:00:28 -0500 |
commit | 2663516d8fb896430bf42dce41b3e2f141d63bd5 (patch) | |
tree | d53989bd9ca5b2b722f5a804420c7ec0175b959b /drivers/net/wireless/iwlwifi/iwl-dev.h | |
parent | c95741deef31d14c3a3d58397f9a3d2126d452e5 (diff) |
iwl3945: report killswitch changes even if the interface is down
Currently iwl3945 is not able to report hw-killswitch events while the
interface is down. This has implications on user space tools (like
NetworkManager) relying on rfkill notifications to bring the interface
up once the wireless gets enabled through a hw killswitch.
Thus, enable the device already in iwl3945_pci_probe instead of iwl3945_up
and poll the CSR_GP_CNTRL register to update the killswitch state every
two seconds. The polling is only needed on 3945 hardware as this adapter
does not use interrupts to signal rfkill changes to the driver (in case no
firmware is loaded). The firmware loading is still done in iwl3945_up.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index fd34ba81a0df..4d437cf50c8e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -1041,6 +1041,7 @@ struct iwl_priv { | |||
1041 | 1041 | ||
1042 | /*For 3945 only*/ | 1042 | /*For 3945 only*/ |
1043 | struct delayed_work thermal_periodic; | 1043 | struct delayed_work thermal_periodic; |
1044 | struct delayed_work rfkill_poll; | ||
1044 | 1045 | ||
1045 | /* TX Power */ | 1046 | /* TX Power */ |
1046 | s8 tx_power_user_lmt; | 1047 | s8 tx_power_user_lmt; |