mac80211: backport latest changes from trunk
[openwrt-10.03/.git] / package / mac80211 / patches / 551-ath9k_initialize_chainmask.patch
1 --- a/drivers/net/wireless/ath/ath9k/init.c
2 +++ b/drivers/net/wireless/ath/ath9k/init.c
3 @@ -667,8 +667,10 @@ static void ath9k_init_band_txpower(stru
4  static void ath9k_init_txpower_limits(struct ath_softc *sc)
5  {
6         struct ath_hw *ah = sc->sc_ah;
7 +       struct ath_common *common = ath9k_hw_common(sc->sc_ah);
8         struct ath9k_channel *curchan = ah->curchan;
9  
10 +       ah->txchainmask = common->tx_chainmask;
11         if (ah->caps.hw_caps & ATH9K_HW_CAP_2GHZ)
12                 ath9k_init_band_txpower(sc, IEEE80211_BAND_2GHZ);
13         if (ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ)