From: Stanislaw Gruszka Date: Mon, 13 Sep 2010 12:46:41 +0000 (+0200) Subject: iwlwifi: do not force complete scan too early X-Git-Tag: v2.6.37-rc1~147^2~373^2^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7e16b90b477a07d17af37dceb2e8af1ddbd9712;p=pandora-kernel.git iwlwifi: do not force complete scan too early Currently we force scan complete at the end of iwl_scan_cancel_timeout function. This cause race condition when we can get a new scan request from mac80211 and complete it by iwl_bg_complete from older scan. Change code to force scan complete only when really needed: device goes down, interface is removed or scan timeout occurs. Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville --- Reading git-diff-tree failed