diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-11-16 20:49:58 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-17 22:19:31 +0100 |
commit | 4bce22b9b84032c77c7e038b07b24fcc706dfc10 (patch) | |
tree | 3c4ee91f19ca703d98956d8aa9f352df8ca10505 /net/mac80211/wme.c | |
parent | ath9k_hw: add support for reading EEPROM data from the internal OTP ROM (diff) | |
download | linux-4bce22b9b84032c77c7e038b07b24fcc706dfc10.tar.xz linux-4bce22b9b84032c77c7e038b07b24fcc706dfc10.zip |
mac80211: defines for AC numbers
In many places we've just hardcoded the
AC numbers -- which is a relic from the
original mac80211 (d80211). Add constants
for them so we know what we're talking
about.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/wme.c')
-rw-r--r-- | net/mac80211/wme.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c index 34e6d02da779..58e75bbc1f91 100644 --- a/net/mac80211/wme.c +++ b/net/mac80211/wme.c @@ -21,7 +21,16 @@ /* Default mapping in classifier to work with default * queue setup. */ -const int ieee802_1d_to_ac[8] = { 2, 3, 3, 2, 1, 1, 0, 0 }; +const int ieee802_1d_to_ac[8] = { + IEEE80211_AC_BE, + IEEE80211_AC_BK, + IEEE80211_AC_BK, + IEEE80211_AC_BE, + IEEE80211_AC_VI, + IEEE80211_AC_VI, + IEEE80211_AC_VO, + IEEE80211_AC_VO +}; static int wme_downgrade_ac(struct sk_buff *skb) { |