aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-27 08:18:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-10 14:54:07 -0400
commit1d98fb122d8f0c33504576da4107bc807176be1d (patch)
treeb912ff450b46159986f930f8ed4e944dd5b05971
parent78307daadf08cd471a2adfcebef8453fae9c8314 (diff)
mac80211: use AC constants
Use the AC constants instead of hard-coding the numbers with comments. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--net/mac80211/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 4cb0fd2f5af9..1d4b8b7a5a33 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -790,20 +790,20 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata,
790 aCWmin = 15; 790 aCWmin = 15;
791 791
792 switch (queue) { 792 switch (queue) {
793 case 3: /* AC_BK */ 793 case IEEE80211_AC_BK:
794 qparam.cw_max = aCWmax; 794 qparam.cw_max = aCWmax;
795 qparam.cw_min = aCWmin; 795 qparam.cw_min = aCWmin;
796 qparam.txop = 0; 796 qparam.txop = 0;
797 qparam.aifs = 7; 797 qparam.aifs = 7;
798 break; 798 break;
799 default: /* never happens but let's not leave undefined */ 799 default: /* never happens but let's not leave undefined */
800 case 2: /* AC_BE */ 800 case IEEE80211_AC_BE:
801 qparam.cw_max = aCWmax; 801 qparam.cw_max = aCWmax;
802 qparam.cw_min = aCWmin; 802 qparam.cw_min = aCWmin;
803 qparam.txop = 0; 803 qparam.txop = 0;
804 qparam.aifs = 3; 804 qparam.aifs = 3;
805 break; 805 break;
806 case 1: /* AC_VI */ 806 case IEEE80211_AC_VI:
807 qparam.cw_max = aCWmin; 807 qparam.cw_max = aCWmin;
808 qparam.cw_min = (aCWmin + 1) / 2 - 1; 808 qparam.cw_min = (aCWmin + 1) / 2 - 1;
809 if (use_11b) 809 if (use_11b)
@@ -812,7 +812,7 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata,
812 qparam.txop = 3008/32; 812 qparam.txop = 3008/32;
813 qparam.aifs = 2; 813 qparam.aifs = 2;
814 break; 814 break;
815 case 0: /* AC_VO */ 815 case IEEE80211_AC_VO:
816 qparam.cw_max = (aCWmin + 1) / 2 - 1; 816 qparam.cw_max = (aCWmin + 1) / 2 - 1;
817 qparam.cw_min = (aCWmin + 1) / 4 - 1; 817 qparam.cw_min = (aCWmin + 1) / 4 - 1;
818 if (use_11b) 818 if (use_11b)