Skip to content

Commit

Permalink
ath9k: dynack: properly set last timeout timestamp in ath_dynack_reset
Browse files Browse the repository at this point in the history
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 <koen.vandeputte@ncentric.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Lorenzo Bianconi authored and Kalle Valo committed Sep 4, 2019
1 parent 5df65dd commit 6999e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/dynack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6999e40

Please sign in to comment.