From 6fcc790e98a490eb5a59ae149222196cd5043045 Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Thu, 22 Mar 2018 12:33:12 -0700 Subject: [PATCH] qcacmn: Add correct api call to get proper boot time Propagation from qcacld-2.0 to qcacmn Missing changes from Ibcc628c315201fa3ced7e1ad96753772d91707b2 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: I4a9a783ce0cc164404d89c23d57b02746154aa46 CRs-Fixed: 2203527 --- umac/scan/dispatcher/src/wlan_scan_utils_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/umac/scan/dispatcher/src/wlan_scan_utils_api.c index 5eff9fab0be2..716f04b51947 100644 --- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c +++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c @@ -846,7 +846,7 @@ util_scan_unpack_beacon_frame(uint8_t *frame, hdr = (struct wlan_frame_hdr *)frame; /* update timestamp in nanoseconds needed by kernel layers */ - scan_entry->boottime_ns = qdf_get_monotonic_boottime_ns(); + scan_entry->boottime_ns = qdf_get_bootbased_boottime_ns(); scan_entry->frm_subtype = frm_subtype; qdf_mem_copy(scan_entry->bssid.bytes,