mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 02:25:20 +07:00
ath9k: Fix bug in EEPROM chainmask retrieval
Using wrong chainmasks would have an adverse impact on performance. This patch fixes chainmask retrieval for non-PCIE cards. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
9e71279084
commit
8147f5de7a
@ -3220,14 +3220,11 @@ bool ath9k_hw_fill_cap_info(struct ath_hw *ah)
|
|||||||
}
|
}
|
||||||
|
|
||||||
pCap->tx_chainmask = ah->eep_ops->get_eeprom(ah, EEP_TX_MASK);
|
pCap->tx_chainmask = ah->eep_ops->get_eeprom(ah, EEP_TX_MASK);
|
||||||
if ((ah->is_pciexpress)
|
if ((ah->hw_version.devid == AR5416_DEVID_PCI) &&
|
||||||
|| (eeval & AR5416_OPFLAGS_11A)) {
|
!(eeval & AR5416_OPFLAGS_11A))
|
||||||
pCap->rx_chainmask =
|
pCap->rx_chainmask = ath9k_hw_gpio_get(ah, 0) ? 0x5 : 0x7;
|
||||||
ah->eep_ops->get_eeprom(ah, EEP_RX_MASK);
|
else
|
||||||
} else {
|
pCap->rx_chainmask = ah->eep_ops->get_eeprom(ah, EEP_RX_MASK);
|
||||||
pCap->rx_chainmask =
|
|
||||||
(ath9k_hw_gpio_get(ah, 0)) ? 0x5 : 0x7;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(AR_SREV_9280(ah) && (ah->hw_version.macRev == 0)))
|
if (!(AR_SREV_9280(ah) && (ah->hw_version.macRev == 0)))
|
||||||
ah->misc_mode |= AR_PCU_MIC_NEW_LOC_ENA;
|
ah->misc_mode |= AR_PCU_MIC_NEW_LOC_ENA;
|
||||||
|
Loading…
Reference in New Issue
Block a user