ath9k: improve max rate retry handling
authorFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jan 2010 02:26:11 +0000 (03:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Jan 2010 21:36:27 +0000 (16:36 -0500)
commit658965107e2a45a1a4297cb494adc55797dd9ad1
treeb054ad7126162a78507fd451f6b7439576fdb8f1
parentff27fabe62d288038b36f41ac6a2190ed7d15993
ath9k: improve max rate retry handling

ath9k currently forces hw->max_rate_tries to 4 to work around rate
control inefficiencies. This has some negative side effects, such as
rate_control_send_low also using a maximum of 4 tries, which could
negatively affect reliability of unicast management frames.
This patch pushes the retry limit to the rate control instead, and
allows it to use more tries on the last stage to prevent unnecessary
packet loss.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/rc.c