wpa_priv: Add support for EVENT_SCAN_STARTED

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-09-05 12:39:11 +03:00
parent d01136a06e
commit 06f52b12f9
3 changed files with 8 additions and 0 deletions

View file

@ -68,6 +68,7 @@ enum privsep_event {
PRIVSEP_EVENT_STKSTART, PRIVSEP_EVENT_STKSTART,
PRIVSEP_EVENT_FT_RESPONSE, PRIVSEP_EVENT_FT_RESPONSE,
PRIVSEP_EVENT_RX_EAPOL, PRIVSEP_EVENT_RX_EAPOL,
PRIVSEP_EVENT_SCAN_STARTED,
}; };
#endif /* PRIVSEP_COMMANDS_H */ #endif /* PRIVSEP_COMMANDS_H */

View file

@ -468,6 +468,9 @@ static void wpa_driver_privsep_receive(int sock, void *eloop_ctx,
case PRIVSEP_EVENT_SCAN_RESULTS: case PRIVSEP_EVENT_SCAN_RESULTS:
wpa_supplicant_event(drv->ctx, EVENT_SCAN_RESULTS, NULL); wpa_supplicant_event(drv->ctx, EVENT_SCAN_RESULTS, NULL);
break; break;
case PRIVSEP_EVENT_SCAN_STARTED:
wpa_supplicant_event(drv->ctx, EVENT_SCAN_STARTED, NULL);
break;
case PRIVSEP_EVENT_ASSOC: case PRIVSEP_EVENT_ASSOC:
wpa_driver_privsep_event_assoc(drv->ctx, EVENT_ASSOC, wpa_driver_privsep_event_assoc(drv->ctx, EVENT_ASSOC,
event_buf, event_len); event_buf, event_len);

View file

@ -879,6 +879,10 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
&data->michael_mic_failure.unicast, &data->michael_mic_failure.unicast,
sizeof(int)); sizeof(int));
break; break;
case EVENT_SCAN_STARTED:
wpa_priv_send_event(iface, PRIVSEP_EVENT_SCAN_STARTED, NULL,
0);
break;
case EVENT_SCAN_RESULTS: case EVENT_SCAN_RESULTS:
wpa_priv_send_event(iface, PRIVSEP_EVENT_SCAN_RESULTS, NULL, wpa_priv_send_event(iface, PRIVSEP_EVENT_SCAN_RESULTS, NULL,
0); 0);