UPSTREAM: mwifiex: correction in mcs index check
authorBing Zhao <bzhao@marvell.com>
Thu, 2 Aug 2012 21:56:14 +0000 (14:56 -0700)
committerGerrit <chrome-bot@google.com>
Fri, 3 Aug 2012 00:45:16 +0000 (17:45 -0700)
commit42abe67ea215f6a047262dc5c4d405bc8785ee40
tree3030de6991914cf692b6d05a36c0a8e3bec1f117
parent8e050aeae47a7127cdc918ed9bd849719a31dc06
UPSTREAM: mwifiex: correction in mcs index check

mwifiex driver supports 2x2 chips as well. Hence valid mcs values
are 0 to 15. The check for mcs index is corrected in this patch.

For example: if 40MHz is enabled and mcs index is 11, "iw link"
command would show "tx bitrate: 108.0 MBit/s" without this patch.
Now it shows "tx bitrate: 108.0 MBit/s MCS 11 40Mhz" with the patch.

Cc: "3.2.y, 3.3.y, 3.4.y" <stable@vger.kernel.org>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
BUG=chrome-os-partner:12190
TEST=Build and run autotest WiFiMatFunc, WiFiSecMat, WiFiManager, WiFiPerf

Change-Id: I4ec246b8d8e9a1f36eb3caa4438e19076dc3f8bd
Reviewed-on: https://gerrit.chromium.org/gerrit/29094
Reviewed-by: Sam Leffler <sleffler@chromium.org>
Tested-by: Bing Zhao <bzhao@marvell.com>
Commit-Ready: Bing Zhao <bzhao@marvell.com>
drivers/net/wireless/mwifiex/cfg80211.c