ath9k: add more fixes for half/quarter rate support
[openwrt/staging/florian.git] / package / mac80211 / patches / 547-ath9k_half_quarter_set_channel_frac.patch
1 --- a/drivers/net/wireless/ath/ath9k/ar9002_phy.c
2 +++ b/drivers/net/wireless/ath/ath9k/ar9002_phy.c
3 @@ -111,7 +111,9 @@ static int ar9002_hw_set_channel(struct
4
5 switch (ah->eep_ops->get_eeprom(ah, EEP_FRAC_N_5G)) {
6 case 0:
7 - if ((freq % 20) == 0)
8 + if (IS_CHAN_HALF_RATE(chan) || IS_CHAN_QUARTER_RATE(chan))
9 + aModeRefSel = 0;
10 + else if ((freq % 20) == 0)
11 aModeRefSel = 3;
12 else if ((freq % 10) == 0)
13 aModeRefSel = 2;