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>
This commit is contained in:
parent
3a9d60e5bd
commit
6394c01b61
@ -478,7 +478,9 @@ static int wl1271_boot_run_firmware(struct wl1271 *wl)
|
|||||||
DISCONNECT_EVENT_COMPLETE_ID |
|
DISCONNECT_EVENT_COMPLETE_ID |
|
||||||
RSSI_SNR_TRIGGER_0_EVENT_ID |
|
RSSI_SNR_TRIGGER_0_EVENT_ID |
|
||||||
PSPOLL_DELIVERY_FAILURE_EVENT_ID |
|
PSPOLL_DELIVERY_FAILURE_EVENT_ID |
|
||||||
SOFT_GEMINI_SENSE_EVENT_ID;
|
SOFT_GEMINI_SENSE_EVENT_ID |
|
||||||
|
PERIODIC_SCAN_REPORT_EVENT_ID |
|
||||||
|
PERIODIC_SCAN_COMPLETE_EVENT_ID;
|
||||||
|
|
||||||
if (wl->bss_type == BSS_TYPE_AP_BSS)
|
if (wl->bss_type == BSS_TYPE_AP_BSS)
|
||||||
wl->event_mask |= STA_REMOVE_COMPLETE_EVENT_ID;
|
wl->event_mask |= STA_REMOVE_COMPLETE_EVENT_ID;
|
||||||
|
@ -188,6 +188,16 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)
|
|||||||
wl1271_scan_stm(wl);
|
wl1271_scan_stm(wl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (vector & PERIODIC_SCAN_REPORT_EVENT_ID) {
|
||||||
|
wl1271_debug(DEBUG_EVENT, "PERIODIC_SCAN_REPORT_EVENT "
|
||||||
|
"(status 0x%0x)", mbox->scheduled_scan_status);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (vector & PERIODIC_SCAN_COMPLETE_EVENT_ID) {
|
||||||
|
wl1271_debug(DEBUG_EVENT, "PERIODIC_SCAN_COMPLETE_EVENT "
|
||||||
|
"(status 0x%0x)", mbox->scheduled_scan_status);
|
||||||
|
}
|
||||||
|
|
||||||
/* disable dynamic PS when requested by the firmware */
|
/* disable dynamic PS when requested by the firmware */
|
||||||
if (vector & SOFT_GEMINI_SENSE_EVENT_ID &&
|
if (vector & SOFT_GEMINI_SENSE_EVENT_ID &&
|
||||||
wl->bss_type == BSS_TYPE_STA_BSS) {
|
wl->bss_type == BSS_TYPE_STA_BSS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user