blob: 5331089844cdb54c47feaab15b83379277424e68 [file] [log] [blame]
developer6a1998b2022-12-08 18:09:45 +08001From 540e6d1ba99002e4ac0cc0ae93022ee20592e5c4 Mon Sep 17 00:00:00 2001
2From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Thu, 4 Aug 2022 14:08:11 +0800
4Subject: [PATCH 1117/1128] mt76: mt7915: reduce TWT SP sent to FW for cert
5
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
14index 51ec151b..8ebe38f0 100644
15--- a/mt7915/mcu.c
16+++ b/mt7915/mcu.c
17@@ -3773,7 +3773,7 @@ int mt7915_mcu_twt_agrt_update(struct mt7915_dev *dev,
18 .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--
272.36.1
28