summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_main.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-04-09 10:07:29 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-04-09 19:43:10 +0200
commite19728181ca7187fa0ecb7076ce681311cf785e7 (patch)
treef766521cd0a678317fbedf20edccb6ed981ddaf9 /drivers/net/wireless/wl12xx/wl1271_main.c
parentwl1271: Fix mac80211 RTS threshold requests during WL1271_STATE_OFF (diff)
downloadlinux-e19728181ca7187fa0ecb7076ce681311cf785e7.tar.xz
linux-e19728181ca7187fa0ecb7076ce681311cf785e7.zip
wl1271: Go to ELP in idle
Allow the wl1271 go to ELP mode also in idle. This will reduce current consumption remarkably in idle mode (~12mA -> ~0.2mA) Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
index 4adc5162e7e5..551714164ff5 100644
--- a/drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/drivers/net/wireless/wl12xx/wl1271_main.c
@@ -1272,7 +1272,9 @@ static int wl1271_op_config(struct ieee80211_hw *hw, u32 changed)
wl1271_acx_keep_alive_config(
wl, CMD_TEMPL_KLV_IDX_NULL_DATA,
ACX_KEEP_ALIVE_TPL_INVALID);
- }
+ set_bit(WL1271_FLAG_IDLE, &wl->flags);
+ } else
+ clear_bit(WL1271_FLAG_IDLE, &wl->flags);
}
if (conf->flags & IEEE80211_CONF_PS &&