diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-11-17 14:33:27 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-11-24 19:58:40 -0500 |
commit | 0c4ac342997c9597706a8fcbb0ccf920b3d33570 (patch) | |
tree | f3002e64f91b55a945190d79bd252ca1d31cb7d4 /drivers/net/wireless/iwlwifi/iwl-agn-tx.c | |
parent | 6fb5511ab96d9f31be747bab842f96227a5c7aec (diff) |
iwlwifi: use mac80211 AC defines
Instead of hardcoding the numbers that must
match mac80211, use the constants. Not that
this means we could change the constants,
but at least this way it's clearer.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c index c114c3a704f8..72b1f262796c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c | |||
@@ -67,8 +67,14 @@ | |||
67 | */ | 67 | */ |
68 | 68 | ||
69 | static const u8 tid_to_ac[] = { | 69 | static const u8 tid_to_ac[] = { |
70 | /* this matches the mac80211 numbers */ | 70 | IEEE80211_AC_BE, |
71 | 2, 3, 3, 2, 1, 1, 0, 0 | 71 | IEEE80211_AC_BK, |
72 | IEEE80211_AC_BK, | ||
73 | IEEE80211_AC_BE, | ||
74 | IEEE80211_AC_VI, | ||
75 | IEEE80211_AC_VI, | ||
76 | IEEE80211_AC_VO, | ||
77 | IEEE80211_AC_VO | ||
72 | }; | 78 | }; |
73 | 79 | ||
74 | static inline int get_ac_from_tid(u16 tid) | 80 | static inline int get_ac_from_tid(u16 tid) |