From 578b33ccafe7440e5e0aab0d46dd088dc68aa37d Mon Sep 17 00:00:00 2001 From: juhosg Date: Sat, 26 Dec 2009 14:19:28 +0000 Subject: hostap: Fix unset tx_queue_len regression (thanks to Acinonyx) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18944 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-2.6.31/910-hostap_tx_queue_len_fix.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 trunk/target/linux/generic-2.6/patches-2.6.31/910-hostap_tx_queue_len_fix.patch (limited to 'trunk/target/linux/generic-2.6/patches-2.6.31') 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 000000000..b421662d9 --- /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; + } + -- cgit v1.2.3