ipw2200: restart adapter only when abort_scan doesn't work
authorZhu Yi <yi.zhu@intel.com>
Tue, 30 Mar 2010 01:36:16 +0000 (09:36 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 31 Mar 2010 18:46:40 +0000 (14:46 -0400)
commite65054b64ff6b89380a7f546c9eebf862e679646
tree9fa1800b9a2bc589b560f081979d599b52b08eac
parent9f01a84e81d10e38daa504348217895fe414a24b
ipw2200: restart adapter only when abort_scan doesn't work

When a scan watchdog is fired, try to send abort scan command
first before restarting the adapter. This avoids reconnection for
some users when scan hang is detected.

This fixed bug https://bugzilla.kernel.org/show_bug.cgi?id=15419

Reported-by: Maurizio Avogadro <mavoga@gmail.com>
Tested-by: Maurizio Avogadro <mavoga@gmail.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2x00/ipw2200.c