Add option libbfd support for tracing code
[libeap.git] / hostapd / wps_hostapd.h
1 /*
2  * hostapd / WPS integration
3  * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14
15 #ifndef WPS_HOSTAPD_H
16 #define WPS_HOSTAPD_H
17
18 #ifdef CONFIG_WPS
19
20 int hostapd_init_wps(struct hostapd_data *hapd,
21                      struct hostapd_bss_config *conf);
22 void hostapd_deinit_wps(struct hostapd_data *hapd);
23 int hostapd_wps_add_pin(struct hostapd_data *hapd, const char *uuid,
24                         const char *pin, int timeout);
25 int hostapd_wps_button_pushed(struct hostapd_data *hapd);
26 int hostapd_wps_start_oob(struct hostapd_data *hapd, char *device_type,
27                           char *path, char *method, char *name);
28 int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
29                             char *buf, size_t buflen);
30
31 #else /* CONFIG_WPS */
32
33 static inline int hostapd_init_wps(struct hostapd_data *hapd,
34                                    struct hostapd_bss_config *conf)
35 {
36         return 0;
37 }
38
39 static inline void hostapd_deinit_wps(struct hostapd_data *hapd)
40 {
41 }
42
43 static inline int hostapd_wps_get_mib_sta(struct hostapd_data *hapd,
44                                           const u8 *addr,
45                                           char *buf, size_t buflen)
46 {
47         return 0;
48 }
49
50 static inline int hostapd_wps_button_pushed(struct hostapd_data *hapd)
51 {
52         return 0;
53 }
54
55 #endif /* CONFIG_WPS */
56
57 #endif /* WPS_HOSTAPD_H */