]> err.no Git - linux-2.6/blobdiff - net/mac80211/util.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6] / net / mac80211 / util.c
index ce62b163b82c46d2e8814e29d1f5ce73a2f250c3..19f85e1b369576c1f340ec563c794d87079e1df1 100644 (file)
@@ -363,12 +363,7 @@ void ieee80211_wake_queue(struct ieee80211_hw *hw, int queue)
        if (test_bit(queue, local->queues_pending)) {
                tasklet_schedule(&local->tx_pending_tasklet);
        } else {
-               if (ieee80211_is_multiqueue(local)) {
-                       netif_wake_subqueue(local->mdev, queue);
-               } else {
-                       WARN_ON(queue != 0);
-                       netif_wake_queue(local->mdev);
-               }
+               netif_wake_subqueue(local->mdev, queue);
        }
 }
 EXPORT_SYMBOL(ieee80211_wake_queue);
@@ -377,12 +372,7 @@ void ieee80211_stop_queue(struct ieee80211_hw *hw, int queue)
 {
        struct ieee80211_local *local = hw_to_local(hw);
 
-       if (ieee80211_is_multiqueue(local)) {
-               netif_stop_subqueue(local->mdev, queue);
-       } else {
-               WARN_ON(queue != 0);
-               netif_stop_queue(local->mdev);
-       }
+       netif_stop_subqueue(local->mdev, queue);
 }
 EXPORT_SYMBOL(ieee80211_stop_queue);
 
@@ -428,8 +418,6 @@ void ieee80211_iterate_active_interfaces(
                case IEEE80211_IF_TYPE_MESH_POINT:
                        break;
                }
-               if (sdata->dev == local->mdev)
-                       continue;
                if (netif_running(sdata->dev))
                        iterator(data, sdata->dev->dev_addr,
                                 &sdata->vif);
@@ -463,8 +451,6 @@ void ieee80211_iterate_active_interfaces_atomic(
                case IEEE80211_IF_TYPE_MESH_POINT:
                        break;
                }
-               if (sdata->dev == local->mdev)
-                       continue;
                if (netif_running(sdata->dev))
                        iterator(data, sdata->dev->dev_addr,
                                 &sdata->vif);