blob: 0a8bc089d964c3df512d0409aac833a274674043 [file] [log] [blame]
developer6bcdd6c2024-03-21 16:26:34 +08001From 2fbbeebaaf2aa1e997485f335069d597a339d38c Mon Sep 17 00:00:00 2001
2From: mtk27745 <rex.lu@mediatek.com>
3Date: Fri, 17 Nov 2023 11:01:04 +0800
4Subject: [PATCH 015/120] mtk: wifi: mt76: mt7996: Fix TGax HE-4.51.1_24G fail
5
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>
10CR-Id: WCNCR00259516
11Change-Id: Ic51473fcc24757887f0f9f81a31b6f01dee2c845
12---
13 mt7996/main.c | 7 ++++++-
14 1 file changed, 6 insertions(+), 1 deletion(-)
15
16diff --git a/mt7996/main.c b/mt7996/main.c
17index 0ff8af93b..0a576daad 100644
18--- a/mt7996/main.c
19+++ b/mt7996/main.c
20@@ -1457,7 +1457,12 @@ mt7996_net_fill_forward_path(struct ieee80211_hw *hw,
21 path->mtk_wdma.queue = 0;
22 path->mtk_wdma.wcid = msta->wcid.idx;
23
24- path->mtk_wdma.amsdu = mtk_wed_is_amsdu_supported(wed);
25+ if (ieee80211_hw_check(hw, SUPPORTS_AMSDU_IN_AMPDU) &&
26+ mtk_wed_is_amsdu_supported(wed))
27+ path->mtk_wdma.amsdu = msta->wcid.amsdu;
28+ else
29+ path->mtk_wdma.amsdu = 0;
30+
31 ctx->dev = NULL;
32
33 return 0;
34--
352.39.2
36