iwlwifi: Send broadcast probe request only when asked to
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 5 Feb 2010 19:33:48 +0000 (11:33 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Feb 2010 21:50:58 +0000 (16:50 -0500)
commit21b2d8bd2f0d4e0f21ade147fd193c8b9c1fd2b9
treed69fedb037aa95d112adfae2847be13fbccf1d4d
parented56a3f15a0561e900957ecca0dee42b9b453a9e
iwlwifi: Send broadcast probe request only when asked to

When running directed active scans we currently end up sending both the SSID
probe requests and an additional broadcast one.
This is due to the fact that we always leave the probe request template SSID IE
length to 0. Instead we should set it to the first SSID to scan, and fill the
direct_scan array with the remaining SSIDs to scan for. This way we only send
what we've been asked to: a broadcast probe request when no directed scan is
requested, and directed probe requests otherwise.

Signed-off-by: Samuel Ortiz <sameo@linux.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-agn.c
drivers/net/wireless/iwlwifi/iwl-scan.c