blob: 3f105a8a664cbb86f58ce8c4439e35bf83a6aab8 [file] [log] [blame]
developer9237f442024-06-14 17:13:04 +08001From 6992fbb2128d9df358760e654a7797b3f89efcb9 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
developer9237f442024-06-14 17:13:04 +08004Subject: [PATCH 012/116] mtk: wifi: 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
9Signed-off-by: mtk27745 <rex.lu@mediatek.com>
developer66e89bc2024-04-23 14:50:01 +080010---
11 mt7996/main.c | 7 ++++++-
12 1 file changed, 6 insertions(+), 1 deletion(-)
13
14diff --git a/mt7996/main.c b/mt7996/main.c
developer9237f442024-06-14 17:13:04 +080015index dc8014e..0e8abe7 100644
developer66e89bc2024-04-23 14:50:01 +080016--- a/mt7996/main.c
17+++ b/mt7996/main.c
18@@ -1463,7 +1463,12 @@ mt7996_net_fill_forward_path(struct ieee80211_hw *hw,
19 path->mtk_wdma.queue = 0;
20 path->mtk_wdma.wcid = msta->wcid.idx;
21
22- path->mtk_wdma.amsdu = mtk_wed_is_amsdu_supported(wed);
23+ if (ieee80211_hw_check(hw, SUPPORTS_AMSDU_IN_AMPDU) &&
24+ mtk_wed_is_amsdu_supported(wed))
25+ path->mtk_wdma.amsdu = msta->wcid.amsdu;
26+ else
27+ path->mtk_wdma.amsdu = 0;
28+
29 ctx->dev = NULL;
30
31 return 0;
32--
developer9237f442024-06-14 17:13:04 +0800332.18.0
developer66e89bc2024-04-23 14:50:01 +080034