Browse Source

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
Arif Hussain 7 years ago
parent
commit
6fcc790e98
1 changed files with 1 additions and 1 deletions
  1. 1 1
      umac/scan/dispatcher/src/wlan_scan_utils_api.c

+ 1 - 1
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,