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

Commit d2a3b222 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by David S. Miller
Browse files

ath9k: Fix return code when ath9k_hw_setpower() fails on reset



We were not reporting a status code back ath9k_hw_setpower() failed
during reset so lets correct this.

Reported-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1cf69cfb
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -5892,8 +5892,10 @@ bool ath9k_hw_reset(struct ath_hal *ah,
		goto bad;
	}

	if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
		return false;
	if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE)) {
		ecode = -EIO;
		goto bad;
	}

	if (curchan)
		ath9k_hw_getnf(ah, curchan);