iwlwifi: mvm: rs: allow to disable MIMO for P2P only
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 5 Jan 2015 07:48:54 +0000 (09:48 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 22 Jan 2015 15:53:58 +0000 (17:53 +0200)
This is to work around interoperability bugs with devices
that don't hanle MIMO properly.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/constants.h
drivers/net/wireless/iwlwifi/mvm/rs.c

index 2d8e7e3f100bbb1cc09c7614950b9850dbe2ca2a..f98f3efa2056ac9cf0e7dc40a25b763783b3ffce 100644 (file)
 #define IWL_MVM_FW_BCAST_FILTER_PASS_ALL       0
 #define IWL_MVM_QUOTA_THRESHOLD                        8
 #define IWL_MVM_RS_RSSI_BASED_INIT_RATE         0
-#define IWL_MVM_RS_DISABLE_MIMO                        0
+#define IWL_MVM_RS_DISABLE_P2P_MIMO            0
 #define IWL_MVM_RS_NUM_TRY_BEFORE_ANT_TOGGLE    1
 #define IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE      2
 #define IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE_TW   1
index 4747224035565568f4fec0db716d4557915d9875..57a60948a55455cb377d3bf82bafdb3e22aa872f 100644 (file)
@@ -2763,7 +2763,7 @@ void iwl_mvm_rs_rate_init(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
                        lq_sta->stbc = true;
        }
 
-       if (IWL_MVM_RS_DISABLE_MIMO)
+       if (IWL_MVM_RS_DISABLE_P2P_MIMO && sta_priv->vif->p2p)
                lq_sta->active_mimo2_rate = 0;
 
        lq_sta->max_legacy_rate_idx =