]> 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)
commitf317a8918843240004db8d09eecdf5856b558db3
tree75dc3a30ce3a50ff37c5e4a428fbd17cfe3daa39
parent32dffe2c6bf71b02ce145beebf8fa493c5dc6f4c
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