aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath9k/main.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-03-03 19:23:35 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-03-05 14:39:46 -0500
commit18eb62f87a8d1dc6ed8a01a52e6b2b1600802608 (patch)
treebda7a8dd1e47d8e85311e0e8e033e7deef30350e /drivers/net/wireless/ath9k/main.c
parent465ca84d95deeab37b7c3b10b2cb96b3fa07a891 (diff)
ath9k: Pause other virtual wiphys on channel change
For now, allow channel changes immediately and just force the other virtual wiphys to paused state. This is needed to allow mac80211-controlled scan to control channel changes. 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/main.c')
-rw-r--r--drivers/net/wireless/ath9k/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
index 7c20da3862a..9b5f2149365 100644
--- a/drivers/net/wireless/ath9k/main.c
+++ b/drivers/net/wireless/ath9k/main.c
@@ -2343,7 +2343,13 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed)
aphy->chan_is_ht = conf_is_ht(conf);
/* TODO: do not change operation channel immediately if there
- * are other virtual wiphys that use another channel */
+ * are other virtual wiphys that use another channel. For now,
+ * we do the change immediately to allow mac80211-operated scan
+ * to work. Once the scan operation is moved into ath9k, we can
+ * just move the current aphy in PAUSED state if the channel is
+ * changed into something different from the current operation
+ * channel. */
+ ath9k_wiphy_pause_all_forced(sc, aphy);
DPRINTF(sc, ATH_DBG_CONFIG, "Set channel: %d MHz\n",
curchan->center_freq);