Browse Source

wpa_priv: Add support for EVENT_SCAN_STARTED

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen 9 years ago
parent
commit
06f52b12f9
3 changed files with 8 additions and 0 deletions
  1. 1 0
      src/common/privsep_commands.h
  2. 3 0
      src/drivers/driver_privsep.c
  3. 4 0
      wpa_supplicant/wpa_priv.c

+ 1 - 0
src/common/privsep_commands.h

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

+ 3 - 0
src/drivers/driver_privsep.c

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

+ 4 - 0
wpa_supplicant/wpa_priv.c

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