summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-10-05 15:43:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-10-05 15:43:14 +0000
commit42cad88e8f24590066e136977d49579a3db8811a (patch)
tree59bdda9dc042b23d23db1f8bcb80e1310676c2eb
parent48374a3a9c555fd0c6b57a239546c6335fab9dc0 (diff)
downloadmtk-20170518-42cad88e8f24590066e136977d49579a3db8811a.zip
mtk-20170518-42cad88e8f24590066e136977d49579a3db8811a.tar.gz
mtk-20170518-42cad88e8f24590066e136977d49579a3db8811a.tar.bz2
mac80211: add a fix to initialize the tid field in the tx queue struct
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47142
-rw-r--r--package/kernel/mac80211/patches/338-mac80211-initialize-tid-field-in-struct-ieee80211_tx.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/338-mac80211-initialize-tid-field-in-struct-ieee80211_tx.patch b/package/kernel/mac80211/patches/338-mac80211-initialize-tid-field-in-struct-ieee80211_tx.patch
new file mode 100644
index 0000000..2f492e0
--- /dev/null
+++ b/package/kernel/mac80211/patches/338-mac80211-initialize-tid-field-in-struct-ieee80211_tx.patch
@@ -0,0 +1,21 @@
+From: Felix Fietkau <nbd@openwrt.org>
+Date: Mon, 5 Oct 2015 17:41:25 +0200
+Subject: [PATCH] mac80211: initialize tid field in struct ieee80211_txq
+
+Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+---
+
+--- a/net/mac80211/util.c
++++ b/net/mac80211/util.c
+@@ -3288,9 +3288,11 @@ void ieee80211_init_tx_queue(struct ieee
+ if (sta) {
+ txqi->txq.sta = &sta->sta;
+ sta->sta.txq[tid] = &txqi->txq;
++ txqi->txq.tid = tid;
+ txqi->txq.ac = ieee802_1d_to_ac[tid & 7];
+ } else {
+ sdata->vif.txq = &txqi->txq;
++ txqi->txq.tid = 0;
+ txqi->txq.ac = IEEE80211_AC_BE;
+ }
+ }