diff options
author | Luciano Coelho <coelho@ti.com> | 2011-05-10 07:28:27 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-05-12 17:06:32 -0400 |
commit | 6394c01b61f8ab66a6af1a24ff05f2429130afcd (patch) | |
tree | 5612ff7124bed61a473ade82695c1a62e61213ce /drivers | |
parent | 3a9d60e5bd72f9533b05d39278fec50b181dbdd2 (diff) |
wl12xx: listen to scheduled scan events
Subscribe and listen to PERIODIC_SCAN_REPORT_EVENT_ID and
PERIODIC_SCAN_COMPLETE_EVENT_ID in preparation for the scheduled scan
implementation.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/wl12xx/boot.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/event.c | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/boot.c b/drivers/net/wireless/wl12xx/boot.c index 2b0cf85788b..b07f8b7e5f1 100644 --- a/drivers/net/wireless/wl12xx/boot.c +++ b/drivers/net/wireless/wl12xx/boot.c | |||
@@ -478,7 +478,9 @@ static int wl1271_boot_run_firmware(struct wl1271 *wl) | |||
478 | DISCONNECT_EVENT_COMPLETE_ID | | 478 | DISCONNECT_EVENT_COMPLETE_ID | |
479 | RSSI_SNR_TRIGGER_0_EVENT_ID | | 479 | RSSI_SNR_TRIGGER_0_EVENT_ID | |
480 | PSPOLL_DELIVERY_FAILURE_EVENT_ID | | 480 | PSPOLL_DELIVERY_FAILURE_EVENT_ID | |
481 | SOFT_GEMINI_SENSE_EVENT_ID; | 481 | SOFT_GEMINI_SENSE_EVENT_ID | |
482 | PERIODIC_SCAN_REPORT_EVENT_ID | | ||
483 | PERIODIC_SCAN_COMPLETE_EVENT_ID; | ||
482 | 484 | ||
483 | if (wl->bss_type == BSS_TYPE_AP_BSS) | 485 | if (wl->bss_type == BSS_TYPE_AP_BSS) |
484 | wl->event_mask |= STA_REMOVE_COMPLETE_EVENT_ID; | 486 | wl->event_mask |= STA_REMOVE_COMPLETE_EVENT_ID; |
diff --git a/drivers/net/wireless/wl12xx/event.c b/drivers/net/wireless/wl12xx/event.c index ae69330e807..dc110e8a618 100644 --- a/drivers/net/wireless/wl12xx/event.c +++ b/drivers/net/wireless/wl12xx/event.c | |||
@@ -188,6 +188,16 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox) | |||
188 | wl1271_scan_stm(wl); | 188 | wl1271_scan_stm(wl); |
189 | } | 189 | } |
190 | 190 | ||
191 | if (vector & PERIODIC_SCAN_REPORT_EVENT_ID) { | ||
192 | wl1271_debug(DEBUG_EVENT, "PERIODIC_SCAN_REPORT_EVENT " | ||
193 | "(status 0x%0x)", mbox->scheduled_scan_status); | ||
194 | } | ||
195 | |||
196 | if (vector & PERIODIC_SCAN_COMPLETE_EVENT_ID) { | ||
197 | wl1271_debug(DEBUG_EVENT, "PERIODIC_SCAN_COMPLETE_EVENT " | ||
198 | "(status 0x%0x)", mbox->scheduled_scan_status); | ||
199 | } | ||
200 | |||
191 | /* disable dynamic PS when requested by the firmware */ | 201 | /* disable dynamic PS when requested by the firmware */ |
192 | if (vector & SOFT_GEMINI_SENSE_EVENT_ID && | 202 | if (vector & SOFT_GEMINI_SENSE_EVENT_ID && |
193 | wl->bss_type == BSS_TYPE_STA_BSS) { | 203 | wl->bss_type == BSS_TYPE_STA_BSS) { |