aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-12-26 14:19:28 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-12-26 14:19:28 +0000
commit811dbae6e86f2879f3920a15f27fb8c7050f0dfa (patch)
tree67167c2dac60f2eb2aa80863afff11508d52fe4e
parent761e67f9ff5cd798af66e2cf8b984a1158ab28fd (diff)
downloadupstream-811dbae6e86f2879f3920a15f27fb8c7050f0dfa.tar.gz
upstream-811dbae6e86f2879f3920a15f27fb8c7050f0dfa.tar.bz2
upstream-811dbae6e86f2879f3920a15f27fb8c7050f0dfa.zip
hostap: Fix unset tx_queue_len regression (thanks to Acinonyx)
SVN-Revision: 18944
-rw-r--r--trunk/target/linux/generic-2.6/patches-2.6.30/910-hostap_tx_queue_len_fix.patch20
-rw-r--r--trunk/target/linux/generic-2.6/patches-2.6.31/910-hostap_tx_queue_len_fix.patch20
2 files changed, 40 insertions, 0 deletions
diff --git a/trunk/target/linux/generic-2.6/patches-2.6.30/910-hostap_tx_queue_len_fix.patch b/trunk/target/linux/generic-2.6/patches-2.6.30/910-hostap_tx_queue_len_fix.patch
new file mode 100644
index 0000000000..b421662d9c
--- /dev/null
+++ b/trunk/target/linux/generic-2.6/patches-2.6.30/910-hostap_tx_queue_len_fix.patch
@@ -0,0 +1,20 @@
+--- a/drivers/net/wireless/hostap/hostap_main.c
++++ b/drivers/net/wireless/hostap/hostap_main.c
+@@ -875,15 +875,16 @@ void hostap_setup_dev(struct net_device
+
+ switch(type) {
+ case HOSTAP_INTERFACE_AP:
++ dev->tx_queue_len = 0; /* use main radio device queue */
+ dev->netdev_ops = &hostap_mgmt_netdev_ops;
+ dev->type = ARPHRD_IEEE80211;
+ dev->header_ops = &hostap_80211_ops;
+ break;
+ case HOSTAP_INTERFACE_MASTER:
+- dev->tx_queue_len = 0; /* use main radio device queue */
+ dev->netdev_ops = &hostap_master_ops;
+ break;
+ default:
++ dev->tx_queue_len = 0; /* use main radio device queue */
+ dev->netdev_ops = &hostap_netdev_ops;
+ }
+
diff --git a/trunk/target/linux/generic-2.6/patches-2.6.31/910-hostap_tx_queue_len_fix.patch b/trunk/target/linux/generic-2.6/patches-2.6.31/910-hostap_tx_queue_len_fix.patch
new file mode 100644
index 0000000000..b421662d9c
--- /dev/null
+++ b/trunk/target/linux/generic-2.6/patches-2.6.31/910-hostap_tx_queue_len_fix.patch
@@ -0,0 +1,20 @@
+--- a/drivers/net/wireless/hostap/hostap_main.c
++++ b/drivers/net/wireless/hostap/hostap_main.c
+@@ -875,15 +875,16 @@ void hostap_setup_dev(struct net_device
+
+ switch(type) {
+ case HOSTAP_INTERFACE_AP:
++ dev->tx_queue_len = 0; /* use main radio device queue */
+ dev->netdev_ops = &hostap_mgmt_netdev_ops;
+ dev->type = ARPHRD_IEEE80211;
+ dev->header_ops = &hostap_80211_ops;
+ break;
+ case HOSTAP_INTERFACE_MASTER:
+- dev->tx_queue_len = 0; /* use main radio device queue */
+ dev->netdev_ops = &hostap_master_ops;
+ break;
+ default:
++ dev->tx_queue_len = 0; /* use main radio device queue */
+ dev->netdev_ops = &hostap_netdev_ops;
+ }
+