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

Commit f06fb661 authored by Sandeep Singh's avatar Sandeep Singh
Browse files

icnss: Reject QMI server arrive if it comes without server exit



During ssr/pdr ideally, wlan platform driver should get
server exit notification over QMI followed by server arrive
but In some cases, wlan platform driver gets server arrive
indication without prior server exit indication. So, this
change asserts the system if server arrive comes without
server exit indication.

Change-Id: I9fe801fc95e32750b958c0cc673fd47605e92919
Signed-off-by: default avatarSandeep Singh <sandsing@codeaurora.org>
parent 08d4c1e9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -975,6 +975,11 @@ static int icnss_driver_event_server_arrive(void *data)
	clear_bit(ICNSS_FW_DOWN, &penv->state);
	icnss_ignore_fw_timeout(false);

	if (test_bit(ICNSS_WLFW_CONNECTED, &penv->state)) {
		icnss_pr_err("QMI Server already in Connected State\n");
		ICNSS_ASSERT(0);
	}

	ret = icnss_connect_to_fw_server(penv, data);
	if (ret)
		goto fail;