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

Commit 66ed7e8f authored by Anurag Chouhan's avatar Anurag Chouhan Committed by Yuanyuan Liu
Browse files

icnss: Set fw down at server exit indication



Set FW down at server exit indication and ignore qmi assert.

CRs-Fixed: 2226499
Change-Id: Idf52eff58993e35573043ee1eb985638bd97cf85
Signed-off-by: default avatarAnurag Chouhan <achouhan@codeaurora.org>
parent a45def9b
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1123,7 +1123,15 @@ static int wlfw_new_server(struct qmi_handle *qmi,
static void wlfw_del_server(struct qmi_handle *qmi,
			    struct qmi_service *service)
{
	struct icnss_priv *priv = container_of(qmi, struct icnss_priv, qmi);

	icnss_pr_dbg("WLFW server delete\n");

	if (priv) {
		set_bit(ICNSS_FW_DOWN, &priv->state);
		icnss_ignore_fw_timeout(true);
	}

	icnss_driver_event_post(ICNSS_DRIVER_EVENT_SERVER_EXIT,
				0, NULL);
}