Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Johannes Berg and committed by
John W. Linville
1d98fb12 78307daa

+4 -4
+4 -4
net/mac80211/util.c
··· 790 790 aCWmin = 15; 791 791 792 792 switch (queue) { 793 - case 3: /* AC_BK */ 793 + case IEEE80211_AC_BK: 794 794 qparam.cw_max = aCWmax; 795 795 qparam.cw_min = aCWmin; 796 796 qparam.txop = 0; 797 797 qparam.aifs = 7; 798 798 break; 799 799 default: /* never happens but let's not leave undefined */ 800 - case 2: /* AC_BE */ 800 + case IEEE80211_AC_BE: 801 801 qparam.cw_max = aCWmax; 802 802 qparam.cw_min = aCWmin; 803 803 qparam.txop = 0; 804 804 qparam.aifs = 3; 805 805 break; 806 - case 1: /* AC_VI */ 806 + case IEEE80211_AC_VI: 807 807 qparam.cw_max = aCWmin; 808 808 qparam.cw_min = (aCWmin + 1) / 2 - 1; 809 809 if (use_11b) ··· 812 812 qparam.txop = 3008/32; 813 813 qparam.aifs = 2; 814 814 break; 815 - case 0: /* AC_VO */ 815 + case IEEE80211_AC_VO: 816 816 qparam.cw_max = (aCWmin + 1) / 2 - 1; 817 817 qparam.cw_min = (aCWmin + 1) / 4 - 1; 818 818 if (use_11b)