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

Commit 6cae913d authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville
Browse files

ath9k_hw: Fix chip test



USB devices do not require the chip test routine.

Signed-off-by: default avatarSujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 45b9f509
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -436,9 +436,10 @@ static int ath9k_hw_init_macaddr(struct ath_hw *ah)


static int ath9k_hw_post_init(struct ath_hw *ah)
static int ath9k_hw_post_init(struct ath_hw *ah)
{
{
	struct ath_common *common = ath9k_hw_common(ah);
	int ecode;
	int ecode;


	if (!AR_SREV_9271(ah)) {
	if (common->bus_ops->ath_bus_type != ATH_USB) {
		if (!ath9k_hw_chip_test(ah))
		if (!ath9k_hw_chip_test(ah))
			return -ENODEV;
			return -ENODEV;
	}
	}