Browse Source

qcacld-3.0: Update channel self Rx time to the user space

Currently, channel rx time is not being updated to user space as
part of link stats. Instead channel tx_time is being overwritten
with the same value. Due to this user space is not getting channel
rx_time in the link stats.

Update channel rx time in the channel link stats.

Update representation of tx_time and rx_time in the ll_stats debugfs
output to align with other stats.

Change-Id: I850adb11169eb24c81f1e31a4ff498f4e20ab9c6
CRs-Fixed: 2765485
Bapiraju Alla 4 years ago
parent
commit
c9daf6161f
2 changed files with 3 additions and 3 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_debugfs_llstat.c
  2. 2 2
      core/hdd/src/wlan_hdd_stats.c

+ 1 - 1
core/hdd/src/wlan_hdd_debugfs_llstat.c

@@ -294,7 +294,7 @@ void hdd_debugfs_process_radio_stats(struct hdd_adapter *adapter,
 				len = scnprintf(
 					buffer,
 					DEBUGFS_LLSTATS_BUF_SIZE - ll_stats.len,
-					"tx time %u rx time %u",
+					", tx_time: %u, rx_time: %u",
 					chan_stat->tx_time, chan_stat->rx_time);
 			}
 		}

+ 2 - 2
core/hdd/src/wlan_hdd_stats.c

@@ -864,8 +864,8 @@ static int hdd_llstats_radio_fill_channels(struct hdd_adapter *adapter,
 				channel_stats->tx_time) ||
 			    nla_put_u32(
 				vendor_event,
-				QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME,
-				channel_stats->tx_time)) {
+				QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME,
+				channel_stats->rx_time)) {
 				hdd_err("nla_put failed");
 				return -EINVAL;
 			}