Permalink
Browse files

wlcore: wait for ROLE_STOP_COMPLETED event (INTERNAL)

We previously didn't wait for this event, as it wasn't
necessary, and sometimes the fw didn't send it.

However, this event is now needed again for some roaming
scenarios. if we'll encounter cases in which we don't get
the event - they will be treated as fw bugs.

Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information...
1 parent 3bfda25 commit 128497691ee822f5bfcc4e7e322307f3820ee43a @elp elp committed with ariknem Jan 30, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 drivers/net/wireless/ti/wlcore/cmd.c
@@ -519,6 +519,12 @@ int wl12xx_cmd_role_stop_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif)
goto out_free;
}
+ ret = wl1271_cmd_wait_for_event(wl, ROLE_STOP_COMPLETE_EVENT_ID);
+ if (ret < 0) {
+ wl1271_error("cmd role stop sta event completion error");
+ goto out_free;
+ }
+
wl12xx_free_link(wl, wlvif, &wlvif->sta.hlid);
out_free:

0 comments on commit 1284976

Please sign in to comment.