summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.25/0037-mwifiex-correction-in-mcs-index-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.25/0037-mwifiex-correction-in-mcs-index-check.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.25/0037-mwifiex-correction-in-mcs-index-check.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.25/0037-mwifiex-correction-in-mcs-index-check.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.25/0037-mwifiex-correction-in-mcs-index-check.patch
new file mode 100644
index 00000000..5934302b
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.25/0037-mwifiex-correction-in-mcs-index-check.patch
@@ -0,0 +1,41 @@
1From 10c6ca210b55595833c5b18def07f077947fa88d Mon Sep 17 00:00:00 2001
2From: Amitkumar Karwar <akarwar@marvell.com>
3Date: Wed, 11 Jul 2012 18:12:57 -0700
4Subject: [PATCH 37/73] mwifiex: correction in mcs index check
5
6commit fe020120cb863ba918c6d603345342a880272c4d upstream.
7
8mwifiex driver supports 2x2 chips as well. Hence valid mcs values
9are 0 to 15. The check for mcs index is corrected in this patch.
10
11For example: if 40MHz is enabled and mcs index is 11, "iw link"
12command would show "tx bitrate: 108.0 MBit/s" without this patch.
13Now it shows "tx bitrate: 108.0 MBit/s MCS 11 40Mhz" with the patch.
14
15Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
16Signed-off-by: Bing Zhao <bzhao@marvell.com>
17Signed-off-by: John W. Linville <linville@tuxdriver.com>
18Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
19---
20 drivers/net/wireless/mwifiex/cfg80211.c | 4 ++--
21 1 files changed, 2 insertions(+), 2 deletions(-)
22
23diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
24index 01dcb1a..727c129 100644
25--- a/drivers/net/wireless/mwifiex/cfg80211.c
26+++ b/drivers/net/wireless/mwifiex/cfg80211.c
27@@ -545,9 +545,9 @@ mwifiex_dump_station_info(struct mwifiex_private *priv,
28
29 /*
30 * Bit 0 in tx_htinfo indicates that current Tx rate is 11n rate. Valid
31- * MCS index values for us are 0 to 7.
32+ * MCS index values for us are 0 to 15.
33 */
34- if ((priv->tx_htinfo & BIT(0)) && (priv->tx_rate < 8)) {
35+ if ((priv->tx_htinfo & BIT(0)) && (priv->tx_rate < 16)) {
36 sinfo->txrate.mcs = priv->tx_rate;
37 sinfo->txrate.flags |= RATE_INFO_FLAGS_MCS;
38 /* 40MHz rate */
39--
401.7.7.6
41