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

Commit f09b2968 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wil6210: disallow changing power save profile while in VR mode"

parents 43448b8a 27c43a7b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1897,6 +1897,10 @@ static int wil_cfg80211_set_power_mgmt(struct wiphy *wiphy,
	struct wil6210_priv *wil = wiphy_to_wil(wiphy);
	enum wmi_ps_profile_type ps_profile;

	if (wil->vr_profile != WMI_VR_PROFILE_DISABLED)
		/* disallow in VR mode */
		return -EINVAL;

	wil_dbg_misc(wil, "enabled=%d, timeout=%d\n",
		     enabled, timeout);