wps_hostapd.h
Go to the documentation of this file.
00001 /*
00002  * hostapd / WPS integration
00003  * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
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 /* CONFIG_WPS */
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 /* CONFIG_WPS */
00056 
00057 #endif /* WPS_HOSTAPD_H */


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:25:15