]> Pileus Git - ~andy/linux/commitdiff
wlcore: set active psm on association
authorEliad Peller <eliad@wizery.com>
Tue, 20 Nov 2012 11:20:07 +0000 (13:20 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 27 Nov 2012 08:49:01 +0000 (10:49 +0200)
The default ps mode of the fw is auto, while the default
ps mode of mac80211 is active (ps off).
In order to sync them, configure active ps on association.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Reviewed-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/main.c

index 11aedb25ddd179cb28ba7fe1e976fbb4d2d8df41..e02f2aa6828912b6589268e697851f428c6c24a3 100644 (file)
@@ -2614,6 +2614,12 @@ static int wlcore_set_assoc(struct wl1271 *wl, struct wl12xx_vif *wlvif,
        if (ret < 0)
                return ret;
 
+       /*
+        * The default fw psm configuration is AUTO, while mac80211 default
+        * setting is off (ACTIVE), so sync the fw with the correct value.
+        */
+       ret = wl1271_ps_set_mode(wl, wlvif, STATION_ACTIVE_MODE);
+
        return ret;
 }