]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ath11k: fix uninitialized rate_idx in ath11k_dp_tx_update_txcompl()
authorWen Gong <quic_wgong@quicinc.com>
Wed, 9 Feb 2022 06:08:16 +0000 (01:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:06 +0000 (13:58 +0200)
commitb7c5c620087f4fa8cd176fa7f8b79d88920273ff
tree30c4f6de7bcda3d9bc7b79c963c43d2768aaaa28
parentdb1c47d299298a7c52ccb201905d6be979fd7507
ath11k: fix uninitialized rate_idx in ath11k_dp_tx_update_txcompl()

[ Upstream commit 8c4c567fa291e4805d5116f1333b2ed83877032b ]

The rate_idx which passed to ath11k_debugfs_sta_add_tx_stats() by
ath11k_dp_tx_update_txcompl() is not initialized, add initialization
for it.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2

Fixes: 1b8bb94c0612 ("ath11k: report tx bitrate for iw wlan station dump")
Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220209060816.423-1-quic_wgong@quicinc.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath11k/dp_tx.c