From c9daf6161f3932ebe4f810fcc032c10e9fb37dc0 Mon Sep 17 00:00:00 2001 From: Bapiraju Alla Date: Fri, 28 Aug 2020 20:19:24 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_debugfs_llstat.c | 2 +- core/hdd/src/wlan_hdd_stats.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_debugfs_llstat.c b/core/hdd/src/wlan_hdd_debugfs_llstat.c index 036284424257..2caf9d4a9f72 100644 --- a/core/hdd/src/wlan_hdd_debugfs_llstat.c +++ b/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); } } diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index 022a58098496..a8c983ce7431 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/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; }