From: Golan Ben Ami Date: Sun, 10 Jun 2018 11:12:26 +0000 (+0300) Subject: iwlwifi: configure power scheme to balanced for 22560 devices X-Git-Tag: v4.20-rc1~27^2~198^2^2~2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=6a529317ff31e27885e41443e5658ef3654ce0bc;p=linux.git iwlwifi: configure power scheme to balanced for 22560 devices As a temporary stage in the 22560 devices bring up, we disabled power save, to avoid bugs related to that domain. Now we would like to use power save so enable the balanced mode, and allow configuring the mode via module parameter. Signed-off-by: Golan Ben Ami Signed-off-by: Luca Coelho --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c index d728b854be95..0599d323cbeb 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c @@ -720,10 +720,6 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, trans_cfg.rx_buf_size = rb_size_default; } - /* TODO: remove when balanced power mode is fw supported */ - if (mvm->trans->cfg->device_family >= IWL_DEVICE_FAMILY_22560) - iwlmvm_mod_params.power_scheme = IWL_POWER_SCHEME_CAM; - trans->wide_cmd_header = true; trans_cfg.bc_table_dword = mvm->trans->cfg->device_family < IWL_DEVICE_FAMILY_22560;