From: Johannes Berg Date: Thu, 22 Sep 2011 22:15:00 +0000 (-0700) Subject: iwlagn: fix scan complete processing X-Git-Tag: v3.2-rc1~129^2~183^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84b1bec6d716fc8c289e2530cab109a6e097455b;p=pandora-kernel.git iwlagn: fix scan complete processing When we cancel a scan, the completion runs only from the workqueue. This can cause the remain-on-channel scan to fail when another one was just canceled, because we're still aborting it. To fix this, run the completion inline with the lock still held before returning from iwl_scan_cancel_timeout(). Also, to avoid the scan complete work from completing a new scan prematurely, add a new STATUS_SCAN_COMPLETE bit. Reported-by: Reinette Chatre Signed-off-by: Johannes Berg Tested-by: Reinette Chatre Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- Reading git-diff-tree failed