summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/ath9k.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-03-03 18:23:38 +0100
committerJohn W. Linville <linville@tuxdriver.com>2009-03-05 20:39:47 +0100
commit8089cc47ed45df8f5a44f92f53140e6fd0958409 (patch)
treefca7ceab8f501e906d84e56a4560dd764b841637 /drivers/net/wireless/ath9k/ath9k.h
parentath9k: Add workaround to recover from failed channel changes (diff)
downloadlinux-8089cc47ed45df8f5a44f92f53140e6fd0958409.tar.xz
linux-8089cc47ed45df8f5a44f92f53140e6fd0958409.zip
ath9k: Special processing for channel changes during scan
Allow mac80211-controlled channel changes on an active wiphy and especially during a scan. We need this as long as the scan is controlled by mac80211. Moving this control into the driver could allow some optimizations on scanning while using multiple virtual interfaces, but for now, try to work as well as possible with the current scan mechanism. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/ath9k.h b/drivers/net/wireless/ath9k/ath9k.h
index 4fc054e4354f..983f53daa1cc 100644
--- a/drivers/net/wireless/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath9k/ath9k.h
@@ -633,6 +633,7 @@ struct ath_wiphy {
ATH_WIPHY_ACTIVE,
ATH_WIPHY_PAUSING,
ATH_WIPHY_PAUSED,
+ ATH_WIPHY_SCAN,
} state;
int chan_idx;
int chan_is_ht;
@@ -716,5 +717,6 @@ 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);
#endif /* ATH9K_H */