diff options
author | Venkateswara Naralasetty <vnaralas@codeaurora.org> | 2019-11-28 08:21:51 +0000 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-11-29 09:50:16 +0200 |
commit | a9e945eadf1759fd2255e952a0b57ac7bf04b4b0 (patch) | |
tree | 0981d6a7073b327ffec0753e03ccd1df630f496d /drivers/net/wireless/ath/ath11k/mac.c | |
parent | 28dee8ef7645cdc3e19814ac909c7eff781b66a5 (diff) | |
download | lwn-a9e945eadf1759fd2255e952a0b57ac7bf04b4b0.tar.gz lwn-a9e945eadf1759fd2255e952a0b57ac7bf04b4b0.zip |
ath11k: update tx duration in station info
Update tx duration in station info form PPDU stats
so that users can dump tx duration of the station.
Signed-off-by: Venkateswara Naralasetty <vnaralas@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath11k/mac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index b048057b398f..624534d4c33a 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -5316,6 +5316,9 @@ static void ath11k_mac_op_sta_statistics(struct ieee80211_hw *hw, sinfo->rx_duration = arsta->rx_duration; sinfo->filled |= BIT_ULL(NL80211_STA_INFO_RX_DURATION); + sinfo->tx_duration = arsta->tx_duration; + sinfo->filled |= BIT_ULL(NL80211_STA_INFO_TX_DURATION); + if (!arsta->txrate.legacy && !arsta->txrate.nss) return; |