提交 4d57c678 编写于 作者: F Felix Fietkau 提交者: Johannes Berg

mac80211: add missing struct ieee80211_txq tid field initialization

Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 5edfcee5
...@@ -3301,9 +3301,11 @@ void ieee80211_init_tx_queue(struct ieee80211_sub_if_data *sdata, ...@@ -3301,9 +3301,11 @@ void ieee80211_init_tx_queue(struct ieee80211_sub_if_data *sdata,
if (sta) { if (sta) {
txqi->txq.sta = &sta->sta; txqi->txq.sta = &sta->sta;
sta->sta.txq[tid] = &txqi->txq; sta->sta.txq[tid] = &txqi->txq;
txqi->txq.tid = tid;
txqi->txq.ac = ieee802_1d_to_ac[tid & 7]; txqi->txq.ac = ieee802_1d_to_ac[tid & 7];
} else { } else {
sdata->vif.txq = &txqi->txq; sdata->vif.txq = &txqi->txq;
txqi->txq.tid = 0;
txqi->txq.ac = IEEE80211_AC_BE; txqi->txq.ac = IEEE80211_AC_BE;
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册