blob: f808c1e8dc785e9da9e65294942856363a85b124 [file] [log] [blame]
developerf1313102022-10-11 11:02:55 +08001From 1a023afd7dd2ff4820f056de4d60ac019b1f72e7 Mon Sep 17 00:00:00 2001
developer6e3b5d12022-08-16 15:37:38 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Thu, 4 Aug 2022 14:08:11 +0800
developer33907d42022-09-19 14:33:58 +08004Subject: [PATCH 1115/1124] mt76: mt7915: reduce TWT SP sent to FW for cert
developer6e3b5d12022-08-16 15:37:38 +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
developerf1313102022-10-11 11:02:55 +080014index 34ce7d6..b6733b1 100644
developer6e3b5d12022-08-16 15:37:38 +080015--- a/mt7915/mcu.c
16+++ b/mt7915/mcu.c
developer33907d42022-09-19 14:33:58 +080017@@ -3558,7 +3558,7 @@ int mt7915_mcu_twt_agrt_update(struct mt7915_dev *dev,
developer6e3b5d12022-08-16 15:37:38 +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--
developerf1313102022-10-11 11:02:55 +0800272.18.0
developer6e3b5d12022-08-16 15:37:38 +080028