wl1271: Mask unneeded events from firmware to conserve power
[linux-2.6.git] / drivers / net / wireless / wl12xx / wl1271_boot.c
index 7640313c45c1b078034da7b213193555aa14b95c..140e94348bc143c1bc0fe2c907531c74e2c8c025 100644 (file)
@@ -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) {