aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/wireless/ath/ath11k/mac.h
diff options
context:
space:
mode:
authorVenkateswara Naralasetty <vnaralas@codeaurora.org>2020-02-05 14:05:30 +0530
committerKalle Valo <kvalo@codeaurora.org>2020-02-11 20:35:51 +0200
commit92bacd1c165c2895dda82bbeb49ad9f190a9dd98 (patch)
tree1715166f9f0f6ce62bee260f2c5f8cf054d5b845 /drivers/net/wireless/ath/ath11k/mac.h
parentath11k: Fixing dangling pointer issue upon peer delete failure (diff)
downloadwireguard-linux-92bacd1c165c2895dda82bbeb49ad9f190a9dd98.tar.xz
wireguard-linux-92bacd1c165c2895dda82bbeb49ad9f190a9dd98.zip
ath11k: fix incorrect peer stats counters update
Convert mac80211 bw to ath11k bw before updating peer stats bw counters, which fixes incorrect peer stats counters update. 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.h')
-rw-r--r--drivers/net/wireless/ath/ath11k/mac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/mac.h b/drivers/net/wireless/ath/ath11k/mac.h
index f286531cdd78..f4937a03e92b 100644
--- a/drivers/net/wireless/ath/ath11k/mac.h
+++ b/drivers/net/wireless/ath/ath11k/mac.h
@@ -144,4 +144,5 @@ void ath11k_mac_drain_tx(struct ath11k *ar);
void ath11k_mac_peer_cleanup_all(struct ath11k *ar);
int ath11k_mac_tx_mgmt_pending_free(int buf_id, void *skb, void *ctx);
u8 ath11k_mac_bw_to_mac80211_bw(u8 bw);
+enum ath11k_supported_bw ath11k_mac_mac80211_bw_to_ath11k_bw(enum rate_info_bw bw);
#endif