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

Commit 7e50c6e9 authored by Hrishikesh Vidwans's avatar Hrishikesh Vidwans
Browse files

wil6210: new vr profile with power management



Added new VR profile for STA with default power management

Change-Id: Iccab1fbaed59d7fb19e8ee5caf4c2d7531d66a3b
Signed-off-by: default avatarHrishikesh Vidwans <hvidwans@codeaurora.org>
parent 8713437f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2760,8 +2760,9 @@ 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 */
	if (wil->vr_profile != WMI_VR_PROFILE_DISABLED &&
	    wil->vr_profile != WMI_VR_PROFILE_COMMON_STA_PS)
		/* disallow in non-power management VR mode */
		return -EINVAL;

	wil_dbg_misc(wil, "enabled=%d, timeout=%d\n",
+2 −1
Original line number Diff line number Diff line
@@ -1607,6 +1607,7 @@ int wil_vr_update_profile(struct wil6210_priv *wil, u8 profile)
		return rc;

	/* VR default configuration */
	if (profile != WMI_VR_PROFILE_COMMON_STA_PS)
		wil->ps_profile = WMI_PS_PROFILE_TYPE_PS_DISABLED;
	tx_ring_order = WIL6210_VR_TX_RING_ORDER;
	drop_if_ring_full = true;
+2 −0
Original line number Diff line number Diff line
@@ -4341,6 +4341,8 @@ wil_get_vr_profile_name(enum wmi_vr_profile profile)
		return "COMMON_AP";
	case WMI_VR_PROFILE_COMMON_STA:
		return "COMMON_STA";
	case WMI_VR_PROFILE_COMMON_STA_PS:
		return "COMMON_STA_PS";
	default:
		return "unknown";
	}
+1 −0
Original line number Diff line number Diff line
@@ -4267,6 +4267,7 @@ enum wmi_vr_profile {
	WMI_VR_PROFILE_DISABLED		= 0,
	WMI_VR_PROFILE_COMMON_AP	= 1,
	WMI_VR_PROFILE_COMMON_STA	= 2,
	WMI_VR_PROFILE_COMMON_STA_PS	= 3,
	WMI_VR_PROFILE_RESERVED0	= 250,
	WMI_VR_PROFILE_RESERVED1	= 251,
	WMI_VR_PROFILE_RESERVED2	= 252,