]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: abort scheduled scan upon RFKILL
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 18 Jan 2015 19:39:30 +0000 (21:39 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 18 Jan 2015 20:04:37 +0000 (22:04 +0200)
commitbeff6d81e8b4131f14d97ef1f8f3e9c5874fb266
treefa2d79112005d6c755cea0d829e43aa3cbfc2607
parent89d4fbc946930c5f2561118fce1fa6e4e39060a3
iwlwifi: mvm: abort scheduled scan upon RFKILL

When we have an active scheduled scan, and the RFKILL
interrupt kicks in, the stack will cancel the scheduled
scan as part of the down flow. But cancelling scheduled
scan usually implies sending a command to the firwmare
which has been killed as part of the RFKILL interrupt
handling.
Because of that, we returned an error to mac80211 when
it asked to stop the scheduled scan and didn't notify the
end of the scheduled scan. Besides a fat warning, this led
to a situation in which cfg80211 would refuse any new scan
request.

To disentangle this, fake that the scheduled scan has been
stopped without sending the command to the firwmare, return
0 after having properly let cfg80211 know that the scan
has been cancelled.

This is basically the same as:
commit 4c2e7642af3736d709afb37d7f700eb639ce58b9
Author: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Date:   Tue Nov 4 15:54:11 2014 +0200

    iwlwifi: mvm: abort scan upon RFKILL

    This code existed but not for all the different FW APIs
    we support.
    Fix this.

but for the scheduled scan case.

Link: http://permalink.gmane.org/gmane.linux.kernel.wireless.general/133232
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c