]> git.karo-electronics.de Git - linux-beck.git/commitdiff
wl12xx: don't wait for disconnection event
authorEliad Peller <eliad@wizery.com>
Sun, 14 Aug 2011 10:17:36 +0000 (13:17 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 22 Aug 2011 09:35:31 +0000 (12:35 +0300)
Sometimes the fw doesn't send the DISCONNECT_EVENT_COMPLETE_ID
on station role stop, so don't wait for it.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/cmd.c

index d3e938012ac29d6d644e87b9c0afa9b3e144786b..817bc183bc8372f0a7fb22a286e977229862f2d6 100644 (file)
@@ -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: