ath9k: do not adjust the slot time setting for long distance, it seems to cause long...
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 521-ath9k_fix_distance_setting.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -813,7 +813,7 @@ void ath9k_hw_init_global_settings(struc
4 if (conf->channel && conf->channel->band == IEEE80211_BAND_2GHZ)
5 acktimeout += 64 - sifstime - ah->slottime;
6
7 - ath9k_hw_setslottime(ah, slottime);
8 + ath9k_hw_setslottime(ah, ah->slottime);
9 ath9k_hw_set_ack_timeout(ah, acktimeout);
10 ath9k_hw_set_cts_timeout(ah, acktimeout);
11 if (ah->globaltxtimeout != (u32) -1)