]> git.karo-electronics.de Git - linux-beck.git/commit
iwlwifi: mvm: wait for handlers when stopping scans
authorEliad Peller <eliadx.peller@intel.com>
Sun, 22 Jun 2014 15:15:59 +0000 (18:15 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 22 Jul 2014 16:21:08 +0000 (19:21 +0300)
commit4660dfbbe04cc5777cd7a68916e2c8c5b3b07674
tree75dc3a30ce3a50ff37c5e4a428fbd17cfe3daa39
parent45bbb2ca1e27c79bd3cbdcec040e7daceceeabbb
iwlwifi: mvm: wait for handlers when stopping scans

The recent unified scan api change introduced issues
when stopping ongoing scans, since both regular and
sched scan now use same stopped notification.

When issuing a new scan right after a running one,
we get the "old" notification and handle it wrongly
as notification for the current scan.

Fix it by introducing a new function that make sure
we consume the pending notifications before issuing
a new scan.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Reviewed-by: ArikX Nemtsov <arik@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c