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

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

Merge "icnss: Reject register_driver request when WLAN FW is down"

parents 003fce74 5fa7ec58
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -2228,6 +2228,12 @@ static int icnss_driver_event_register_driver(void *data)
	if (test_bit(SKIP_QMI, &quirks))
	if (test_bit(SKIP_QMI, &quirks))
		set_bit(ICNSS_FW_READY, &penv->state);
		set_bit(ICNSS_FW_READY, &penv->state);


	if (test_bit(ICNSS_FW_DOWN, &penv->state)) {
		icnss_pr_err("FW is in bad state, state: 0x%lx\n",
			     penv->state);
		return -ENODEV;
	}

	if (!test_bit(ICNSS_FW_READY, &penv->state)) {
	if (!test_bit(ICNSS_FW_READY, &penv->state)) {
		icnss_pr_dbg("FW is not ready yet, state: 0x%lx\n",
		icnss_pr_dbg("FW is not ready yet, state: 0x%lx\n",
			     penv->state);
			     penv->state);