summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahesh A Saptasagar <msapta@codeaurora.org>2016-07-21 18:21:58 +0530
committerqcabuildsw <qcabuildsw@localhost>2016-10-17 21:58:19 -0700
commita3cd10b925e4c7e1c1aaf04c0d23e00a2992c57e (patch)
tree14aeb879201f87045689f833f420741dd9bc3929
parentccfd918e7b48a952ec336b22fab2f2c5a3a4e4d5 (diff)
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
-rw-r--r--core/sme/src/csr/csr_api_scan.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c
index a0f7a7efdc96..7ec0a0833f0e 100644
--- a/core/sme/src/csr/csr_api_scan.c
+++ b/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 */