Skip to content

Commit 33f83a2

Browse files
tititiou36kvalo
authored andcommitted
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
1 parent f24292e commit 33f83a2

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • drivers/net/wireless/ath/ath12k

drivers/net/wireless/ath/ath12k/dp_rx.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,11 +1374,6 @@ ath12k_update_per_peer_tx_stats(struct ath12k *ar,
13741374
* Firmware rate's control to be skipped for this?
13751375
*/
13761376

1377-
if (flags == WMI_RATE_PREAMBLE_HE && mcs > 11) {
1378-
ath12k_warn(ab, "Invalid HE mcs %d peer stats", mcs);
1379-
return;
1380-
}
1381-
13821377
if (flags == WMI_RATE_PREAMBLE_HE && mcs > ATH12K_HE_MCS_MAX) {
13831378
ath12k_warn(ab, "Invalid HE mcs %d peer stats", mcs);
13841379
return;

0 commit comments

Comments
 (0)