summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Girigowda <sgirigow@qca.qualcomm.com>2015-09-17 20:00:23 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-09-18 02:29:22 -0700
commit72ea5c5888d2dfabda5c6b0009a47e9afc00e2fd (patch)
treea74f58dbf236f6c78c6aa58183c272fd6594be90
parent85406fade6c81a4da72d84e8bd59caf57aa2172e (diff)
qcacld-2.0: extscan: Fix to return correct timestamp in get_cached_results
The issue with adf_get_boottime() is this API does not account the time spent in suspend which is why the timestamps are incorrect. Fix this by using cnss_get_monotonic_boottime() which includes time spent in suspend. Change-Id: I468660a519088a17148ef4fe500e215081c5e2c8 CRs-Fixed: 910123
-rwxr-xr-xCORE/HDD/src/wlan_hdd_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 69a639f57e86..10fe33865ec3 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -12426,7 +12426,7 @@ int hdd_wlan_startup(struct device *dev, v_VOID_t *hif_sc)
mutex_init(&pHddCtx->sap_lock);
pHddCtx->isLoadInProgress = FALSE;
- pHddCtx->wifi_turn_on_time_since_boot = adf_get_boottime();
+ pHddCtx->wifi_turn_on_time_since_boot = vos_get_monotonic_boottime();
#if defined(CONFIG_HDD_INIT_WITH_RTNL_LOCK)
if (rtnl_lock_enable == TRUE) {