aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2008-10-10 15:26:24 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-10 15:26:24 -0400
commitd2a3b222cf976bc44bb9aed13f7b17feea28f633 (patch)
tree2ab85189454bc849c7941ba0b40fabb6c6dbbe38 /drivers/net
parent1cf69cfbe117d645640a9230d6deb07c9db46c5f (diff)
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: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath9k/hw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c
index 372ae61c7b17..98bc25c9b3cf 100644
--- a/drivers/net/wireless/ath9k/hw.c
+++ b/drivers/net/wireless/ath9k/hw.c
@@ -5892,8 +5892,10 @@ bool ath9k_hw_reset(struct ath_hal *ah,
5892 goto bad; 5892 goto bad;
5893 } 5893 }
5894 5894
5895 if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE)) 5895 if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE)) {
5896 return false; 5896 ecode = -EIO;
5897 goto bad;
5898 }
5897 5899
5898 if (curchan) 5900 if (curchan)
5899 ath9k_hw_getnf(ah, curchan); 5901 ath9k_hw_getnf(ah, curchan);