wl1251: clear bss_lost on join
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 23 Oct 2016 20:27:30 +0000 (23:27 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 23 Oct 2016 20:27:30 +0000 (23:27 +0300)
the PS hacks prevent powersave while it's set

drivers/net/wireless/wl1251/main.c

index e7f1818..b012867 100644 (file)
@@ -375,6 +375,7 @@ static int wl1251_join(struct wl1251 *wl, u8 bss_type, u8 channel,
                wl1251_warning("join timeout");
 
        wl1251_no_ps_event(wl);
                wl1251_warning("join timeout");
 
        wl1251_no_ps_event(wl);
+       wl->bss_lost = 0;
 
 out:
        return ret;
 
 out:
        return ret;