|
@@ -256,6 +256,11 @@ static void csr_set_default_scan_timing(tpAniSirGlobal pMac, tSirScanType scanTy
|
|
}
|
|
}
|
|
pScanRequest->restTime = pMac->roam.configParam.nRestTimeConc;
|
|
pScanRequest->restTime = pMac->roam.configParam.nRestTimeConc;
|
|
|
|
|
|
|
|
+ pScanRequest->min_rest_time =
|
|
|
|
+ pMac->roam.configParam.min_rest_time_conc;
|
|
|
|
+ pScanRequest->idle_time =
|
|
|
|
+ pMac->roam.configParam.idle_time_conc;
|
|
|
|
+
|
|
/* Return so that fields set above will not be overwritten. */
|
|
/* Return so that fields set above will not be overwritten. */
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -278,8 +283,12 @@ static void csr_set_default_scan_timing(tpAniSirGlobal pMac, tSirScanType scanTy
|
|
pMac->roam.configParam.nPassiveMinChnTime;
|
|
pMac->roam.configParam.nPassiveMinChnTime;
|
|
}
|
|
}
|
|
#ifdef WLAN_AP_STA_CONCURRENCY
|
|
#ifdef WLAN_AP_STA_CONCURRENCY
|
|
- /* No rest time if no sessions are connected. */
|
|
|
|
|
|
+
|
|
|
|
+ /* No rest time/Idle time if no sessions are connected. */
|
|
pScanRequest->restTime = 0;
|
|
pScanRequest->restTime = 0;
|
|
|
|
+ pScanRequest->min_rest_time = 0;
|
|
|
|
+ pScanRequest->idle_time = 0;
|
|
|
|
+
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
|
|
|
|
@@ -546,9 +555,14 @@ QDF_STATUS csr_scan_request(tpAniSirGlobal pMac, uint16_t sessionId,
|
|
scan_req->minChnTime, scan_req->maxChnTime);
|
|
scan_req->minChnTime, scan_req->maxChnTime);
|
|
}
|
|
}
|
|
#ifdef WLAN_AP_STA_CONCURRENCY
|
|
#ifdef WLAN_AP_STA_CONCURRENCY
|
|
- /* Need to set restTime only if at least one session is connected */
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Need to set restTime/min_Ret_time/idle_time
|
|
|
|
+ * only if at least one session is connected
|
|
|
|
+ */
|
|
if (scan_req->restTime == 0 && csr_is_any_session_connected(pMac)) {
|
|
if (scan_req->restTime == 0 && csr_is_any_session_connected(pMac)) {
|
|
scan_req->restTime = cfg_prm->nRestTimeConc;
|
|
scan_req->restTime = cfg_prm->nRestTimeConc;
|
|
|
|
+ scan_req->min_rest_time = cfg_prm->min_rest_time_conc;
|
|
|
|
+ scan_req->idle_time = cfg_prm->idle_time_conc;
|
|
if (scan_req->scanType == eSIR_ACTIVE_SCAN) {
|
|
if (scan_req->scanType == eSIR_ACTIVE_SCAN) {
|
|
scan_req->maxChnTime = cfg_prm->nActiveMaxChnTimeConc;
|
|
scan_req->maxChnTime = cfg_prm->nActiveMaxChnTimeConc;
|
|
scan_req->minChnTime = cfg_prm->nActiveMinChnTimeConc;
|
|
scan_req->minChnTime = cfg_prm->nActiveMinChnTimeConc;
|
|
@@ -4984,8 +4998,12 @@ QDF_STATUS csr_send_mb_scan_req(tpAniSirGlobal pMac, uint16_t sessionId,
|
|
pMsg->maxChannelTime = maxChnTime;
|
|
pMsg->maxChannelTime = maxChnTime;
|
|
/* hidden SSID option */
|
|
/* hidden SSID option */
|
|
pMsg->hiddenSsid = pScanReqParam->hiddenSsid;
|
|
pMsg->hiddenSsid = pScanReqParam->hiddenSsid;
|
|
- /* rest time */
|
|
|
|
|
|
+ /* maximum rest time */
|
|
pMsg->restTime = pScanReq->restTime;
|
|
pMsg->restTime = pScanReq->restTime;
|
|
|
|
+ /* Minimum rest time */
|
|
|
|
+ pMsg->min_rest_time = pScanReq->min_rest_time;
|
|
|
|
+ /* Idle time */
|
|
|
|
+ pMsg->idle_time = pScanReq->idle_time;
|
|
pMsg->returnAfterFirstMatch = pScanReqParam->bReturnAfter1stMatch;
|
|
pMsg->returnAfterFirstMatch = pScanReqParam->bReturnAfter1stMatch;
|
|
/* All the scan results caching will be done by Roaming */
|
|
/* All the scan results caching will be done by Roaming */
|
|
/* We do not want LIM to do any caching of scan results, */
|
|
/* We do not want LIM to do any caching of scan results, */
|