diff options
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.patch | 41 |
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 @@ | |||
1 | From 10c6ca210b55595833c5b18def07f077947fa88d Mon Sep 17 00:00:00 2001 | ||
2 | From: Amitkumar Karwar <akarwar@marvell.com> | ||
3 | Date: Wed, 11 Jul 2012 18:12:57 -0700 | ||
4 | Subject: [PATCH 37/73] mwifiex: correction in mcs index check | ||
5 | |||
6 | commit fe020120cb863ba918c6d603345342a880272c4d upstream. | ||
7 | |||
8 | mwifiex driver supports 2x2 chips as well. Hence valid mcs values | ||
9 | are 0 to 15. The check for mcs index is corrected in this patch. | ||
10 | |||
11 | For example: if 40MHz is enabled and mcs index is 11, "iw link" | ||
12 | command would show "tx bitrate: 108.0 MBit/s" without this patch. | ||
13 | Now it shows "tx bitrate: 108.0 MBit/s MCS 11 40Mhz" with the patch. | ||
14 | |||
15 | Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> | ||
16 | Signed-off-by: Bing Zhao <bzhao@marvell.com> | ||
17 | Signed-off-by: John W. Linville <linville@tuxdriver.com> | ||
18 | Signed-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 | |||
23 | diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c | ||
24 | index 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 | -- | ||
40 | 1.7.7.6 | ||
41 | |||