Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9e38e77 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Emmanuel Grumbach
Browse files

iwlwifi: dvm: add a force_cam module parameter to fully disable power saving



iwldvm stalls are often blamed on power management.  Add an option
to force it all the way off.

Signed-off-by: default avatarAndy Lutomirski <luto@amacapital.net>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent f40faf62
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -40,6 +40,10 @@
#include "commands.h"
#include "commands.h"
#include "power.h"
#include "power.h"


static bool force_cam;
module_param(force_cam, bool, 0644);
MODULE_PARM_DESC(force_cam, "force continuously aware mode (no power saving at all)");

/*
/*
 * Setting power level allows the card to go to sleep when not busy.
 * Setting power level allows the card to go to sleep when not busy.
 *
 *
@@ -288,6 +292,11 @@ static void iwl_power_build_cmd(struct iwl_priv *priv,
	bool enabled = priv->hw->conf.flags & IEEE80211_CONF_PS;
	bool enabled = priv->hw->conf.flags & IEEE80211_CONF_PS;
	int dtimper;
	int dtimper;


	if (force_cam) {
		iwl_power_sleep_cam_cmd(priv, cmd);
		return;
	}

	dtimper = priv->hw->conf.ps_dtim_period ?: 1;
	dtimper = priv->hw->conf.ps_dtim_period ?: 1;


	if (priv->wowlan)
	if (priv->wowlan)