mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
iwlwifi: mvm: disable RX-diversity in powersave
[ Upstream commit e5322b9ab5 ]
Just like we have default SMPS mode as dynamic in powersave,
we should not enable RX-diversity in powersave, to reduce
power consumption when connected to a non-MIMO AP.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211017113927.fc896bc5cdaa.I1d11da71b8a5cbe921a37058d5f578f1b14a2023@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e658d59f0e
commit
32a9a8fdba
|
|
@ -741,6 +741,9 @@ bool iwl_mvm_rx_diversity_allowed(struct iwl_mvm *mvm)
|
||||||
|
|
||||||
lockdep_assert_held(&mvm->mutex);
|
lockdep_assert_held(&mvm->mutex);
|
||||||
|
|
||||||
|
if (iwlmvm_mod_params.power_scheme != IWL_POWER_SCHEME_CAM)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (num_of_ant(iwl_mvm_get_valid_rx_ant(mvm)) == 1)
|
if (num_of_ant(iwl_mvm_get_valid_rx_ant(mvm)) == 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user