rename -brcm-2.4 preinit files to -brcm, as they're shared with brcm47xx
[openwrt-10.03/.git] / package / mac80211 / patches / 550-ath9k_ack_timeout_workaround.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -1229,6 +1229,11 @@ void ath9k_hw_init_global_settings(struc
4         /* As defined by IEEE 802.11-2007 17.3.8.6 */
5         slottime = ah->slottime + 3 * ah->coverage_class;
6         acktimeout = slottime + sifstime;
7 +
8 +       /* Workaround for a hw issue */
9 +       if (conf->channel && conf->channel->band == IEEE80211_BAND_2GHZ)
10 +               acktimeout = max(64, acktimeout);
11 +
12         ath9k_hw_setslottime(ah, slottime);
13         ath9k_hw_set_ack_timeout(ah, acktimeout);
14         ath9k_hw_set_cts_timeout(ah, acktimeout);