iwlwifi: use scan while idle
authorJohannes Berg <johannes.berg@intel.com>
Thu, 15 Mar 2012 20:26:51 +0000 (13:26 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 20:37:21 +0000 (16:37 -0400)
commite56103823716039418d099221dd2059fa7547fbf
treeae2151ff0c7ca3ac43e3947ae9dc7d20651d9fcb
parent6a22f10c45f81cb66770b9432ca971375ccc2000
iwlwifi: use scan while idle

As idle is just a deep powersave mode for
the device, it will easily scan while idle
since that turns off powersave.

This reduces the number of commands sent
to the device when scanning.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-mac80211.c
drivers/net/wireless/iwlwifi/iwl-scan.c