mirror of https://github.com/hak5/openwrt.git
mac80211: add a fix to initialize the tid field in the tx queue struct
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47142lede-17.01
parent
48374a3a9c
commit
42cad88e8f
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue