qcacld-3.0: Add correct api call to get proper boot time

Propagation from qcacld-2.0 to qcacld-3.0.

Currently to get clock boottime, qdf_get_monotonic_boottime_ns
api is getting used which does not include the suspend time.

To include the system suspend time also in clock boottime, use
qdf_get_bootbased_boottime_ns api which uses ktime_get_boot_ns
kernel api.

Change-Id: Ibcc628c315201fa3ced7e1ad96753772d91707b2
CRs-Fixed: 2067770
This commit is contained in:
Ashish Kumar Dhanotiya 2017-06-29 14:09:16 +05:30 • committed by snandini
commit 09d22cf288

View file

@ -115,7 +115,7 @@ lim_collect_bss_description(tpAniSirGlobal pMac,
(uint8_t *) pHdr->bssId, sizeof(tSirMacAddr));
/* Copy Timestamp, Beacon Interval and Capability Info */
pBssDescr->scansystimensec = qdf_get_monotonic_boottime_ns();
pBssDescr->scansystimensec = qdf_get_bootbased_boottime_ns();
pBssDescr->timeStamp[0] = pBPR->timeStamp[0];
pBssDescr->timeStamp[1] = pBPR->timeStamp[1];