Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:47541 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752700Ab2A3L54 (ORCPT ); Mon, 30 Jan 2012 06:57:56 -0500 Received: by mail-ww0-f44.google.com with SMTP id ed3so4506776wgb.1 for ; Mon, 30 Jan 2012 03:57:56 -0800 (PST) From: Eliad Peller To: Luciano Coelho Cc: Subject: [PATCH 11/12] wl12xx: enable/disable BET with AUTO_PS/ACTIVE Date: Mon, 30 Jan 2012 14:00:56 +0200 Message-Id: <1327924857-1250-12-git-send-email-eliad@wizery.com> (sfid-20120130_125832_048052_55E0F366) In-Reply-To: <1327924857-1250-1-git-send-email-eliad@wizery.com> References: <1327924857-1250-1-git-send-email-eliad@wizery.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Eyal Shapira 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 Signed-off-by: Eliad Peller --- 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