iwlwifi: fix unloading driver while scanning
commit6bdeaf6fc2cd583fdfc9e2d857aba5ffc7280aa9
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Wed, 30 Sep 2009 20:01:01 +0000 (30 13:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:33:11 +0000 (5 09:33 -0700)
treed51bfc9d1f6cb2d5ac9ac05bcc1d4a8661add3bc
parentb23b04f4aff630b45fd0f87bd233197822500e5a
iwlwifi: fix unloading driver while scanning

This is commit 5bddf54962bf68002816df710348ba197d6391bb in linux-2.6.

If NetworkManager is busy scanning when user
tries to unload the module, the driver can not be unloaded
because HW still scanning.

Make sure driver sends abort scan host command to uCode if it
is in the middle of scanning during driver unload.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-scan.c