diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-03-07 19:41:27 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-03-14 14:49:13 -0400 |
commit | a0b7315a198094d5e6281b798a7363ee41e27fac (patch) | |
tree | 2db297c2f087571ba418c9cb80d05f0df905fdb1 /drivers/net/wireless/mwifiex/sta_cmdresp.c | |
parent | 8e17ea25b1e13075d37e976a5bacf10cc1916437 (diff) | |
download | op-kernel-dev-a0b7315a198094d5e6281b798a7363ee41e27fac.zip op-kernel-dev-a0b7315a198094d5e6281b798a7363ee41e27fac.tar.gz |
mwifiex: add VHT MCS rate configuration support
During Tx rate configuration, newer firmware V15 expects bitmap
for VHT MCS rates as well.
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/sta_cmdresp.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_cmdresp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_cmdresp.c b/drivers/net/wireless/mwifiex/sta_cmdresp.c index a8f7d54..bfebb01 100644 --- a/drivers/net/wireless/mwifiex/sta_cmdresp.c +++ b/drivers/net/wireless/mwifiex/sta_cmdresp.c @@ -304,6 +304,15 @@ static int mwifiex_ret_tx_rate_cfg(struct mwifiex_private *priv, priv->bitmap_rates[2 + i] = le16_to_cpu(rate_scope-> ht_mcs_rate_bitmap[i]); + + if (priv->adapter->fw_api_ver == MWIFIEX_FW_V15) { + for (i = 0; i < ARRAY_SIZE(rate_scope-> + vht_mcs_rate_bitmap); + i++) + priv->bitmap_rates[10 + i] = + le16_to_cpu(rate_scope-> + vht_mcs_rate_bitmap[i]); + } break; /* Add RATE_DROP tlv here */ } |