]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: call ieee80211_scan_completed when needed
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 15 Sep 2013 11:39:02 +0000 (14:39 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 2 Oct 2013 09:25:50 +0000 (11:25 +0200)
commita0bedf01096d900784e93d2e5e1b4d94ade51fd8
treeaf278ebefb393cd72c48e833f62323082c73b956
parenta88c43ce0f0b9ea3f2957a5cf2becce7aac103cc
iwlwifi: mvm: call ieee80211_scan_completed when needed

When RFKill cuts short a scan, mac80211 cancels the scan.
This is done by sending a host command to the firmware, but
this command was dropped because of RFKill. Flag this
command as "SEND_IN_RFKILL" to make sure it is sent to the
firmware. The firmware will send SCAN_COMPLETE_NOTIFICATION
which will trigger a call to ieee80211_scan_completed.

If the scan cannot be aborted, it is because the firmware
already finished the scan but we hadn't notified mac80211
at the time mac80211 decided to cancel the scan. By the time
we see the scan could not be aborted, mac80211 has been
notified already.

This patch fixes situations in which we didn't notify
mac80211 upon completion of the scan that was cut short
by RFkill.

Cc: stable@vger.kernel.org [3.10+]
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c