Explorar o código

qcacld-3.0: Print a timestamp for each roam scan

Write timestamp for each roam scan to roam stats
buffer.

Change-Id: I2710d40bd013e258a4f2d5dc635b0ad8429e69fc
CRs-Fixed: 2407092
Abhinav Kumar %!s(int64=6) %!d(string=hai) anos
pai
achega
d69cb5e391
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      core/hdd/src/wlan_hdd_debugfs_roam.c

+ 13 - 0
core/hdd/src/wlan_hdd_debugfs_roam.c

@@ -459,6 +459,19 @@ wlan_hdd_update_roam_stats(struct hdd_context *hdd_ctx,
 			goto free_mem;
 		}
 
+		ret = scnprintf(buf + length, buf_avail_len - length,
+			"\nRaom Scan time: 0x%llx\n",
+			roam_stats->roam_scan[rsi].time_stamp);
+		if (ret <= 0)
+			goto free_mem;
+		length += ret;
+
+		if (length >= buf_avail_len) {
+			hdd_err("No sufficient buf_avail_len");
+			length = buf_avail_len;
+			goto free_mem;
+		}
+
 		if (scan->is_roam_successful) {
 			ret = scnprintf(buf + length,
 					buf_avail_len - length,