Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1 | /* |
| 2 | * hostapd / UNIX domain socket -based control interface |
| 3 | * Copyright (c) 2004, Jouni Malinen <j@w1.fi> |
| 4 | * |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 5 | * This software may be distributed under the terms of the BSD license. |
| 6 | * See README for more details. |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef CTRL_IFACE_H |
| 10 | #define CTRL_IFACE_H |
| 11 | |
| 12 | #ifndef CONFIG_NO_CTRL_IFACE |
| 13 | int hostapd_ctrl_iface_init(struct hostapd_data *hapd); |
| 14 | void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd); |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 15 | int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface); |
| 16 | void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface); |
Sunil Ravi | c0f5d41 | 2024-09-11 22:12:49 +0000 | [diff] [blame] | 17 | int hostapd_mld_ctrl_iface_init(struct hostapd_mld *mld); |
| 18 | void hostapd_mld_ctrl_iface_deinit(struct hostapd_mld *mld); |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 19 | #else /* CONFIG_NO_CTRL_IFACE */ |
| 20 | static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd) |
| 21 | { |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd) |
| 26 | { |
| 27 | } |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 28 | |
| 29 | static inline int |
| 30 | hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface) |
| 31 | { |
| 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | static inline void |
| 36 | hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface) |
| 37 | { |
| 38 | } |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 39 | #endif /* CONFIG_NO_CTRL_IFACE */ |
| 40 | |
| 41 | #endif /* CTRL_IFACE_H */ |