sunxi: improve A20 Lime2 upload speed
[openwrt/staging/lynxis.git] / package / kernel / mac80211 / patches / 325-mac80211-unconditionally-start-new-netdev-queues-wit.patch
1 From: Johannes Berg <johannes.berg@intel.com>
2 Date: Wed, 29 Mar 2017 14:15:24 +0200
3 Subject: [PATCH] mac80211: unconditionally start new netdev queues with iTXQ
4 support
5
6 When internal mac80211 TXQs aren't supported, netdev queues must
7 always started out started even when driver queues are stopped
8 while the interface is added. This is necessary because with the
9 internal TXQ support netdev queues are never stopped and packet
10 scheduling/dropping is done in mac80211.
11
12 Cc: stable@vger.kernel.org # 4.9+
13 Fixes: 80a83cfc434b1 ("mac80211: skip netdev queue control with software queuing")
14 Reported-and-tested-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
15 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
16 ---
17
18 --- a/net/mac80211/iface.c
19 +++ b/net/mac80211/iface.c
20 @@ -727,7 +727,8 @@ int ieee80211_do_open(struct wireless_de
21 ieee80211_recalc_ps(local);
22
23 if (sdata->vif.type == NL80211_IFTYPE_MONITOR ||
24 - sdata->vif.type == NL80211_IFTYPE_AP_VLAN) {
25 + sdata->vif.type == NL80211_IFTYPE_AP_VLAN ||
26 + local->ops->wake_tx_queue) {
27 /* XXX: for AP_VLAN, actually track AP queues */
28 netif_tx_start_all_queues(dev);
29 } else if (dev) {