All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath5k: fixing retries in ath5k_hw_setup_4word_tx_desc
@ 2010-03-01 15:30 Andrew Blaich
  2010-03-03 22:03 ` Benoit PAPILLAULT
  2010-03-03 23:30 ` Bob Copeland
  0 siblings, 2 replies; 7+ messages in thread
From: Andrew Blaich @ 2010-03-01 15:30 UTC (permalink / raw)
  To: John W. Linville
  Cc: linux-wireless, Jiri Slaby, Nick Kossifidis, Luis R. Rodriguez,
	Bob Copeland

This Patch:

The rate control algorithm, default is Minstrel for ath5k, determines
the number of retries to use for each rate.  However, there exists in
ath5k_hw_setup_4word_tx_desc (which is called for AR5212 like devices)
a set number of retries defined by AR5K_TUNE_HWTXTRIES.  The set
number of tries is added to the tx_tries0 variable setup by the rate
control algorithm.  This changes the number of retries the rate
control algorithm considers necessary.  By removing the
AR5K_TUNE_HWTXTRIES from the retry calculation the rate control
algorithm is given control over the number of retries.


Signed-off-by:: Andrew Blaich <ablaich@gmail.com>
---
diff --git a/drivers/net/wireless/ath/ath5k/desc.c
b/drivers/net/wireless/ath/ath5k/desc.c
index dc30a2b..c18d8d4 100644
--- a/drivers/net/wireless/ath/ath5k/desc.c
+++ b/drivers/net/wireless/ath/ath5k/desc.c
@@ -229,7 +229,7 @@ static int ath5k_hw_setup_4word_tx_desc(struct ath5k_hw *ah,
 		AR5K_REG_SM(antenna_mode, AR5K_4W_TX_DESC_CTL0_ANT_MODE_XMIT);
 	tx_ctl->tx_control_1 |= AR5K_REG_SM(type,
 					AR5K_4W_TX_DESC_CTL1_FRAME_TYPE);
-	tx_ctl->tx_control_2 = AR5K_REG_SM(tx_tries0 + AR5K_TUNE_HWTXTRIES,
+	tx_ctl->tx_control_2 = AR5K_REG_SM(tx_tries0,
 					AR5K_4W_TX_DESC_CTL2_XMIT_TRIES0);
 	tx_ctl->tx_control_3 = tx_rate0 & AR5K_4W_TX_DESC_CTL3_XMIT_RATE0;

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

end of thread, other threads:[~2010-03-15 19:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-01 15:30 [PATCH] ath5k: fixing retries in ath5k_hw_setup_4word_tx_desc Andrew Blaich
2010-03-03 22:03 ` Benoit PAPILLAULT
2010-03-03 23:30 ` Bob Copeland
2010-03-04 14:21   ` Andrew Blaich
2010-03-05 13:15     ` Bob Copeland
2010-03-15 19:50       ` Andrew Blaich
2010-03-15 19:54         ` Andrew Blaich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.