diff options
author | Bapiraju Alla <balla@codeaurora.org> | 2020-08-17 23:43:40 +0530 |
---|---|---|
committer | Victor Hsu <hsuvictor@google.com> | 2020-10-27 14:05:40 +0800 |
commit | 79b7b0ff20619ef4a0e64573f0331447e4b2895c (patch) | |
tree | 59a8ae7733b98cea6ea85180a1043668785f0aa8 | |
parent | 88b6dbedf7885bea54e8999feb10245e27f619ca (diff) | |
download | qcacld-79b7b0ff20619ef4a0e64573f0331447e4b2895c.tar.gz |
qcacld-3.0: Update channel Tx and Rx time to user space
Add support to update per channel Tx and Rx time to the userspace.
Bug: 160239223
Change-Id: I87758fe5fe9b7d05992ca06f4e3310c43c70eb00
CRs-Fixed: 2757209
Signed-off-by: Victor Hsu <hsuvictor@google.com>
-rw-r--r-- | core/hdd/src/wlan_hdd_stats.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index 0817114050..39bde1a2dd 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -843,6 +843,22 @@ static int hdd_llstats_radio_fill_channels(struct hdd_adapter *adapter, hdd_err("nla_put failed"); return -EINVAL; } + + if (adapter->hdd_ctx && + adapter->hdd_ctx->ll_stats_per_chan_rx_tx_time) { + if (nla_put_u32( + vendor_event, + QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME, + channel_stats->tx_time) || + nla_put_u32( + vendor_event, + QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME, + channel_stats->tx_time)) { + hdd_err("nla_put failed"); + return -EINVAL; + } + } + nla_nest_end(vendor_event, chinfo); } nla_nest_end(vendor_event, chlist); |