]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: Fix short and long retry configuration
authorBruno Randolf <br1@einfach.org>
Fri, 28 Jan 2011 07:52:11 +0000 (16:52 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Jan 2011 20:46:23 +0000 (15:46 -0500)
commitf8f47007bba9f25c9ecfde5f0a8e41215c6462bb
tree49cb62eea2aae4415e967900ab514d9956f5c593
parent77485bbe99d0a0c93fe0f115b85557ae7728db2e
ath5k: Fix short and long retry configuration

The register definition for retry configuration on AR5212 was wrong, and simply
copied over from AR5210. Update the register definitions from the documentation.

Let the short and long retries be configured from mac80211 and use the standard
values of 7 and 4 by default. Also we need to make sure we don't export more
retries than we are configured for to mac80211 (and the rate module) in
hw->max_rate_tries.

Also clean up the code by removing unused defines and variables and drop the
different values for "station retries" - if these need to be different it can
be handled tru ah_retry_long/short.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/attach.c
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath5k/mac80211-ops.c
drivers/net/wireless/ath/ath5k/qcu.c
drivers/net/wireless/ath/ath5k/reg.h