mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
359a6e36e9
Synchronize the ath11k backports with the current ath-next tree. All of the changes are various bugfixes, there is no new major feature. Notable bugfixes are: * WCN6855 board name fixes * One MSI vector booting is working again This is rather important for most of the older platforms. * DFS CAC state in virtual interfaces was fixed * TX power during CAC reporting Signed-off-by: Robert Marko <robimarko@gmail.com>
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From ac13a7842ab46a87aa315514d6d7e19b03cb2adc Mon Sep 17 00:00:00 2001
|
|
From: Dmitry Antipov <dmantipov@yandex.ru>
|
|
Date: Wed, 6 Sep 2023 12:36:55 +0300
|
|
Subject: [PATCH] wifi: ath11k: drop NULL pointer check in
|
|
ath11k_update_per_peer_tx_stats()
|
|
|
|
Since 'user_stats' is a fixed-size array of 'struct htt_ppdu_user_stats'
|
|
in 'struct htt_ppdu_stats', any of its member can't be NULL and so
|
|
relevant check may be dropped.
|
|
|
|
Found by Linux Verification Center (linuxtesting.org) with SVACE.
|
|
|
|
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
|
|
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
|
|
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
|
|
Link: https://lore.kernel.org/r/20230906093704.14001-1-dmantipov@yandex.ru
|
|
---
|
|
drivers/net/wireless/ath/ath11k/dp_rx.c | 3 ---
|
|
1 file changed, 3 deletions(-)
|
|
|
|
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
|
|
@@ -1388,9 +1388,6 @@ ath11k_update_per_peer_tx_stats(struct a
|
|
u8 tid = HTT_PPDU_STATS_NON_QOS_TID;
|
|
bool is_ampdu = false;
|
|
|
|
- if (!usr_stats)
|
|
- return;
|
|
-
|
|
if (!(usr_stats->tlv_flags & BIT(HTT_PPDU_STATS_TAG_USR_RATE)))
|
|
return;
|
|
|