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

Commit 769d7ac6 authored by Eliad Peller's avatar Eliad Peller Committed by Luciano Coelho
Browse files

wl12xx: don't wait for disconnection event



Sometimes the fw doesn't send the DISCONNECT_EVENT_COMPLETE_ID
on station role stop, so don't wait for it.

Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent bdf91cfa
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -644,12 +644,6 @@ int wl12xx_cmd_role_stop_sta(struct wl1271 *wl)
		goto out_free;
	}

	ret = wl1271_cmd_wait_for_event(wl, DISCONNECT_EVENT_COMPLETE_ID);
	if (ret < 0) {
		wl1271_error("cmd role stop sta event completion error");
		goto out_free;
	}

	wl12xx_free_link(wl, &wl->sta_hlid);

out_free: