diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-02-28 07:35:18 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-28 23:33:48 +0400 |
commit | a5333914536debe05f36ed0d0273f1ddab744eea (patch) | |
tree | d62da393932c33d7f8f0e0561ee431dd164ebb93 /drivers/net/wireless/mwifiex/cfp.c | |
parent | 0c9c4a09f752e3cbe47fd5ea2d7f5f4837f95580 (diff) | |
download | linux-a5333914536debe05f36ed0d0273f1ddab744eea.tar.xz |
mwifiex: update MCS information as per antenna settings
Even if the device is changed to 1X1 mode, data is sent with
higher MCS rates after association.
This patch fixes the problem by updating MCS information field
in HT capability when antenna setting changes so that correct
information will be advertised in association and probe request.
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>
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfp.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/cfp.c b/drivers/net/wireless/mwifiex/cfp.c index 2c3226bf86f8..0ddec3d4b059 100644 --- a/drivers/net/wireless/mwifiex/cfp.c +++ b/drivers/net/wireless/mwifiex/cfp.c @@ -253,7 +253,7 @@ u32 mwifiex_index_to_data_rate(struct mwifiex_private *priv, u8 index, u8 ht_info) { u32 mcs_num_supp = - (priv->adapter->hw_dev_mcs_support == HT_STREAM_2X2) ? 16 : 8; + (priv->adapter->user_dev_mcs_support == HT_STREAM_2X2) ? 16 : 8; u32 rate; if (priv->adapter->is_hw_11ac_capable) |