Lets make wifi fast again!
 help / color / mirror / Atom feed
* [Make-wifi-fast] [PATCH] killing retries harder, perhaps
@ 2017-02-02 23:47 Dave Taht
  2017-02-03  0:37 ` Dave Taht
  2017-02-03 13:21 ` Toke Høiland-Jørgensen
  0 siblings, 2 replies; 5+ messages in thread
From: Dave Taht @ 2017-02-02 23:47 UTC (permalink / raw)
  To: make-wifi-fast

[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]

ATH_TXMAXTRY is now unused.

ATH_MAX_SW_RETRIES is insanely high by default.

I finally have some good (well, horrible) data in a consistently noisy
environment and would like to try knocking this down a little in a
future test run. There's smarter ways to do it (like, if you are at
the lowest rate, retry once, higher rates, 4).

I have tried in the past values as low as 2 for soft retries.

diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h
b/drivers/net/wireless/ath/ath9k/ath9k.h
index 331947b..304976d 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -91,8 +91,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct
ath_descdma *dd,
 #define ATH_RXBUF               512
 #define ATH_TXBUF               512
 #define ATH_TXBUF_RESERVE       5
-#define ATH_TXMAXTRY            13
-#define ATH_MAX_SW_RETRIES      30
+#define ATH_MAX_SW_RETRIES      4

 #define TID_TO_WME_AC(_tid)                            \
        ((((_tid) == 0) || ((_tid) == 3)) ? IEEE80211_AC_BE :   \



-- 
Dave Täht
Let's go make home routers and wifi faster! With better software!
http://blog.cerowrt.org

[-- Attachment #2: reduce_retry_insanity.diff --]
[-- Type: text/plain, Size: 609 bytes --]

diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 331947b..304976d 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -91,8 +91,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,
 #define ATH_RXBUF               512
 #define ATH_TXBUF               512
 #define ATH_TXBUF_RESERVE       5
-#define ATH_TXMAXTRY            13
-#define ATH_MAX_SW_RETRIES      30
+#define ATH_MAX_SW_RETRIES      4
 
 #define TID_TO_WME_AC(_tid)				\
 	((((_tid) == 0) || ((_tid) == 3)) ? IEEE80211_AC_BE :	\

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-03 23:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-02 23:47 [Make-wifi-fast] [PATCH] killing retries harder, perhaps Dave Taht
2017-02-03  0:37 ` Dave Taht
2017-02-03 13:21 ` Toke Høiland-Jørgensen
2017-02-03 19:30   ` Dave Taht
2017-02-03 23:07     ` Dave Taht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox