ath5k: fixing retries in ath5k_hw_setup_4word_tx_desc
authorAndrew Blaich <ablaich@gmail.com>
Mon, 1 Mar 2010 15:30:40 +0000 (10:30 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Mar 2010 22:44:46 +0000 (17:44 -0500)
commite9f08381cb117d66ad14474228ce02a27d6f62ae
tree865bd2b54535d65a70ecbb48575df4c077004661
parentd969847c2202f82b3f6755d16909925e64e354e5
ath5k: fixing retries in ath5k_hw_setup_4word_tx_desc

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/desc.c