HTT_T2H_MSG_TYPE_PPDU_STATS_IND is a message which include the ppdu info, currently it is not report from firmware for ath11k, then the tx bitrate of "iw wlan0 station dump" always show an invalid value "tx bitrate: 6.0 MBit/s". To address the issue, this is to parse the info of tx complete report from firmware and indicate the tx rate to mac80211. After that, "iw wlan0 station dump" show the correct tx bit rate such as: tx bitrate: 78.0 MBit/s MCS 12 tx bitrate: 144.4 MBit/s VHT-MCS 7 short GI VHT-NSS 2 tx bitrate: 286.7 MBit/s HE-MCS 11 HE-NSS 2 HE-GI 0 HE-DCM 0 tx bitrate: 1921.5 MBit/s 160MHz HE-MCS 9 HE-NSS 2 HE-GI 0 HE-DCM 0 Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1 Signed-off-by: Wen Gong <quic_wgong@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20211217093722.5739-1-quic_wgong@quicinc.com
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
|
|
/*
|
|
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _ATH11K_DEBUGFS_STA_H_
|
|
#define _ATH11K_DEBUGFS_STA_H_
|
|
|
|
#include <net/mac80211.h>
|
|
|
|
#include "core.h"
|
|
#include "hal_tx.h"
|
|
|
|
#ifdef CONFIG_ATH11K_DEBUGFS
|
|
|
|
void ath11k_debugfs_sta_op_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
|
struct ieee80211_sta *sta, struct dentry *dir);
|
|
void ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta,
|
|
struct ath11k_per_peer_tx_stats *peer_stats,
|
|
u8 legacy_rate_idx);
|
|
void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar,
|
|
struct hal_tx_status *ts);
|
|
|
|
#else /* CONFIG_ATH11K_DEBUGFS */
|
|
|
|
#define ath11k_debugfs_sta_op_add NULL
|
|
|
|
static inline void
|
|
ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta,
|
|
struct ath11k_per_peer_tx_stats *peer_stats,
|
|
u8 legacy_rate_idx)
|
|
{
|
|
}
|
|
|
|
static inline void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar,
|
|
struct hal_tx_status *ts)
|
|
{
|
|
}
|
|
|
|
#endif /* CONFIG_ATH11K_DEBUGFS */
|
|
|
|
#endif /* _ATH11K_DEBUGFS_STA_H_ */
|