blob: 68798c375bc493c4ad680e8f4e9687bacf2f494b [file] [log] [blame]
From d0bb7153ee8c546e2dc582a77b49c2d7f0f8c7c0 Mon Sep 17 00:00:00 2001
From: mtk27745 <rex.lu@mediatek.com>
Date: Fri, 17 Nov 2023 11:01:04 +0800
Subject: [PATCH 013/116] mtk: wifi: mt76: mt7996: Fix TGax HE-4.51.1_24G fail
According to sta capability to decide to enable/disable wed pao when create ppe entry.
without this patch, TGax HE-4.51.1_24G will test fail
Signed-off-by: mtk27745 <rex.lu@mediatek.com>
CR-Id: WCNCR00259516
Change-Id: Ic51473fcc24757887f0f9f81a31b6f01dee2c845
---
mt7996/main.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/mt7996/main.c b/mt7996/main.c
index 8b8037f54..f553704ce 100644
--- a/mt7996/main.c
+++ b/mt7996/main.c
@@ -1463,7 +1463,12 @@ mt7996_net_fill_forward_path(struct ieee80211_hw *hw,
path->mtk_wdma.queue = 0;
path->mtk_wdma.wcid = msta->wcid.idx;
- path->mtk_wdma.amsdu = mtk_wed_is_amsdu_supported(wed);
+ if (ieee80211_hw_check(hw, SUPPORTS_AMSDU_IN_AMPDU) &&
+ mtk_wed_is_amsdu_supported(wed))
+ path->mtk_wdma.amsdu = msta->wcid.amsdu;
+ else
+ path->mtk_wdma.amsdu = 0;
+
ctx->dev = NULL;
return 0;
--
2.39.2