blob: 42e67785d3d1ab673a2efaa54aa8b7545f6a96c8 [file] [log] [blame]
developer1f55fcf2024-10-17 14:52:33 +08001From 721672ec8319e443eb5a05888e3bd6f4bb794e13 Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: mtk27745 <rex.lu@mediatek.com>
3Date: Fri, 17 Nov 2023 11:01:04 +0800
developer1f55fcf2024-10-17 14:52:33 +08004Subject: [PATCH 006/193] mtk: mt76: mt7996: Fix TGax HE-4.51.1_24G fail
developer66e89bc2024-04-23 14:50:01 +08005
6According to sta capability to decide to enable/disable wed pao when create ppe entry.
7without this patch, TGax HE-4.51.1_24G will test fail
8
developerd0c89452024-10-11 16:53:27 +08009Change-Id: Ic51473fcc24757887f0f9f81a31b6f01dee2c845
developer66e89bc2024-04-23 14:50:01 +080010Signed-off-by: mtk27745 <rex.lu@mediatek.com>
developer66e89bc2024-04-23 14:50:01 +080011---
12 mt7996/main.c | 7 ++++++-
13 1 file changed, 6 insertions(+), 1 deletion(-)
14
15diff --git a/mt7996/main.c b/mt7996/main.c
developer1f55fcf2024-10-17 14:52:33 +080016index ac9a074..76f9f3d 100644
developer66e89bc2024-04-23 14:50:01 +080017--- a/mt7996/main.c
18+++ b/mt7996/main.c
developer1f55fcf2024-10-17 14:52:33 +080019@@ -1443,7 +1443,12 @@ mt7996_net_fill_forward_path(struct ieee80211_hw *hw,
developer66e89bc2024-04-23 14:50:01 +080020 path->mtk_wdma.queue = 0;
21 path->mtk_wdma.wcid = msta->wcid.idx;
22
23- path->mtk_wdma.amsdu = mtk_wed_is_amsdu_supported(wed);
24+ if (ieee80211_hw_check(hw, SUPPORTS_AMSDU_IN_AMPDU) &&
25+ mtk_wed_is_amsdu_supported(wed))
26+ path->mtk_wdma.amsdu = msta->wcid.amsdu;
27+ else
28+ path->mtk_wdma.amsdu = 0;
29+
30 ctx->dev = NULL;
31
32 return 0;
33--
developerd0c89452024-10-11 16:53:27 +0800342.45.2
developer66e89bc2024-04-23 14:50:01 +080035