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

Commit b3a442af authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss2: Assert if unexpected second QMI server arrive comes"

parents f0462814 3fad25a0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2092,6 +2092,12 @@ int cnss_wlfw_server_arrive(struct cnss_plat_data *plat_priv, void *data)
	if (!plat_priv)
		return -ENODEV;

	if (test_bit(CNSS_QMI_WLFW_CONNECTED, &plat_priv->driver_state)) {
		cnss_pr_err("Unexpected WLFW server arrive\n");
		CNSS_ASSERT(0);
		return -EINVAL;
	}

	ret = cnss_wlfw_connect_to_server(plat_priv, data);
	if (ret < 0)
		goto out;