summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/SME/src/csr/csrApiScan.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/CORE/SME/src/csr/csrApiScan.c b/CORE/SME/src/csr/csrApiScan.c
index 81ca2ecd514f..45e7ccbf25ff 100644
--- a/CORE/SME/src/csr/csrApiScan.c
+++ b/CORE/SME/src/csr/csrApiScan.c
@@ -729,13 +729,16 @@ eHalStatus csrScanRequest(tpAniSirGlobal pMac, tANI_U16 sessionId,
*/
if(pScanRequest->p2pSearch)
{
- //If the scan request is for specific SSId the length of SSID will be
- //greater than 7 as SSID for p2p search contains "DIRECT-")
- if(pScanRequest->SSIDs.SSIDList->SSID.length > DIRECT_SSID_LEN)
+ if(pScanRequest->SSIDs.numOfSSIDs)
{
- smsLog( pMac, LOG1, FL(" Increase the Dwell time to 100ms."));
- pScanRequest->maxChnTime = MAX_CHN_TIME_TO_FIND_GO;
- pScanRequest->minChnTime = MIN_CHN_TIME_TO_FIND_GO;
+ //If the scan request is for specific SSId the length of SSID will be
+ //greater than 7 as SSID for p2p search contains "DIRECT-")
+ if(pScanRequest->SSIDs.SSIDList->SSID.length > DIRECT_SSID_LEN)
+ {
+ smsLog( pMac, LOG1, FL(" Increase the Dwell time to 100ms."));
+ pScanRequest->maxChnTime = MAX_CHN_TIME_TO_FIND_GO;
+ pScanRequest->minChnTime = MIN_CHN_TIME_TO_FIND_GO;
+ }
}
}