532
532
ath9k_hw_synth_delay(ah, chan, synthDelay);
535
static void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx)
535
void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx)
539
REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP,
540
AR_PHY_SWAP_ALT_CHAIN);
545
REG_WRITE(ah, AR_PHY_RX_CHAINMASK, rx);
546
REG_WRITE(ah, AR_PHY_CAL_CHAINMASK, rx);
552
if ((ah->caps.hw_caps & ATH9K_HW_CAP_APM) && (tx == 0x7))
553
REG_WRITE(ah, AR_SELFGEN_MASK, 0x3);
554
else if (AR_SREV_9462(ah))
555
/* xxx only when MCI support is enabled */
556
REG_WRITE(ah, AR_SELFGEN_MASK, 0x3);
558
REG_WRITE(ah, AR_SELFGEN_MASK, tx);
561
REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP,
562
AR_PHY_SWAP_ALT_CHAIN);
537
if (ah->caps.tx_chainmask == 5 || ah->caps.rx_chainmask == 5)
538
REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP,
539
AR_PHY_SWAP_ALT_CHAIN);
541
REG_WRITE(ah, AR_PHY_RX_CHAINMASK, rx);
542
REG_WRITE(ah, AR_PHY_CAL_CHAINMASK, rx);
544
if (((ah->caps.hw_caps & ATH9K_HW_CAP_APM) && (tx == 0x7)) ||
548
REG_WRITE(ah, AR_SELFGEN_MASK, tx);