Skip to content

Commit

Permalink
ath9k: Fix return code when ath9k_hw_setpower() fails on reset
Browse files Browse the repository at this point in the history
We were not reporting a status code back ath9k_hw_setpower() failed
during reset so lets correct this.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Luis R. Rodriguez authored and David S. Miller committed Oct 10, 2008
1 parent 1cf69cf commit d2a3b22
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d2a3b22

Please sign in to comment.