OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* |
2 | * wpa_supplicant / ubus support |
||
3 | * Copyright (c) 2018, Daniel Golle <daniel@makrotopia.org> |
||
4 | * Copyright (c) 2013, Felix Fietkau <nbd@nbd.name> |
||
5 | * |
||
6 | * This software may be distributed under the terms of the BSD license. |
||
7 | * See README for more details. |
||
8 | */ |
||
9 | #ifndef __WPAS_UBUS_H |
||
10 | #define __WPAS_UBUS_H |
||
11 | |||
12 | struct wpa_supplicant; |
||
13 | #include "wps_supplicant.h" |
||
14 | |||
15 | #ifdef UBUS_SUPPORT |
||
16 | #include <libubus.h> |
||
17 | |||
18 | struct wpas_ubus_bss { |
||
19 | struct ubus_object obj; |
||
20 | }; |
||
21 | |||
22 | void wpas_ubus_add_bss(struct wpa_supplicant *wpa_s); |
||
23 | void wpas_ubus_free_bss(struct wpa_supplicant *wpa_s); |
||
24 | |||
25 | #ifdef CONFIG_WPS |
||
26 | void wpas_ubus_notify(struct wpa_supplicant *wpa_s, const struct wps_credential *cred); |
||
27 | #endif |
||
28 | |||
29 | #else |
||
30 | struct wpas_ubus_bss {}; |
||
31 | |||
32 | static inline void wpas_ubus_add_iface(struct wpa_supplicant *wpa_s) |
||
33 | { |
||
34 | } |
||
35 | |||
36 | static inline void wpas_ubus_free_iface(struct wpa_supplicant *wpa_s) |
||
37 | { |
||
38 | } |
||
39 | |||
40 | static inline void wpas_ubus_add_bss(struct wpa_supplicant *wpa_s) |
||
41 | { |
||
42 | } |
||
43 | |||
44 | static inline void wpas_ubus_free_bss(struct wpa_supplicant *wpa_s) |
||
45 | { |
||
46 | } |
||
47 | |||
48 | static inline void wpas_ubus_notify(struct wpa_supplicant *wpa_s, struct wps_credential *cred) |
||
49 | { |
||
50 | } |
||
51 | #endif |
||
52 | |||
53 | #endif |