9504af1419067a059da511171e3bfd4caaba1a18
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / ath / 559-ath9k-dynack-properly-set-last-timeout-timestamp-in-.patch
1 From e5b56ce50eab31d24df6a70cf025db3acc4aa3ac Mon Sep 17 00:00:00 2001
2 From: Lorenzo Bianconi <lorenzo@kernel.org>
3 Date: Tue, 20 Aug 2019 18:20:20 +0200
4 Subject: [PATCH 2/4] ath9k: dynack: properly set last timeout timestamp in
5 ath_dynack_reset
6
7 Add compute timeout to last computation timestamp in
8 ath_dynack_reset in order to not run ath_dynack_compute_ackto
9 immediately
10
11 Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
12 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
13 ---
14 drivers/net/wireless/ath/ath9k/dynack.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/drivers/net/wireless/ath/ath9k/dynack.c b/drivers/net/wireless/ath/ath9k/dynack.c
18 index 38dbe25919f7..398ea872751f 100644
19 --- a/drivers/net/wireless/ath/ath9k/dynack.c
20 +++ b/drivers/net/wireless/ath/ath9k/dynack.c
21 @@ -338,7 +338,7 @@ void ath_dynack_reset(struct ath_hw *ah)
22 u32 ackto = 9 + 16 + 64;
23 struct ath_dynack *da = &ah->dynack;
24
25 - da->lto = jiffies;
26 + da->lto = jiffies + COMPUTE_TO;
27 da->ackto = ackto;
28
29 da->st_rbf.t_rb = 0;
30 --
31 2.17.1
32