From: Eliad Peller Date: Sun, 22 Jun 2014 15:15:59 +0000 (+0300) Subject: iwlwifi: mvm: wait for handlers when stopping scans X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~7^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4660dfbbe04cc5777cd7a68916e2c8c5b3b07674;p=pandora-kernel.git 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 Reviewed-by: ArikX Nemtsov Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed