mwifiex: improve readability in 11ac mcsmap to maxrate conversion
authorBing Zhao <bzhao@marvell.com>
Sat, 8 Feb 2014 00:21:00 +0000 (16:21 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Feb 2014 20:36:10 +0000 (15:36 -0500)
commit406d702b47a23506b944d8377647352e25f68ea1
tree78694610d8744236fa6f0d58e69d86c15ccdfb7b
parent89467d8ca21b4c62ab1acbadd09e725d2cd410be
mwifiex: improve readability in 11ac mcsmap to maxrate conversion

1) rename max_mcs to mcs;
2) initialize 'i' and 'nss' as 1 instead of 0 in nss lookup;
3) use GET_VHTNSSMCS(mcs_map, nss) macro;
4) use IEEE80211_VHT_MCS_* definitions instead of hard coding

Reported-by: Paul Stewart <pstew@chromium.org>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/11ac.c