wlan: Can't scan the hidden external SSID when the 1st SSID is empty

Propagation from qcacld-2.0 to prima

Because of previous issue with supplicant setting n_ssids to 1 when
there is no SSID provided, wlan_hdd_cfg80211.c simply ignores the
case when the first SSID is empty. However, this fails when the
1st SSID is empty but the one after is not.

Change-Id: I8b25cab6335b59db587fb90d04a31682afa48d06
CRs-Fixed: 2148403
This commit is contained in:
Hanumanth Reddy Pothula 2017-10-31 15:43:19 +05:30 committed by followmsi
parent 22a6244a34
commit 82faa84aab

View file

@ -4588,8 +4588,8 @@ int wlan_hdd_cfg80211_scan( struct wiphy *wiphy,
* Becasue of this, driver is assuming that this is not wildcard scan and so
* is not aging out the scan results.
*/
if (request->ssids && '\0' == request->ssids->ssid[0])
{
if ((request->ssids) && (request->n_ssids == 1) &&
('\0' == request->ssids->ssid[0])) {
request->n_ssids = 0;
}