From: Lorenzo Bianconi Date: Tue, 20 Aug 2019 16:20:20 +0000 (+0200) Subject: ath9k: dynack: properly set last timeout timestamp in ath_dynack_reset X-Git-Tag: v5.4-rc1~131^2~19^2^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6999e40d5f1dc09617a1036aabc63f5734b33e5d;p=thirdparty%2Fkernel%2Flinux.git ath9k: dynack: properly set last timeout timestamp in ath_dynack_reset Add compute timeout to last computation timestamp in ath_dynack_reset in order to not run ath_dynack_compute_ackto immediately Tested-by: Koen Vandeputte Signed-off-by: Lorenzo Bianconi Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath9k/dynack.c b/drivers/net/wireless/ath/ath9k/dynack.c index c244dd15dce4c..5d5809d160af9 100644 --- a/drivers/net/wireless/ath/ath9k/dynack.c +++ b/drivers/net/wireless/ath/ath9k/dynack.c @@ -338,7 +338,7 @@ void ath_dynack_reset(struct ath_hw *ah) u32 ackto = 9 + 16 + 64; struct ath_dynack *da = &ah->dynack; - da->lto = jiffies; + da->lto = jiffies + COMPUTE_TO; da->ackto = ackto; da->st_rbf.t_rb = 0;