ath9k: backport ar913x fixes from r26167, r26168
[openwrt-10.03/.git] / package / mac80211 / patches / 575-ath9k_ar9100_rx_chainmask_fix.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -1878,6 +1878,8 @@ int ath9k_hw_fill_cap_info(struct ath_hw
4             !(AR_SREV_9271(ah)))
5                 /* CB71: GPIO 0 is pulled down to indicate 3 rx chains */
6                 pCap->rx_chainmask = ath9k_hw_gpio_get(ah, 0) ? 0x5 : 0x7;
7 +       else if (AR_SREV_9100(ah))
8 +               pCap->rx_chainmask = 0x7;
9         else
10                 /* Use rx_chainmask from EEPROM. */
11                 pCap->rx_chainmask = ah->eep_ops->get_eeprom(ah, EEP_RX_MASK);