diff options
author | Xinming Hu <huxm@marvell.com> | 2018-03-08 13:54:02 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-03-13 18:52:58 +0200 |
commit | eaab43e505d01ed19f63e08e52252cbc1c69b9b9 (patch) | |
tree | 5b6bd88e66b60e24970e0eed838466a43c58b70b /drivers/net | |
parent | a6cf02e6485a80ec0f708e1f72ee95abc3426b84 (diff) | |
download | linux-stable-eaab43e505d01ed19f63e08e52252cbc1c69b9b9.tar.gz linux-stable-eaab43e505d01ed19f63e08e52252cbc1c69b9b9.tar.bz2 linux-stable-eaab43e505d01ed19f63e08e52252cbc1c69b9b9.zip |
mwifiex: correct antenna number with high bits reserved
High bits of antenna number are reserved in hardware spec,
using low 4 bits represent supported antenna.
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/cmdevt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/cmdevt.c b/drivers/net/wireless/marvell/mwifiex/cmdevt.c index 874660052055..7014f440e6f8 100644 --- a/drivers/net/wireless/marvell/mwifiex/cmdevt.c +++ b/drivers/net/wireless/marvell/mwifiex/cmdevt.c @@ -1529,7 +1529,8 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv, adapter->fw_release_number = le32_to_cpu(hw_spec->fw_release_number); adapter->fw_api_ver = (adapter->fw_release_number >> 16) & 0xff; - adapter->number_of_antenna = le16_to_cpu(hw_spec->number_of_antenna); + adapter->number_of_antenna = + le16_to_cpu(hw_spec->number_of_antenna) & 0xf; if (le32_to_cpu(hw_spec->dot_11ac_dev_cap)) { adapter->is_hw_11ac_capable = true; |