@@ -287,7 +287,13 @@
rcu_read_lock();
list_for_each_entry_rcu(sdata, &local->interfaces, list)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
netif_tx_wake_queue(netdev_get_tx_queue(sdata->dev, queue));
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
+ netif_start_subqueue(sdata->dev, queue);
+#else
+ netif_wake_queue(sdata->dev);
+#endif
rcu_read_unlock();
}
@@ -322,7 +328,13 @@
rcu_read_lock();
list_for_each_entry_rcu(sdata, &local->interfaces, list)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
netif_tx_stop_queue(netdev_get_tx_queue(sdata->dev, queue));
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
+ netif_stop_subqueue(sdata->dev, queue);
+#else
+ netif_stop_queue(sdata->dev);
+#endif
rcu_read_unlock();
}