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

Commit 631ce619 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 a
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 90653a6f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -876,6 +876,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;