2 * wpa_supplicant / ubus support
3 * Copyright (c) 2018, Daniel Golle <daniel@makrotopia.org>
4 * Copyright (c) 2013, Felix Fietkau <nbd@nbd.name>
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
12 struct wpa_supplicant
;
15 #include "wps_supplicant.h"
20 struct wpas_ubus_bss
{
21 struct ubus_object obj
;
24 void wpas_ubus_add_bss(struct wpa_supplicant
*wpa_s
);
25 void wpas_ubus_free_bss(struct wpa_supplicant
*wpa_s
);
27 void wpas_ubus_add(struct wpa_global
*global
);
28 void wpas_ubus_free(struct wpa_global
*global
);
31 void wpas_ubus_notify(struct wpa_supplicant
*wpa_s
, const struct wps_credential
*cred
);
35 struct wpas_ubus_bss
{};
37 static inline void wpas_ubus_add_iface(struct wpa_supplicant
*wpa_s
)
41 static inline void wpas_ubus_free_iface(struct wpa_supplicant
*wpa_s
)
45 static inline void wpas_ubus_add_bss(struct wpa_supplicant
*wpa_s
)
49 static inline void wpas_ubus_free_bss(struct wpa_supplicant
*wpa_s
)
53 static inline void wpas_ubus_notify(struct wpa_supplicant
*wpa_s
, struct wps_credential
*cred
)
57 static inline void wpas_ubus_add(struct wpa_global
*global
)
61 static inline void wpas_ubus_free(struct wpa_global
*global
)