/* Update tx/rx chainmask. For legacy association, hard code chainmask to 1x1, for 11n association, use the chainmask configuration, for bt coexistence, use the chainmask configuration even in legacy mode.  */
void ath_update_chainmask(struct ath_softc *sc, int is_ht)
/* Update tx/rx chainmask. For legacy association, hard code chainmask to 1x1, for 11n association, use the chainmask configuration, for bt coexistence, use the chainmask configuration even in legacy mode.  */
void ath_update_chainmask(struct ath_softc *sc, int is_ht)
{
	struct ath_hw *ah = sc->sc_ah;
	struct ath_common *common = ath9k_hw_common(ah);
	if ((sc->sc_flags & SC_OP_SCANNING) || is_ht ||
	    (ah->btcoex_hw.scheme != ATH_BTCOEX_CFG_NONE)) {
		common->tx_chainmask = ah->caps.tx_chainmask;
		common->rx_chainmask = ah->caps.rx_chainmask;
	} else {
		common->tx_chainmask = 1;
		common->rx_chainmask = 1;
	}
	ath_print(common, ATH_DBG_CONFIG,
		  "tx chmask: %d, rx chmask: %d\n",
		  common->tx_chainmask,
		  common->rx_chainmask);
}