iwlwifi: clear scanning bits upon failure
authorMohamed Abbas <mohamed.abbas@intel.com>
Fri, 24 Oct 2008 06:48:54 +0000 (23:48 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 31 Oct 2008 23:02:26 +0000 (19:02 -0400)
commit951891c7ef844919d30aac7b1fc7396fd8be23ff
tree3e8c8ba5808265c682104038f0b895451729dc7e
parent60d32215a94ebba2517b8d92612200ab610943fd
iwlwifi: clear scanning bits upon failure

In iwl_bg_request_scan function, if we could not send a
scan command it will go to done.
In done it does the right thing to call mac80211 with
scan complete, but the problem is STATUS_SCAN_HW is still
set causing any future scan to fail. Fix by clearing the scanning status
bits if scan fails.

Signed-off-by: Mohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-scan.c