iwl3945: streamline iwl3945_rfkill_poll()
authorBen Cahill <ben.m.cahill@intel.com>
Fri, 9 Oct 2009 20:20:26 +0000 (13:20 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Oct 2009 20:47:59 +0000 (16:47 -0400)
commit743cdf1b65656faf1e6f1f74278c52b89a0b7360
treed06ceb91f10f74994fbd0aaa5ebad0b4fb028c31
parent1a34c043802a213e719420ece395cf25c85cc7c5
iwl3945: streamline iwl3945_rfkill_poll()

iwl3945_rfkill_poll() has been silently calling wiphy_rfkill_set_hw_state()
every 2 seconds, regardless of whether hardware RF KILL switch changed state.

Call wiphy_rfkill_set_hw_state() only when RFKILL switch changes.
Add IWL_DEBUG_RF_KILL log message and documentation.

Signed-off-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl3945-base.c