mwifiex: do not transmit in 11N rates when connected in TKIP security
authorGanapathi Bhat <gbhat@marvell.com>
Fri, 27 Oct 2017 10:02:49 +0000 (15:32 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Oct 2017 10:49:21 +0000 (12:49 +0200)
Driver is transmitting in 11N rates, when connected to an AP in
TKIP security mode. Add a check to disable_11n to fix the issue.

Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/fw.h

index 6b765f3f37fdd2be645445911d164cc38eb19d37..13cd58e963b34632331173eedf0763dc7ac4baf9 100644 (file)
@@ -225,7 +225,8 @@ enum MWIFIEX_802_11_PRIVACY_FILTER {
 
 #define IS_11N_ENABLED(priv) ((priv->adapter->config_bands & BAND_GN || \
                        priv->adapter->config_bands & BAND_AN) && \
-                       priv->curr_bss_params.bss_descriptor.bcn_ht_cap)
+                       priv->curr_bss_params.bss_descriptor.bcn_ht_cap && \
+                       !priv->curr_bss_params.bss_descriptor.disable_11n)
 #define INITIATOR_BIT(DelBAParamSet) (((DelBAParamSet) &\
                        BIT(DELBA_INITIATOR_POS)) >> DELBA_INITIATOR_POS)