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

Commit 6f646ce9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: Send fw_down uevent during smp2p error handling"

parents 01cc502e daea28e9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2508,6 +2508,7 @@ static int icnss_driver_event_pd_service_down(struct icnss_priv *priv,
static int icnss_driver_event_early_crash_ind(struct icnss_priv *priv,
					      void *data)
{
	struct icnss_uevent_fw_down_data fw_down_data = {0};
	int ret = 0;

	if (!test_bit(ICNSS_WLFW_EXISTS, &priv->state)) {
@@ -2515,6 +2516,13 @@ static int icnss_driver_event_early_crash_ind(struct icnss_priv *priv,
		goto out;
	}

	if (test_bit(ICNSS_FW_READY, &priv->state) &&
	    !test_bit(ICNSS_DRIVER_UNLOADING, &priv->state)) {
		fw_down_data.crashed = true;
		icnss_call_driver_uevent(priv, ICNSS_UEVENT_FW_DOWN,
					 &fw_down_data);
	}

	priv->early_crash_ind = true;
	icnss_fw_crashed(priv, NULL);