developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 1 | From 805f8428e1f5d7fc4d466d66c9104588df0c65c5 Mon Sep 17 00:00:00 2001 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 2 | From: mtk27745 <rex.lu@mediatek.com> |
| 3 | Date: Fri, 17 Nov 2023 11:01:04 +0800 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 4 | Subject: [PATCH 018/199] mtk: mt76: mt7996: Fix TGax HE-4.51.1_24G fail |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 5 | |
| 6 | According to sta capability to decide to enable/disable wed pao when create ppe entry. |
| 7 | without this patch, TGax HE-4.51.1_24G will test fail |
| 8 | |
| 9 | Signed-off-by: mtk27745 <rex.lu@mediatek.com> |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 10 | --- |
| 11 | mt7996/main.c | 7 ++++++- |
| 12 | 1 file changed, 6 insertions(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/mt7996/main.c b/mt7996/main.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 15 | index 40281c5b..cbe8b009 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 16 | --- a/mt7996/main.c |
| 17 | +++ b/mt7996/main.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 18 | @@ -1467,7 +1467,12 @@ mt7996_net_fill_forward_path(struct ieee80211_hw *hw, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 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 | -- |
developer | 9237f44 | 2024-06-14 17:13:04 +0800 | [diff] [blame] | 33 | 2.18.0 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 34 | |