developer | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 1 | From 721672ec8319e443eb5a05888e3bd6f4bb794e13 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 | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 006/193] 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 | |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 9 | Change-Id: Ic51473fcc24757887f0f9f81a31b6f01dee2c845 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 10 | Signed-off-by: mtk27745 <rex.lu@mediatek.com> |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 11 | --- |
| 12 | mt7996/main.c | 7 ++++++- |
| 13 | 1 file changed, 6 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/mt7996/main.c b/mt7996/main.c |
developer | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 16 | index ac9a074..76f9f3d 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 17 | --- a/mt7996/main.c |
| 18 | +++ b/mt7996/main.c |
developer | 1f55fcf | 2024-10-17 14:52:33 +0800 | [diff] [blame^] | 19 | @@ -1443,7 +1443,12 @@ mt7996_net_fill_forward_path(struct ieee80211_hw *hw, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 20 | 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 | -- |
developer | d0c8945 | 2024-10-11 16:53:27 +0800 | [diff] [blame] | 34 | 2.45.2 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 35 | |