Browse Source

qcacld-3.0: Fix for PNO scan for 802.11A configured AP

qcacld-2.0 to qcacld-3.0 propagation

If Probe Responce received in PNO indication does not
contain DSParam IE or HT Info IE then add dummy channel to the
received BSS info so that Scan result received as a part of PNO
is updated to the supplicant.

Change-Id: I25ac973cc90fc9f5258ff8f012c90dd9e9394eb0
CRs-Fixed: 629288
Mahesh A Saptasagar 8 năm trước cách đây
mục cha
commit
a3cd10b925
1 tập tin đã thay đổi với 14 bổ sung3 xóa
  1. 14 3
      core/sme/src/csr/csr_api_scan.c

+ 14 - 3
core/sme/src/csr/csr_api_scan.c

@@ -7005,9 +7005,20 @@ QDF_STATUS csr_scan_save_preferred_network_found(tpAniSirGlobal pMac,
 		pBssDescr->channelId = parsed_frm->channelNumber;
 	else if (parsed_frm->HTInfo.present)
 		pBssDescr->channelId = parsed_frm->HTInfo.primaryChannel;
-	else
-		pBssDescr->channelId = parsed_frm->channelNumber;
-
+	else {
+		/*
+		 * If Probe Responce received in PNO indication does not
+		 * contain DSParam IE or HT Info IE then add dummy channel
+		 * to the received BSS info so that Scan result received as
+		 * a part of PNO is updated to the supplicant. Specially
+		 * applicable in case of AP configured in 11A only mode.
+		 */
+		if ((pMac->roam.configParam.bandCapability == eCSR_BAND_ALL) ||
+			(pMac->roam.configParam.bandCapability == eCSR_BAND_24))
+			pBssDescr->channelId = 1;
+		 else if (pMac->roam.configParam.bandCapability == eCSR_BAND_5G)
+			pBssDescr->channelId = 36;
+	}
 	if ((pBssDescr->channelId > 0) && (pBssDescr->channelId < 15)) {
 		int i;
 		/* 11b or 11g packet */