iwlwifi: rewrite scan completion
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 13 Sep 2010 12:46:38 +0000 (14:46 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 14 Sep 2010 20:08:04 +0000 (16:08 -0400)
commit02d8c14b590f583fd6e8c16fe779f845845effd9
tree411501fe288e0958dee12d21ab8b24163fee89c9
parente693a802f06f538b711333a32a83e2732dc4773d
iwlwifi: rewrite scan completion

Assure (partially) we call ieee80211_scan_completed() only once when
scan was requested from mac80211.

Code path that first clear STATUS_SCANNING bit is responsible to call
ieee80211_scan_completed(). Before the call, we check if mac80211
really request the scan.

Still persist some cases when we behave wrong, that will be addressed
in the next patches.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Wey-Yi W Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-scan.c