2008-11-23 18:34:26 +01:00
|
|
|
/*
|
|
|
|
* hostapd / WPS integration
|
|
|
|
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WPS_HOSTAPD_H
|
|
|
|
#define WPS_HOSTAPD_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_WPS
|
|
|
|
|
|
|
|
int hostapd_init_wps(struct hostapd_data *hapd,
|
|
|
|
struct hostapd_bss_config *conf);
|
|
|
|
void hostapd_deinit_wps(struct hostapd_data *hapd);
|
|
|
|
int hostapd_wps_add_pin(struct hostapd_data *hapd, const char *uuid,
|
2009-05-26 16:44:44 +02:00
|
|
|
const char *pin, int timeout);
|
2008-11-23 18:34:26 +01:00
|
|
|
int hostapd_wps_button_pushed(struct hostapd_data *hapd);
|
2009-02-26 20:57:38 +01:00
|
|
|
int hostapd_wps_start_oob(struct hostapd_data *hapd, char *device_type,
|
2009-03-06 15:16:22 +01:00
|
|
|
char *path, char *method, char *name);
|
2008-11-23 18:34:26 +01:00
|
|
|
|
|
|
|
#else /* CONFIG_WPS */
|
|
|
|
|
|
|
|
static inline int hostapd_init_wps(struct hostapd_data *hapd,
|
|
|
|
struct hostapd_bss_config *conf)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void hostapd_deinit_wps(struct hostapd_data *hapd)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIG_WPS */
|
|
|
|
|
|
|
|
#endif /* WPS_HOSTAPD_H */
|