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

Commit f7479e3b authored by Mohammed Siddiq's avatar Mohammed Siddiq Committed by Sandeep Singh
Browse files

icnss: Release qmi handle on qmi server exit



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

Change-Id: I0a20622ec308778c9be2d66ff829f4b6ee841e92
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 196183c8
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1255,12 +1255,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;
}