iwlwifi: mvm: include wildcard SSID in scans
authorDavid Spinadel <david.spinadel@intel.com>
Tue, 28 Apr 2015 15:06:45 +0000 (18:06 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 3 May 2015 19:18:33 +0000 (22:18 +0300)
Fix a copy paste bug that didn't copy wildcard SSIDs to
scan requests. This bug causes scan with only wildcard
SSID to be passive, and scans with more than one SSID to
send only the direct probes.

Fixes: 2a28ac14c518 ("iwlwifi: mvm: add common scan params to thw iwl_mvm_scan_params struct")
Signed-off-by: David Spinadel <david.spinadel@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c

index 3c33d61..e50fd3f 100644 (file)
@@ -452,8 +452,6 @@ static void iwl_scan_build_ssids(struct iwl_mvm_scan_params *params,
                                       params->ssids[j].ssid_len,
                                       ssids);
                if (index < 0) {
-                       if (!params->ssids[j].ssid_len)
-                               continue;
                        ssids[i].id = WLAN_EID_SSID;
                        ssids[i].len = params->ssids[j].ssid_len;
                        memcpy(ssids[i].ssid, params->ssids[j].ssid,