Skip to content

Commit

Permalink
wl1271: Mask unneeded events from firmware to conserve power
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Oct 27, 2009
1 parent 1922167 commit be823e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/wireless/wl12xx/wl1271_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,9 @@ static int wl1271_boot_run_firmware(struct wl1271 *wl)
/* enable gpio interrupts */
wl1271_boot_enable_interrupts(wl);

/* unmask all mbox events */
wl->event_mask = 0xffffffff;
/* unmask required mbox events */
wl->event_mask = BSS_LOSE_EVENT_ID |
SCAN_COMPLETE_EVENT_ID;

ret = wl1271_event_unmask(wl);
if (ret < 0) {
Expand Down

0 comments on commit be823e5

Please sign in to comment.