Browse Source

qcacld-3.0: Fix invalid timestamp in kernel bss entry

Driver report beacon/probe rsp frame in wlan_hdd_inform_bss_frame
to kernel. "boottime_ns" field needs be filled by "scansystimensec"
in nanosecond, so assign "boottime_ns" (NS) from scan entry to
bss_description instead of "scan_entry_time" (MS).

Change-Id: Id22f119f41f8cf60a8aadc9e04c4f18424c88413
CRs-Fixed: 2870827
Liangwei Dong 4 years ago
parent
commit
463cb2e445
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

+ 1 - 1
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -6810,7 +6810,7 @@ wlan_fill_bss_desc_from_scan_entry(struct mac_context *mac_ctx,
 
 	qdf_mem_copy(bss_desc->bssId, scan_entry->bssid.bytes,
 		     QDF_MAC_ADDR_SIZE);
-	bss_desc->scansystimensec = scan_entry->scan_entry_time;
+	bss_desc->scansystimensec = scan_entry->boottime_ns;
 	qdf_mem_copy(bss_desc->timeStamp,
 		scan_entry->tsf_info.data, 8);