From 15aa1ee69287c12a559a92832a020578ae06b4ca Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 11 Dec 2010 21:29:48 +0000 Subject: ath9k: do not adjust the slot time setting for long distance, it seems to cause long latencies and low throughput SVN-Revision: 24498 --- package/mac80211/patches/520-ath9k_slottime_init.patch | 11 +++++++++++ package/mac80211/patches/521-ath9k_fix_distance_setting.patch | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 package/mac80211/patches/520-ath9k_slottime_init.patch create mode 100644 package/mac80211/patches/521-ath9k_fix_distance_setting.patch (limited to 'package') diff --git a/package/mac80211/patches/520-ath9k_slottime_init.patch b/package/mac80211/patches/520-ath9k_slottime_init.patch new file mode 100644 index 0000000000..1eb83583be --- /dev/null +++ b/package/mac80211/patches/520-ath9k_slottime_init.patch @@ -0,0 +1,11 @@ +--- a/drivers/net/wireless/ath/ath9k/hw.c ++++ b/drivers/net/wireless/ath/ath9k/hw.c +@@ -417,7 +417,7 @@ static void ath9k_hw_init_defaults(struc + AR_STA_ID1_MCAST_KSRCH; + ah->beacon_interval = 100; + ah->enable_32kHz_clock = DONT_USE_32KHZ; +- ah->slottime = (u32) -1; ++ ah->slottime = 9; + ah->globaltxtimeout = (u32) -1; + ah->power_mode = ATH9K_PM_UNDEFINED; + } diff --git a/package/mac80211/patches/521-ath9k_fix_distance_setting.patch b/package/mac80211/patches/521-ath9k_fix_distance_setting.patch new file mode 100644 index 0000000000..6d54945d16 --- /dev/null +++ b/package/mac80211/patches/521-ath9k_fix_distance_setting.patch @@ -0,0 +1,11 @@ +--- a/drivers/net/wireless/ath/ath9k/hw.c ++++ b/drivers/net/wireless/ath/ath9k/hw.c +@@ -813,7 +813,7 @@ void ath9k_hw_init_global_settings(struc + if (conf->channel && conf->channel->band == IEEE80211_BAND_2GHZ) + acktimeout += 64 - sifstime - ah->slottime; + +- ath9k_hw_setslottime(ah, slottime); ++ ath9k_hw_setslottime(ah, ah->slottime); + ath9k_hw_set_ack_timeout(ah, acktimeout); + ath9k_hw_set_cts_timeout(ah, acktimeout); + if (ah->globaltxtimeout != (u32) -1) -- cgit v1.2.3