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

Commit 16af8b2a authored by Sandeep Singh's avatar Sandeep Singh Committed by Gerrit - the friendly Code Review server
Browse files

icnss2: Release qmi handle on qmi server exit



This changes release qmi handle and registers again
to qmi service for wlan server notifications.

Change-Id: Ie00fdec6686a8b71c8ef77d7cf2f11c281a82b88
Signed-off-by: default avatarSandeep Singh <sandsing@codeaurora.org>
parent 55100ee0
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1933,12 +1933,22 @@ int icnss_connect_to_fw_server(struct icnss_priv *priv, void *data)

int icnss_clear_server(struct icnss_priv *priv)
{
	int ret;

	if (!priv)
		return -ENODEV;

	icnss_pr_info("QMI Service Disconnected: 0x%lx\n", priv->state);
	clear_bit(ICNSS_WLFW_CONNECTED, &priv->state);

	icnss_unregister_fw_service(priv);

	ret =  icnss_register_fw_service(priv);
	if (ret < 0) {
		icnss_pr_err("WLFW server registration failed\n");
		ICNSS_ASSERT(0);
	}

	return 0;
}