Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed459c18 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville
Browse files

ath9k: remove usage of AR_SREV_*() wrapper to detect supported hw



We will clean this up next to just use a switch.

Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8dadadb7
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -665,8 +665,10 @@ static struct ath_hw *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc,
	if ((ah->hw_version.macVersion != AR_SREV_VERSION_5416_PCI) &&
	if ((ah->hw_version.macVersion != AR_SREV_VERSION_5416_PCI) &&
	    (ah->hw_version.macVersion != AR_SREV_VERSION_5416_PCIE) &&
	    (ah->hw_version.macVersion != AR_SREV_VERSION_5416_PCIE) &&
	    (ah->hw_version.macVersion != AR_SREV_VERSION_9160) &&
	    (ah->hw_version.macVersion != AR_SREV_VERSION_9160) &&
	    (!AR_SREV_9100(ah)) && (!AR_SREV_9280(ah)) &&
	    (ah->hw_version.macVersion != AR_SREV_VERSION_9100) &&
	    (!AR_SREV_9285(ah)) && (!AR_SREV_9287(ah))) {
	    (ah->hw_version.macVersion != AR_SREV_VERSION_9280) &&
	    (ah->hw_version.macVersion != AR_SREV_VERSION_9285) &&
	    (ah->hw_version.macVersion != AR_SREV_VERSION_9287)) {
		DPRINTF(sc, ATH_DBG_FATAL,
		DPRINTF(sc, ATH_DBG_FATAL,
			"Mac Chip Rev 0x%02x.%x is not supported by "
			"Mac Chip Rev 0x%02x.%x is not supported by "
			"this driver\n", ah->hw_version.macVersion,
			"this driver\n", ah->hw_version.macVersion,