blob: 3a727dcc8b1d9dacbd3b7bef53dfdc69b3314380 [file] [log] [blame]
developereb6a0182022-12-12 18:53:32 +08001From 34332523e19b7689147f83936bac106934f935e0 Mon Sep 17 00:00:00 2001
developer684b6102022-08-08 09:11:25 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Thu, 4 Aug 2022 14:08:11 +0800
developerbf24a8a2022-11-30 14:52:20 +08004Subject: [PATCH 1117/1128] mt76: mt7915: reduce TWT SP sent to FW for cert
developer684b6102022-08-08 09:11:25 +08005
6Set TWT SP duration to 88 percent to prevent HW sends PPDU over TWT SP.
7
8Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
9---
10 mt7915/mcu.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/mt7915/mcu.c b/mt7915/mcu.c
developereb6a0182022-12-12 18:53:32 +080014index 87d2c0de..11732993 100644
developer684b6102022-08-08 09:11:25 +080015--- a/mt7915/mcu.c
16+++ b/mt7915/mcu.c
developereb6a0182022-12-12 18:53:32 +080017@@ -3789,7 +3789,7 @@ int mt7915_mcu_twt_agrt_update(struct mt7915_dev *dev,
developer684b6102022-08-08 09:11:25 +080018 .own_mac_idx = mvif->mt76.omac_idx,
19 .flowid = flow->id,
20 .peer_id = cpu_to_le16(flow->wcid),
21- .duration = flow->duration,
22+ .duration = (flow->duration * 7) >> 3,
23 .bss_idx = mvif->mt76.idx,
24 .start_tsf = cpu_to_le64(flow->tsf),
25 .mantissa = flow->mantissa,
26--
developereb6a0182022-12-12 18:53:32 +0800272.25.1
developer684b6102022-08-08 09:11:25 +080028