summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/ps.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-11-30 13:07:20 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-04-12 05:43:58 (GMT)
commit441101f67818cf5aaba7081fb05c8604a55c0949 (patch)
tree7eaf3168babf87a4529b6e9ca5c3e930f43e3f12 /drivers/net/wireless/ti/wlcore/ps.c
parent4263c5f27c0403ad750c4f2509e5396e630b6e6e (diff)
downloadlinux-fsl-qoriq-441101f67818cf5aaba7081fb05c8604a55c0949.tar.xz
wlcore: add quirk to disable ELP
ELP is a very complicated process in the firmware. Due to its complexity, in some early firmware revisions, the ELP feature is disabled. To support this cases, this patch adds a quirk that disables ELP mode. When ELP is not supported, do not attempt to enter ELP when requested by the driver. Signed-off-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/ps.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/ps.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/ps.c b/drivers/net/wireless/ti/wlcore/ps.c
index cfeb114..756eee2 100644
--- a/drivers/net/wireless/ti/wlcore/ps.c
+++ b/drivers/net/wireless/ti/wlcore/ps.c
@@ -73,6 +73,9 @@ void wl1271_ps_elp_sleep(struct wl1271 *wl)
{
struct wl12xx_vif *wlvif;
+ if (wl->quirks & WLCORE_QUIRK_NO_ELP)
+ return;
+
/* we shouldn't get consecutive sleep requests */
if (WARN_ON(test_and_set_bit(WL1271_FLAG_ELP_REQUESTED, &wl->flags)))
return;