diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-12-13 02:40:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-13 15:23:32 -0500 |
commit | caabf2bf228cd6b1c6197dbb25bddb4682d30c9d (patch) | |
tree | 7e31ba2d37ac91a6a39b15cc522d0e083e55964c /drivers/net/wireless/ath/ath9k/hw.c | |
parent | 4357c6bfc83d4e8b1f18588f640be27bf4b0d0f7 (diff) |
ath9k_hw: fix the slot time setting for long distance links
Testing shows that adjusting the slot time based on the coverage class
produces very high latencies and very low throughput on long distance links.
Adjusting only the ACK timeout and leaving the slot time at the regular
values - while technically not optimal for CSMA - works a lot better on
long links (tested with 10 km distance)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index ce4891ea4889..0f373be9ef8c 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -808,7 +808,7 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah) | |||
808 | if (conf->channel && conf->channel->band == IEEE80211_BAND_2GHZ) | 808 | if (conf->channel && conf->channel->band == IEEE80211_BAND_2GHZ) |
809 | acktimeout += 64 - sifstime - ah->slottime; | 809 | acktimeout += 64 - sifstime - ah->slottime; |
810 | 810 | ||
811 | ath9k_hw_setslottime(ah, slottime); | 811 | ath9k_hw_setslottime(ah, ah->slottime); |
812 | ath9k_hw_set_ack_timeout(ah, acktimeout); | 812 | ath9k_hw_set_ack_timeout(ah, acktimeout); |
813 | ath9k_hw_set_cts_timeout(ah, acktimeout); | 813 | ath9k_hw_set_cts_timeout(ah, acktimeout); |
814 | if (ah->globaltxtimeout != (u32) -1) | 814 | if (ah->globaltxtimeout != (u32) -1) |