diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-05-15 06:55:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:48:08 -0400 |
commit | 36d6825b91bc492b65b6333c369cd96a2fc8c903 (patch) | |
tree | 9113754ce110d593da8019a329c4afb229a036b3 /drivers/net | |
parent | c4680470a34a4f39af3d0a5c40f70befd8701908 (diff) |
mac80211: let drivers wake but not start queues
Having drivers start queues is just confusing, their ->start()
callback can block and do whatever is necessary, so let mac80211
start queues and have drivers wake queues when necessary (to get
packets flowing again right away.)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/adm8211.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/b43/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/b43legacy/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54common.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54pci.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 4 |
9 files changed, 7 insertions, 12 deletions
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index 7af5d8851f6..79dfca546c8 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c | |||
@@ -2015,7 +2015,7 @@ static int adm8211_resume(struct pci_dev *pdev) | |||
2015 | 2015 | ||
2016 | if (priv->mode != IEEE80211_IF_TYPE_INVALID) { | 2016 | if (priv->mode != IEEE80211_IF_TYPE_INVALID) { |
2017 | adm8211_start(dev); | 2017 | adm8211_start(dev); |
2018 | ieee80211_start_queues(dev); | 2018 | ieee80211_wake_queues(dev); |
2019 | } | 2019 | } |
2020 | 2020 | ||
2021 | return 0; | 2021 | return 0; |
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index c76ada17878..3f16ad66bdb 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -1599,7 +1599,7 @@ ath5k_txq_cleanup(struct ath5k_softc *sc) | |||
1599 | sc->txqs[i].link); | 1599 | sc->txqs[i].link); |
1600 | } | 1600 | } |
1601 | } | 1601 | } |
1602 | ieee80211_start_queues(sc->hw); /* XXX move to callers */ | 1602 | ieee80211_wake_queues(sc->hw); /* XXX move to callers */ |
1603 | 1603 | ||
1604 | for (i = 0; i < ARRAY_SIZE(sc->txqs); i++) | 1604 | for (i = 0; i < ARRAY_SIZE(sc->txqs); i++) |
1605 | if (sc->txqs[i].setup) | 1605 | if (sc->txqs[i].setup) |
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index fc23ba5309b..9445a604a96 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -3497,7 +3497,6 @@ static int b43_wireless_core_start(struct b43_wldev *dev) | |||
3497 | /* Start data flow (TX/RX). */ | 3497 | /* Start data flow (TX/RX). */ |
3498 | b43_mac_enable(dev); | 3498 | b43_mac_enable(dev); |
3499 | b43_interrupt_enable(dev, dev->irq_savedstate); | 3499 | b43_interrupt_enable(dev, dev->irq_savedstate); |
3500 | ieee80211_start_queues(dev->wl->hw); | ||
3501 | 3500 | ||
3502 | /* Start maintainance work */ | 3501 | /* Start maintainance work */ |
3503 | b43_periodic_tasks_setup(dev); | 3502 | b43_periodic_tasks_setup(dev); |
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c index 7755c59e080..b05a507ed44 100644 --- a/drivers/net/wireless/b43legacy/main.c +++ b/drivers/net/wireless/b43legacy/main.c | |||
@@ -2794,7 +2794,6 @@ static int b43legacy_wireless_core_start(struct b43legacy_wldev *dev) | |||
2794 | /* Start data flow (TX/RX) */ | 2794 | /* Start data flow (TX/RX) */ |
2795 | b43legacy_mac_enable(dev); | 2795 | b43legacy_mac_enable(dev); |
2796 | b43legacy_interrupt_enable(dev, dev->irq_savedstate); | 2796 | b43legacy_interrupt_enable(dev, dev->irq_savedstate); |
2797 | ieee80211_start_queues(dev->wl->hw); | ||
2798 | 2797 | ||
2799 | /* Start maintenance work */ | 2798 | /* Start maintenance work */ |
2800 | b43legacy_periodic_tasks_setup(dev); | 2799 | b43legacy_periodic_tasks_setup(dev); |
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index b8fb8d8d95f..54cde8a7b5f 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -5823,7 +5823,7 @@ static void iwl3945_alive_start(struct iwl3945_priv *priv) | |||
5823 | if (iwl3945_is_rfkill(priv)) | 5823 | if (iwl3945_is_rfkill(priv)) |
5824 | return; | 5824 | return; |
5825 | 5825 | ||
5826 | ieee80211_start_queues(priv->hw); | 5826 | ieee80211_wake_queues(priv->hw); |
5827 | 5827 | ||
5828 | priv->active_rate = priv->rates_mask; | 5828 | priv->active_rate = priv->rates_mask; |
5829 | priv->active_rate_basic = priv->rates_mask & IWL_BASIC_RATES_MASK; | 5829 | priv->active_rate_basic = priv->rates_mask & IWL_BASIC_RATES_MASK; |
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 48c59cbefb4..db4f606bad5 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -3367,7 +3367,7 @@ static void iwl4965_alive_start(struct iwl_priv *priv) | |||
3367 | if (iwl_is_rfkill(priv)) | 3367 | if (iwl_is_rfkill(priv)) |
3368 | return; | 3368 | return; |
3369 | 3369 | ||
3370 | ieee80211_start_queues(priv->hw); | 3370 | ieee80211_wake_queues(priv->hw); |
3371 | 3371 | ||
3372 | priv->active_rate = priv->rates_mask; | 3372 | priv->active_rate = priv->rates_mask; |
3373 | priv->active_rate_basic = priv->rates_mask & IWL_BASIC_RATES_MASK; | 3373 | priv->active_rate_basic = priv->rates_mask & IWL_BASIC_RATES_MASK; |
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c index 9cbef5bce0f..3d35fe6a8f5 100644 --- a/drivers/net/wireless/p54/p54common.c +++ b/drivers/net/wireless/p54/p54common.c | |||
@@ -375,9 +375,6 @@ static void inline p54_wake_free_queues(struct ieee80211_hw *dev) | |||
375 | struct p54_common *priv = dev->priv; | 375 | struct p54_common *priv = dev->priv; |
376 | int i; | 376 | int i; |
377 | 377 | ||
378 | /* ieee80211_start_queues is great if all queues are really empty. | ||
379 | * But, what if some are full? */ | ||
380 | |||
381 | for (i = 0; i < dev->queues; i++) | 378 | for (i = 0; i < dev->queues; i++) |
382 | if (priv->tx_stats[i].len < priv->tx_stats[i].limit) | 379 | if (priv->tx_stats[i].len < priv->tx_stats[i].limit) |
383 | ieee80211_wake_queue(dev, i); | 380 | ieee80211_wake_queue(dev, i); |
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c index fa527723fbe..7dd4add4bf4 100644 --- a/drivers/net/wireless/p54/p54pci.c +++ b/drivers/net/wireless/p54/p54pci.c | |||
@@ -665,7 +665,7 @@ static int p54p_resume(struct pci_dev *pdev) | |||
665 | 665 | ||
666 | if (priv->common.mode != IEEE80211_IF_TYPE_INVALID) { | 666 | if (priv->common.mode != IEEE80211_IF_TYPE_INVALID) { |
667 | p54p_open(dev); | 667 | p54p_open(dev); |
668 | ieee80211_start_queues(dev); | 668 | ieee80211_wake_queues(dev); |
669 | } | 669 | } |
670 | 670 | ||
671 | return 0; | 671 | return 0; |
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 171f445962d..d341764e1b2 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -125,7 +125,7 @@ int rt2x00lib_enable_radio(struct rt2x00_dev *rt2x00dev) | |||
125 | /* | 125 | /* |
126 | * Start the TX queues. | 126 | * Start the TX queues. |
127 | */ | 127 | */ |
128 | ieee80211_start_queues(rt2x00dev->hw); | 128 | ieee80211_wake_queues(rt2x00dev->hw); |
129 | 129 | ||
130 | return 0; | 130 | return 0; |
131 | } | 131 | } |
@@ -1186,7 +1186,7 @@ int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev) | |||
1186 | * In that case we have disabled the TX queue and should | 1186 | * In that case we have disabled the TX queue and should |
1187 | * now enable it again | 1187 | * now enable it again |
1188 | */ | 1188 | */ |
1189 | ieee80211_start_queues(rt2x00dev->hw); | 1189 | ieee80211_wake_queues(rt2x00dev->hw); |
1190 | 1190 | ||
1191 | /* | 1191 | /* |
1192 | * During interface iteration we might have changed the | 1192 | * During interface iteration we might have changed the |