wl1251: improve PS report handling
[pandora-kernel.git] / drivers / net / wireless / wl1251 / ps.c
index c449857..0dbdd24 100644 (file)
@@ -177,8 +177,9 @@ int wl1251_ps_set_mode(struct wl1251 *wl, enum wl1251_station_mode mode)
 
                break;
        }
+       if (mode != wl->station_mode)
+               wl->ps_transitioning = true;
        wl->station_mode = mode;
-       wl->ps_transitioning = true;
        wl->ps_change_jiffies = jiffies;
 
        return ret;