summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-27 20:31:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-27 20:31:14 +0000
commit54dd25eef41986c18fae9453cc2bc713d195c390 (patch)
treec3978588253d776e2a30704e9f84a59f019fa999
parent85bf288428ead65c427ae80f69fc7d8fbb26b46b (diff)
downloadmtk-20170518-54dd25eef41986c18fae9453cc2bc713d195c390.zip
mtk-20170518-54dd25eef41986c18fae9453cc2bc713d195c390.tar.gz
mtk-20170518-54dd25eef41986c18fae9453cc2bc713d195c390.tar.bz2
mac80211: fix tx queue allocation issues (#19329)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45069
-rw-r--r--package/kernel/mac80211/patches/300-mac80211-add-an-intermediate-software-queue-implemen.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/kernel/mac80211/patches/300-mac80211-add-an-intermediate-software-queue-implemen.patch b/package/kernel/mac80211/patches/300-mac80211-add-an-intermediate-software-queue-implemen.patch
index d084f15..009c8d5 100644
--- a/package/kernel/mac80211/patches/300-mac80211-add-an-intermediate-software-queue-implemen.patch
+++ b/package/kernel/mac80211/patches/300-mac80211-add-an-intermediate-software-queue-implemen.patch
@@ -287,12 +287,14 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org>
name, NET_NAME_UNKNOWN,
ieee80211_if_setup, txqs, 1);
if (!ndev)
-@@ -1731,6 +1747,9 @@ int ieee80211_if_add(struct ieee80211_lo
+@@ -1731,6 +1747,11 @@ int ieee80211_if_add(struct ieee80211_lo
memcpy(sdata->vif.addr, ndev->dev_addr, ETH_ALEN);
memcpy(sdata->name, ndev->name, IFNAMSIZ);
-+ txqi = netdev_priv(ndev) + size;
-+ ieee80211_init_tx_queue(sdata, NULL, txqi, 0);
++ if (txq_size) {
++ txqi = netdev_priv(ndev) + size;
++ ieee80211_init_tx_queue(sdata, NULL, txqi, 0);
++ }
+
sdata->dev = ndev;
}