summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ath9k.h
diff options
context:
space:
mode:
authorLuis R. Rodriguez2009-07-15 02:22:53 +0200
committerJohn W. Linville2009-07-24 21:05:19 +0200
commit64839170be296e6348fbaf83fd103711978669b9 (patch)
treeefc597e35a98417fd6910eacf92a36b8d206e2ae /drivers/net/wireless/ath/ath9k/ath9k.h
parentath9k: serialize ath9k_ps_{wakeup,restore} calls (diff)
downloadkernel-qcow2-linux-64839170be296e6348fbaf83fd103711978669b9.tar.gz
kernel-qcow2-linux-64839170be296e6348fbaf83fd103711978669b9.tar.xz
kernel-qcow2-linux-64839170be296e6348fbaf83fd103711978669b9.zip
ath9k: disable radio when all devices are marked idle
This uses the new configuration changes indicated up by mac80211 when all interfaces are marked idle. We need to do a little more work as we have our own set of virtual wiphys within ath9k. Only when all virtual wiphys are inactive do we allow an idle state change for a wiphy to trigger disabling the radio. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 157681241733..751885a5df47 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -691,6 +691,7 @@ void ath9k_wiphy_pause_all_forced(struct ath_softc *sc,
struct ath_wiphy *selected);
bool ath9k_wiphy_scanning(struct ath_softc *sc);
void ath9k_wiphy_work(struct work_struct *work);
+bool ath9k_all_wiphys_idle(struct ath_softc *sc);
void ath9k_iowrite32(struct ath_hw *ah, u32 reg_offset, u32 val);
unsigned int ath9k_ioread32(struct ath_hw *ah, u32 reg_offset);