Commit 79d9a54c authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by John W. Linville

mwifiex: advertise correct beamforming information for VHT

Currently MU/SU beamformer and MU beamformee features are
not supported.

Hence this patch modifies VHT capability information accordingly.
Number of sounding dimensions should be zero in this case.
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 645097ce
...@@ -1499,8 +1499,10 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv, ...@@ -1499,8 +1499,10 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv,
/* Copy 11AC cap */ /* Copy 11AC cap */
adapter->hw_dot_11ac_dev_cap = adapter->hw_dot_11ac_dev_cap =
le32_to_cpu(hw_spec->dot_11ac_dev_cap); le32_to_cpu(hw_spec->dot_11ac_dev_cap);
adapter->usr_dot_11ac_dev_cap_bg = adapter->hw_dot_11ac_dev_cap; adapter->usr_dot_11ac_dev_cap_bg = adapter->hw_dot_11ac_dev_cap
adapter->usr_dot_11ac_dev_cap_a = adapter->hw_dot_11ac_dev_cap; & ~MWIFIEX_DEF_11AC_CAP_BF_RESET_MASK;
adapter->usr_dot_11ac_dev_cap_a = adapter->hw_dot_11ac_dev_cap
& ~MWIFIEX_DEF_11AC_CAP_BF_RESET_MASK;
/* Copy 11AC mcs */ /* Copy 11AC mcs */
adapter->hw_dot_11ac_mcs_support = adapter->hw_dot_11ac_mcs_support =
......
...@@ -243,6 +243,15 @@ enum MWIFIEX_802_11_PRIVACY_FILTER { ...@@ -243,6 +243,15 @@ enum MWIFIEX_802_11_PRIVACY_FILTER {
#define GET_DEVTXMCSMAP(dev_mcs_map) (dev_mcs_map >> 16) #define GET_DEVTXMCSMAP(dev_mcs_map) (dev_mcs_map >> 16)
#define GET_DEVRXMCSMAP(dev_mcs_map) (dev_mcs_map & 0xFFFF) #define GET_DEVRXMCSMAP(dev_mcs_map) (dev_mcs_map & 0xFFFF)
/* Clear SU Beanformer, MU beanformer, MU beanformee and
* sounding dimensions bits
*/
#define MWIFIEX_DEF_11AC_CAP_BF_RESET_MASK \
(IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE | \
IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE | \
IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE | \
IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MASK)
#define MOD_CLASS_HR_DSSS 0x03 #define MOD_CLASS_HR_DSSS 0x03
#define MOD_CLASS_OFDM 0x07 #define MOD_CLASS_OFDM 0x07
#define MOD_CLASS_HT 0x08 #define MOD_CLASS_HT 0x08
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment