hostapd: bump to 2024-03-09
[openwrt/staging/xback.git] / package / network / services / hostapd / src / src / ap / ubus.h
index 5a33b624d0873803efd9111c55d387bd4b83c930..22767d67ee7564ba023ad4be22ee88d46f8e68c8 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __HOSTAPD_UBUS_H
 #define __HOSTAPD_UBUS_H
 
+#include "sta_info.h"
+
 enum hostapd_ubus_event_type {
        HOSTAPD_UBUS_PROBE_REQ,
        HOSTAPD_UBUS_AUTH_REQ,
@@ -27,6 +29,7 @@ struct hostapd_iface;
 struct hostapd_data;
 struct hapd_interfaces;
 struct rrm_measurement_beacon_report;
+struct sta_info;
 
 #ifdef UBUS_SUPPORT
 
@@ -65,6 +68,8 @@ void hostapd_ubus_free(struct hapd_interfaces *interfaces);
 int hostapd_ubus_notify_bss_transition_query(
        struct hostapd_data *hapd, const u8 *addr, u8 dialog_token, u8 reason,
        const u8 *candidate_list, u16 candidate_list_len);
+void hostapd_ubus_notify_authorized(struct hostapd_data *hapd, struct sta_info *sta,
+                                   const char *auth_alg);
 
 #else
 
@@ -140,6 +145,13 @@ static inline int hostapd_ubus_notify_bss_transition_query(
 {
        return 0;
 }
+
+static inline void
+hostapd_ubus_notify_authorized(struct hostapd_data *hapd, struct sta_info *sta,
+                              const char *auth_alg)
+{
+}
+
 #endif
 
 #endif