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
2021-10-10 23:46:48 +02:00
committed by Francescodario Cuzzocrea
parent 4e7f1f0846
commit 96b4148a75
@@ -10878,7 +10878,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;
}