summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-04-25 13:57:19 +0200
committerKalle Valo <quic_kvalo@quicinc.com>2023-04-28 19:53:29 +0300
commit33f83a23f4cccc3a30cc41aa0e01b66900001052 (patch)
tree4e5298adee39ecb76a552692de4eeea7db8318ec
parentf24292e827088bba8de7158501ac25a59b064953 (diff)
downloadlinux-stable-33f83a23f4cccc3a30cc41aa0e01b66900001052.tar.gz
linux-stable-33f83a23f4cccc3a30cc41aa0e01b66900001052.tar.bz2
linux-stable-33f83a23f4cccc3a30cc41aa0e01b66900001052.zip
wifi: ath12k: Remove some dead code
ATH12K_HE_MCS_MAX = 11, so this test and the following one are the same. Remove the one with the hard coded 11 value. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/c17edf0811156a33bae6c5cf1906d751cc87edd4.1682423828.git.christophe.jaillet@wanadoo.fr
-rw-r--r--drivers/net/wireless/ath/ath12k/dp_rx.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c
index c7bf4f7fa99e..8c8162fbe5c6 100644
--- a/drivers/net/wireless/ath/ath12k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_rx.c
@@ -1374,11 +1374,6 @@ ath12k_update_per_peer_tx_stats(struct ath12k *ar,
* Firmware rate's control to be skipped for this?
*/
- if (flags == WMI_RATE_PREAMBLE_HE && mcs > 11) {
- ath12k_warn(ab, "Invalid HE mcs %d peer stats", mcs);
- return;
- }
-
if (flags == WMI_RATE_PREAMBLE_HE && mcs > ATH12K_HE_MCS_MAX) {
ath12k_warn(ab, "Invalid HE mcs %d peer stats", mcs);
return;