Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef WPS_HOSTAPD_H
00016 #define WPS_HOSTAPD_H
00017
00018 #ifdef CONFIG_WPS
00019
00020 int hostapd_init_wps(struct hostapd_data *hapd,
00021 struct hostapd_bss_config *conf);
00022 void hostapd_deinit_wps(struct hostapd_data *hapd);
00023 int hostapd_wps_add_pin(struct hostapd_data *hapd, const char *uuid,
00024 const char *pin, int timeout);
00025 int hostapd_wps_button_pushed(struct hostapd_data *hapd);
00026 int hostapd_wps_start_oob(struct hostapd_data *hapd, char *device_type,
00027 char *path, char *method, char *name);
00028 int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
00029 char *buf, size_t buflen);
00030
00031 #else
00032
00033 static inline int hostapd_init_wps(struct hostapd_data *hapd,
00034 struct hostapd_bss_config *conf)
00035 {
00036 return 0;
00037 }
00038
00039 static inline void hostapd_deinit_wps(struct hostapd_data *hapd)
00040 {
00041 }
00042
00043 static inline int hostapd_wps_get_mib_sta(struct hostapd_data *hapd,
00044 const u8 *addr,
00045 char *buf, size_t buflen)
00046 {
00047 return 0;
00048 }
00049
00050 static inline int hostapd_wps_button_pushed(struct hostapd_data *hapd)
00051 {
00052 return 0;
00053 }
00054
00055 #endif
00056
00057 #endif