aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_boot.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2009-10-08 14:56:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:47:54 -0400
commitbe823e5b2d71d367b5e27496e2b19d453e21936e (patch)
treecd27f7ca3a074a4bafcda1bf6911a21bd48259b9 /drivers/net/wireless/wl12xx/wl1271_boot.c
parent1922167b9de575d9d1a56be9b80f0fa3b22785f9 (diff)
wl1271: Mask unneeded events from firmware to conserve power
Currently several events are enabled from the firmware for which there is no handling. This wakes up the host unnecessarily. Mask those unneeded events. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@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_boot.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_boot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_boot.c b/drivers/net/wireless/wl12xx/wl1271_boot.c
index 7640313c45c1..140e94348bc1 100644
--- a/drivers/net/wireless/wl12xx/wl1271_boot.c
+++ b/drivers/net/wireless/wl12xx/wl1271_boot.c
@@ -390,8 +390,9 @@ static int wl1271_boot_run_firmware(struct wl1271 *wl)
390 /* enable gpio interrupts */ 390 /* enable gpio interrupts */
391 wl1271_boot_enable_interrupts(wl); 391 wl1271_boot_enable_interrupts(wl);
392 392
393 /* unmask all mbox events */ 393 /* unmask required mbox events */
394 wl->event_mask = 0xffffffff; 394 wl->event_mask = BSS_LOSE_EVENT_ID |
395 SCAN_COMPLETE_EVENT_ID;
395 396
396 ret = wl1271_event_unmask(wl); 397 ret = wl1271_event_unmask(wl);
397 if (ret < 0) { 398 if (ret < 0) {