summaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 0db46442bdcf..42bf0b6685e8 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -3389,25 +3389,6 @@ u8 *ieee80211_add_wmm_info_ie(u8 *buf, u8 qosinfo)
3389 return buf; 3389 return buf;
3390} 3390}
3391 3391
3392void ieee80211_init_tx_queue(struct ieee80211_sub_if_data *sdata,
3393 struct sta_info *sta,
3394 struct txq_info *txqi, int tid)
3395{
3396 skb_queue_head_init(&txqi->queue);
3397 txqi->txq.vif = &sdata->vif;
3398
3399 if (sta) {
3400 txqi->txq.sta = &sta->sta;
3401 sta->sta.txq[tid] = &txqi->txq;
3402 txqi->txq.tid = tid;
3403 txqi->txq.ac = ieee802_1d_to_ac[tid & 7];
3404 } else {
3405 sdata->vif.txq = &txqi->txq;
3406 txqi->txq.tid = 0;
3407 txqi->txq.ac = IEEE80211_AC_BE;
3408 }
3409}
3410
3411void ieee80211_txq_get_depth(struct ieee80211_txq *txq, 3392void ieee80211_txq_get_depth(struct ieee80211_txq *txq,
3412 unsigned long *frame_cnt, 3393 unsigned long *frame_cnt,
3413 unsigned long *byte_cnt) 3394 unsigned long *byte_cnt)
@@ -3415,9 +3396,9 @@ void ieee80211_txq_get_depth(struct ieee80211_txq *txq,
3415 struct txq_info *txqi = to_txq_info(txq); 3396 struct txq_info *txqi = to_txq_info(txq);
3416 3397
3417 if (frame_cnt) 3398 if (frame_cnt)
3418 *frame_cnt = txqi->queue.qlen; 3399 *frame_cnt = txqi->tin.backlog_packets;
3419 3400
3420 if (byte_cnt) 3401 if (byte_cnt)
3421 *byte_cnt = txqi->byte_cnt; 3402 *byte_cnt = txqi->tin.backlog_bytes;
3422} 3403}
3423EXPORT_SYMBOL(ieee80211_txq_get_depth); 3404EXPORT_SYMBOL(ieee80211_txq_get_depth);