wl1251: Filter out unwanted events
authorJanne Ylalehto <janne.ylalehto@nokia.com>
Tue, 17 Nov 2009 16:49:38 +0000 (18:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Nov 2009 22:09:22 +0000 (17:09 -0500)
Filter out unwanted events to reduce wakeups.

Signed-off-by: Janne Ylalehto <janne.ylalehto@nokia.com>
Reviewed-by: Vidhya Govindan <vidhya.govindan@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/wl1251_boot.c

index 8febf27ab28d9ea63e33c0921e74258c9a2d8cff..5094f24ad034a16532868ed0aa70d3bf09c70f24 100644 (file)
@@ -296,8 +296,12 @@ int wl1251_boot_run_firmware(struct wl1251 *wl)
                WL1251_ACX_INTR_INIT_COMPLETE;
        wl1251_boot_target_enable_interrupts(wl);
 
-       /* unmask all mbox events  */
-       wl->event_mask = 0xffffffff;
+       wl->event_mask = SCAN_COMPLETE_EVENT_ID | BSS_LOSE_EVENT_ID |
+               SYNCHRONIZATION_TIMEOUT_EVENT_ID |
+               ROAMING_TRIGGER_LOW_RSSI_EVENT_ID |
+               ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID |
+               REGAINED_BSS_EVENT_ID | BT_PTA_SENSE_EVENT_ID |
+               BT_PTA_PREDICTION_EVENT_ID;
 
        ret = wl1251_event_unmask(wl);
        if (ret < 0) {