From: Eliad Peller <eliad@wizery.com>
To: Luciano Coelho <coelho@ti.com>
Cc: <linux-wireless@vger.kernel.org>
Subject: [PATCH v2 09/10] wl12xx: enable/disable BET with AUTO_PS/ACTIVE
Date: Tue, 31 Jan 2012 11:57:24 +0200 [thread overview]
Message-ID: <1328003845-3926-10-git-send-email-eliad@wizery.com> (raw)
In-Reply-To: <1328003845-3926-1-git-send-email-eliad@wizery.com>
From: Eyal Shapira <eyal@wizery.com>
While the FW with dynamic PS controls BET when going to PSM and back
internally within the FW, there's still a need to enable it from the driver
at least once (so enable on every entry to AUTO_PS)
and disable it once we explicitly go back to STATION_ACTIVE_MODE.
BET isn't relevant for 5GHz
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
---
drivers/net/wireless/wl12xx/ps.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/wl12xx/ps.c b/drivers/net/wireless/wl12xx/ps.c
index 5074c2a..d7a91d3 100644
--- a/drivers/net/wireless/wl12xx/ps.c
+++ b/drivers/net/wireless/wl12xx/ps.c
@@ -181,6 +181,13 @@ int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
return ret;
set_bit(WLVIF_FLAG_PSM, &wlvif->flags);
+
+ /* enable beacon early termination. Not relevant for 5GHz */
+ if (wlvif->band == IEEE80211_BAND_2GHZ) {
+ ret = wl1271_acx_bet_enable(wl, wlvif, true);
+ if (ret < 0)
+ return ret;
+ }
break;
case STATION_ACTIVE_MODE:
wl1271_debug(DEBUG_PSM, "leaving psm");
--
1.7.6.401.g6a319
next prev parent reply other threads:[~2012-01-31 9:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-31 9:57 [PATCH v2 00/10] wl12xx: update fw api Eliad Peller
2012-01-31 9:57 ` [PATCH v2 01/10] wl12xx: fw api change - add role_id to set_template Eliad Peller
2012-01-31 10:01 ` Luciano Coelho
2012-01-31 9:57 ` [PATCH v2 02/10] wl12xx: use dev_role_id for scans Eliad Peller
2012-01-31 9:57 ` [PATCH v2 03/10] wl12xx: fw api change - add role_id to tsf_info Eliad Peller
2012-01-31 9:57 ` [PATCH v2 04/10] wl12xx: fw api change - update cmd/acx/event enums Eliad Peller
2012-01-31 9:57 ` [PATCH v2 05/10] wl12xx: remove PS management code Eliad Peller
2012-01-31 9:57 ` [PATCH v2 06/10] wl12xx: add support for HW dynamic PS Eliad Peller
2012-01-31 9:57 ` [PATCH v2 07/10] wl12xx: add dynamic_ps_timeout debugfs file Eliad Peller
2012-01-31 9:57 ` [PATCH v2 08/10] wl12xx: remove 2 unused parameters in wl1271_ps_set_mode() Eliad Peller
2012-01-31 9:57 ` Eliad Peller [this message]
2012-01-31 9:57 ` [PATCH v2 10/10] wl12xx: change WLVIF_FLAG_PSM name and remove WLVIF_FLAG_PSM_REQUESTED Eliad Peller
2012-02-15 10:15 ` [PATCH v2 00/10] wl12xx: update fw api Luciano Coelho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1328003845-3926-10-git-send-email-eliad@wizery.com \
--to=eliad@wizery.com \
--cc=coelho@ti.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).