summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/ath9k.h
diff options
context:
space:
mode:
authorJouni Malinen2009-03-03 18:23:39 +0100
committerJohn W. Linville2009-03-05 20:39:48 +0100
commitf98c3bd24161e9aaa73b9cd4dc6b1742c085ac17 (patch)
tree82a34790535b773f8d2d6b59a715385dc40b3ef9 /drivers/net/wireless/ath9k/ath9k.h
parentath9k: Special processing for channel changes during scan (diff)
downloadkernel-qcow2-linux-f98c3bd24161e9aaa73b9cd4dc6b1742c085ac17.tar.gz
kernel-qcow2-linux-f98c3bd24161e9aaa73b9cd4dc6b1742c085ac17.tar.xz
kernel-qcow2-linux-f98c3bd24161e9aaa73b9cd4dc6b1742c085ac17.zip
ath9k: Add a simple virtual wiphy scheduler
This is a very simple scheduler that goes through the wiphys and schedules one at a time every N milliseconds (current default value: 500 ms). This is enough for initial testing, but there are number of areas where a more complex scheduler can improve operations greatly. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/ath9k.h')
-rw-r--r--drivers/net/wireless/ath9k/ath9k.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/ath9k.h b/drivers/net/wireless/ath9k/ath9k.h
index 983f53daa1cc..f0b105a11ae2 100644
--- a/drivers/net/wireless/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath9k/ath9k.h
@@ -569,6 +569,9 @@ struct ath_softc {
struct work_struct chan_work;
int wiphy_select_failures;
unsigned long wiphy_select_first_fail;
+ struct delayed_work wiphy_work;
+ unsigned long wiphy_scheduler_int;
+ int wiphy_scheduler_index;
struct tasklet_struct intr_tq;
struct tasklet_struct bcon_tasklet;
@@ -713,10 +716,12 @@ void ath9k_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb);
int ath9k_wiphy_pause(struct ath_wiphy *aphy);
int ath9k_wiphy_unpause(struct ath_wiphy *aphy);
int ath9k_wiphy_select(struct ath_wiphy *aphy);
+void ath9k_wiphy_set_scheduler(struct ath_softc *sc, unsigned int msec_int);
void ath9k_wiphy_chan_work(struct work_struct *work);
bool ath9k_wiphy_started(struct ath_softc *sc);
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);
#endif /* ATH9K_H */