mac80211: add a fix to initialize the tid field in the tx queue struct
[15.05/openwrt.git] / package / kernel / mac80211 / patches / 398-mac80211-initialize-tid-field-in-struct-ieee80211_tx.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Mon, 5 Oct 2015 17:41:25 +0200
3 Subject: [PATCH] mac80211: initialize tid field in struct ieee80211_txq
4
5 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
6 ---
7
8 --- a/net/mac80211/util.c
9 +++ b/net/mac80211/util.c
10 @@ -3323,9 +3323,11 @@ void ieee80211_init_tx_queue(struct ieee
11         if (sta) {
12                 txqi->txq.sta = &sta->sta;
13                 sta->sta.txq[tid] = &txqi->txq;
14 +               txqi->txq.tid = tid;
15                 txqi->txq.ac = ieee802_1d_to_ac[tid & 7];
16         } else {
17                 sdata->vif.txq = &txqi->txq;
18 +               txqi->txq.tid = 0;
19                 txqi->txq.ac = IEEE80211_AC_BE;
20         }
21  }