]> git.baikalelectronics.ru Git - kernel.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)
commit67a196e4668e6a992bd3c2f2f411105ed91e173c
tree75dc3a30ce3a50ff37c5e4a428fbd17cfe3daa39
parent71ad0e2c3d862f47c5da896bad4d5628d8dc979a
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