ANDROID: add SCAN_STARTED and SCAN_RESULTS events...
... to mainline supplicant event allowlist.
Bug: 365585450
Test: Ran vendor supplicant and mainline supplicant at the same time,
connected to wifi network, no constant connection drops.
Test: Connected wpa_cli to mainline supplicant, was able to see scan
events.
Change-Id: Ic797c9dc6cb82820f794060900f87fade0ba9b0a
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index d5dfec9..3e6f88d 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -6254,7 +6254,9 @@
#ifdef MAINLINE_SUPPLICANT
static bool is_event_allowlisted(enum wpa_event_type event) {
- return event == EVENT_RX_MGMT ||
+ return event == EVENT_SCAN_STARTED ||
+ event == EVENT_SCAN_RESULTS ||
+ event == EVENT_RX_MGMT ||
event == EVENT_REMAIN_ON_CHANNEL ||
event == EVENT_CANCEL_REMAIN_ON_CHANNEL ||
event == EVENT_TX_WAIT_EXPIRE;