aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2015-01-12 04:53:06 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-01-22 10:55:18 -0500
commitec41088f2bff8c6b151c450798534a1037eda47e (patch)
treeab498d7a1b419a5f0ffa5d90193e8a9544d24538 /drivers/net/wireless/iwlwifi
parent6d440b2559c9e477ff11b40c6f2dd69193d46161 (diff)
iwlwifi: mvm: rs: use STBC regardless of power save mode
Tx STBC was used only when in CAM mode or if powersave is disabled. Effectively this meant we never used STBC as these modes aren't used on most platforms by default. Change that. Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/rs.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/rs.c b/drivers/net/wireless/iwlwifi/mvm/rs.c
index dd2f966b3bf0..997a3831117c 100644
--- a/drivers/net/wireless/iwlwifi/mvm/rs.c
+++ b/drivers/net/wireless/iwlwifi/mvm/rs.c
@@ -1802,20 +1802,12 @@ out:
1802static bool rs_stbc_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, 1802static bool rs_stbc_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
1803 struct iwl_lq_sta *lq_sta) 1803 struct iwl_lq_sta *lq_sta)
1804{ 1804{
1805 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);
1806 struct ieee80211_vif *vif = mvmsta->vif;
1807 bool sta_ps_disabled = (vif->type == NL80211_IFTYPE_STATION &&
1808 !vif->bss_conf.ps);
1809
1810 /* Our chip supports Tx STBC and the peer is an HT/VHT STA which 1805 /* Our chip supports Tx STBC and the peer is an HT/VHT STA which
1811 * supports STBC of at least 1*SS 1806 * supports STBC of at least 1*SS
1812 */ 1807 */
1813 if (!lq_sta->stbc) 1808 if (!lq_sta->stbc)
1814 return false; 1809 return false;
1815 1810
1816 if (!mvm->ps_disabled && !sta_ps_disabled)
1817 return false;
1818
1819 if (!iwl_mvm_bt_coex_is_mimo_allowed(mvm, sta)) 1811 if (!iwl_mvm_bt_coex_is_mimo_allowed(mvm, sta))
1820 return false; 1812 return false;
1821 1813