]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: disable the device as soon as RFKILL fires
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 19 Dec 2013 20:20:58 +0000 (22:20 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 31 Dec 2013 17:03:46 +0000 (19:03 +0200)
commit5c689c44820ecdf6bbfa3af7644789ecd96dab74
treeb423df04788ea117891e0d85d780c7e7486ec3b4
parentb39bb13df81762eab6b95a48c3a614dd1a6e902b
iwlwifi: mvm: disable the device as soon as RFKILL fires

The firmware needs to be stopped quickly (100ms) after the
RFKILL interrupt fired. Failing to do so would allow the
firmware to access the radio registers which would lead to
a hardware error.

Before this change, we would kill the firmware only when
mac80211 stops the device which can take a fair amount of
time. Take a shortcut by stopping the device right away
in the interrupt.

This is not relevant if the current firmware is INIT
firmware since that firmware can run while in RFKILL.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/ops.c
drivers/net/wireless/iwlwifi/mvm/scan.c