]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1247d4d0f2b775b8b0ac3663f3ea56860f9c318a
treed69fedb037aa95d112adfae2847be13fbccf1d4d
parentfb76e6ecde5735f26c2a4be68ca0cbca758b6253
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