2013-11-27 20:23:24 +00:00
|
|
|
/*
|
|
|
|
* hostapd / UNIX domain socket -based control interface
|
|
|
|
* Copyright (c) 2004, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2021-10-29 01:06:41 +00:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2013-11-27 20:23:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CTRL_IFACE_H
|
|
|
|
#define CTRL_IFACE_H
|
|
|
|
|
|
|
|
#ifndef CONFIG_NO_CTRL_IFACE
|
|
|
|
int hostapd_ctrl_iface_init(struct hostapd_data *hapd);
|
|
|
|
void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd);
|
2021-10-29 01:06:41 +00:00
|
|
|
int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface);
|
|
|
|
void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface);
|
2013-11-27 20:23:24 +00:00
|
|
|
#else /* CONFIG_NO_CTRL_IFACE */
|
|
|
|
static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd)
|
|
|
|
{
|
|
|
|
}
|
2021-10-29 01:06:41 +00:00
|
|
|
|
|
|
|
static inline int
|
|
|
|
hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface)
|
|
|
|
{
|
|
|
|
}
|
2013-11-27 20:23:24 +00:00
|
|
|
#endif /* CONFIG_NO_CTRL_IFACE */
|
|
|
|
|
|
|
|
#endif /* CTRL_IFACE_H */
|