From: Lorenzo Bianconi <lorenzo@kernel.org>
To: kvalo@codeaurora.org
Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org,
koen.vandeputte@ncentric.com
Subject: [PATCH 2/4] ath9k: dynack: properly set last timeout timestamp in ath_dynack_reset
Date: Tue, 20 Aug 2019 18:20:20 +0200 [thread overview]
Message-ID: <faa939860a66f860cfcea8fce5b009ec1be08d60.1566317488.git.lorenzo@kernel.org> (raw)
In-Reply-To: <cover.1566317488.git.lorenzo@kernel.org>
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>
---
drivers/net/wireless/ath/ath9k/dynack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath9k/dynack.c b/drivers/net/wireless/ath/ath9k/dynack.c
index c244dd15dce4..5d5809d160af 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;
--
2.21.0
next prev parent reply other threads:[~2019-08-20 16:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-20 16:20 [PATCH 0/4] ath9k: dynack: fixes + cleanup Lorenzo Bianconi
2019-08-20 16:20 ` [PATCH 1/4] ath9k: dyanck: introduce ath_dynack_set_timeout routine Lorenzo Bianconi
2019-09-04 6:20 ` Kalle Valo
2019-08-20 16:20 ` Lorenzo Bianconi [this message]
2019-08-20 16:20 ` [PATCH 3/4] ath9k: dynack: set max timeout according to channel width Lorenzo Bianconi
2019-08-20 16:20 ` [PATCH 4/4] ath9k: dynack: set ackto to max timeout in ath_dynack_reset Lorenzo Bianconi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=faa939860a66f860cfcea8fce5b009ec1be08d60.1566317488.git.lorenzo@kernel.org \
--to=lorenzo@kernel.org \
--cc=koen.vandeputte@ncentric.com \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo.bianconi@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).