From 72ea5c5888d2dfabda5c6b0009a47e9afc00e2fd Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Thu, 17 Sep 2015 20:00:23 -0700 Subject: 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 --- CORE/HDD/src/wlan_hdd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3