summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-11-20 13:20:07 +0200
committerLuciano Coelho <coelho@ti.com>2012-11-27 10:49:01 +0200
commit6c7b519464cf6c64b02ea0d9e41bd2e49bbd51ce (patch)
tree7ccdaf1b9dbdca137b8d87f99d28ec9e6e8e48f2 /drivers/net/wireless/ti/wlcore
parent29936266780295c812b9b8ac27a3db669e0ed1be (diff)
downloadlinux-6c7b519464cf6c64b02ea0d9e41bd2e49bbd51ce.tar.gz
linux-6c7b519464cf6c64b02ea0d9e41bd2e49bbd51ce.tar.bz2
linux-6c7b519464cf6c64b02ea0d9e41bd2e49bbd51ce.zip
wlcore: set active psm on association
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>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore')
-rw-r--r--drivers/net/wireless/ti/wlcore/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index 11aedb25ddd1..e02f2aa68289 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -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;
}