wpa_supplicant: Add notifications for ANQP/HS20 events
These events are exposed as callbacks in the HIDL control interface.
So, hookup these notifications from wpa_supplicant core to notify.c.
Will add the HIDL interface changes in a separate CL.
Bug: 31116047
Test: Compiles
Change-Id: Id58198d98546ec9451a5abf0c71da0ac254e77b6
diff --git a/wpa_supplicant/notify.h b/wpa_supplicant/notify.h
index e4d7fbf..2590e9a 100644
--- a/wpa_supplicant/notify.h
+++ b/wpa_supplicant/notify.h
@@ -10,6 +10,7 @@
#define NOTIFY_H
#include "p2p/p2p.h"
+#include "bss.h"
struct wps_credential;
struct wps_event_m2d;
@@ -141,5 +142,16 @@
void wpas_notify_p2p_invitation_received(struct wpa_supplicant *wpa_s,
const u8 *sa, const u8 *go_dev_addr,
const u8 *bssid, int id, int op_freq);
-
+void wpas_notify_anqp_query_done(struct wpa_supplicant *wpa_s, const u8* bssid,
+ const char* result,
+ const struct wpa_bss_anqp *anqp);
+void wpas_notify_hs20_icon_query_done(struct wpa_supplicant *wpa_s, const u8* bssid,
+ const char* file_name, const u8* image,
+ u32 image_length);
+void wpas_notify_hs20_rx_subscription_remediation(struct wpa_supplicant *wpa_s,
+ const char* url,
+ u8 osu_method);
+void wpas_notify_hs20_rx_deauth_imminent_notice(struct wpa_supplicant *wpa_s,
+ u8 code, u16 reauth_delay,
+ const char *url);
#endif /* NOTIFY_H */