mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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. Change-Id: I87758fe5fe9b7d05992ca06f4e3310c43c70eb00 CRs-Fixed: 2757209
This commit is contained in:
parent
fa408b37c1
commit
abe0a18003
1 changed files with 16 additions and 0 deletions
|
|
@ -855,6 +855,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue