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

Commit b9badb5a authored by Ashok Vuyyuru's avatar Ashok Vuyyuru
Browse files

msm: ipa3: Fix to enable the HOLB during enable wdi pipe



WLAN client disconnect scenario enable HOLB on WLAN consumer,
with timer value 0. if client connected without disabling the
hotspot, it was leading tput impact. To avoid this scenario
during reconnect client configure the holb with timer value
on WLAN consumer pipe.

Change-Id: I33b4c97c4e6adea3107a46d5ca799379d255876c
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent 55303f9f
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2195,6 +2195,7 @@ int ipa3_enable_gsi_wdi_pipe(u32 clnt_hdl)
	struct ipa3_ep_context *ep;
	struct ipa_ep_cfg_ctrl ep_cfg_ctrl;
	int ipa_ep_idx;
	struct ipa_ep_cfg_holb holb_cfg;

	IPADBG("ep=%d\n", clnt_hdl);

@@ -2215,6 +2216,18 @@ int ipa3_enable_gsi_wdi_pipe(u32 clnt_hdl)
	memset(&ep_cfg_ctrl, 0, sizeof(struct ipa_ep_cfg_ctrl));
	ipa3_cfg_ep_ctrl(ipa_ep_idx, &ep_cfg_ctrl);

	if (IPA_CLIENT_IS_CONS(ep->client)) {
		memset(&holb_cfg, 0, sizeof(holb_cfg));
		holb_cfg.en = IPA_HOLB_TMR_EN;
		if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_5)
			holb_cfg.tmr_val = IPA_HOLB_TMR_VAL;
		else
			holb_cfg.tmr_val = IPA_HOLB_TMR_VAL_4_5;

		result = ipa3_cfg_ep_holb(clnt_hdl, &holb_cfg);
	}


	IPA_ACTIVE_CLIENTS_DEC_EP(ipa3_get_client_mapping(clnt_hdl));
	ep->gsi_offload_state |= IPA_WDI_ENABLED;
	IPADBG("client (ep: %d) enabled\n", clnt_hdl);