aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-12-07 18:13:23 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-08 15:38:46 -0500
commit69f4aab1157d2a386e7ea4de77cc253629d1b4f2 (patch)
treefe8ff23504e3e40ed1460cac9c8af54abcb16ab9 /drivers/net/wireless
parentff9f0b639f33c92a89b0799263ab625444be6ee1 (diff)
ath9k_hw: warn if we cannot change the power to the chip
Suspend requires the device to be in fullsleep otherwise upon resume the device becomes unresponsive. We need to ensure that when we want the device to go to sleep it yields to the request, otherwise we'll have a useless devices upon resume. Warn when changing the power fails as we need to look into these issues. Cc: Paul Stewart <pstew@google.com> Cc: Amod Bodas <amod.bodas@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 9f4398c88c85..516227fa668e 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1608,6 +1608,13 @@ bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode)
1608 } 1608 }
1609 ah->power_mode = mode; 1609 ah->power_mode = mode;
1610 1610
1611 /*
1612 * XXX: If this warning never comes up after a while then
1613 * simply keep the ATH_DBG_WARN_ON_ONCE() but make
1614 * ath9k_hw_setpower() return type void.
1615 */
1616 ATH_DBG_WARN_ON_ONCE(!status);
1617
1611 return status; 1618 return status;
1612} 1619}
1613EXPORT_SYMBOL(ath9k_hw_setpower); 1620EXPORT_SYMBOL(ath9k_hw_setpower);