summaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach2016-10-18 22:12:12 +0200
committerJohannes Berg2016-10-19 12:13:54 +0200
commitf438ceb81d424cb90a5a1aad569056bd7c2ab4c5 (patch)
tree05ec952f55a247467958c80492dbff4a3f31b659 /net/mac80211/util.c
parentmac80211: add a HW flag for supporting HW TX fragmentation (diff)
downloadkernel-qcow2-linux-f438ceb81d424cb90a5a1aad569056bd7c2ab4c5.tar.gz
kernel-qcow2-linux-f438ceb81d424cb90a5a1aad569056bd7c2ab4c5.tar.xz
kernel-qcow2-linux-f438ceb81d424cb90a5a1aad569056bd7c2ab4c5.zip
mac80211: uapsd_queues is in QoS IE order
The uapsd_queue field is in QoS IE order and not in IEEE80211_AC_*'s order. This means that mac80211 would get confused between BK and BE which is certainly not such a big deal but needs to be fixed. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 031273a61d27..7f24bdc68f71 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -3452,3 +3452,10 @@ void ieee80211_txq_get_depth(struct ieee80211_txq *txq,
*byte_cnt = txqi->tin.backlog_bytes + frag_bytes;
}
EXPORT_SYMBOL(ieee80211_txq_get_depth);
+
+const u8 ieee80211_ac_to_qos_mask[IEEE80211_NUM_ACS] = {
+ IEEE80211_WMM_IE_STA_QOSINFO_AC_VO,
+ IEEE80211_WMM_IE_STA_QOSINFO_AC_VI,
+ IEEE80211_WMM_IE_STA_QOSINFO_AC_BE,
+ IEEE80211_WMM_IE_STA_QOSINFO_AC_BK
+};