]> git.baikalelectronics.ru Git - kernel.git/commit
iwlagn: fix hw-rfkill while the interface is down
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 19 Jan 2009 12:10:07 +0000 (13:10 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:00:50 +0000 (16:00 -0500)
commit4d4d378ad54e418eb3b48164c862769ae562d7b3
tree8ab5376e3f5750b053465bb18a8417608e2e31bc
parent09054736e52af132daf24fcbafac9b68afdf47ef
iwlagn: fix hw-rfkill while the interface is down

Currently iwlagn 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 iwl_pci_probe instead of iwl_up
and enable interrups while the interface is down in order to get
notified about killswitch state changes. The firmware loading is still
done in iwl_up.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c