1 /* 2 * hostapd / UNIX domain socket -based control interface 3 * Copyright (c) 2004, Jouni Malinen <j@w1.fi> 4 * 5 * This software may be distributed under the terms of the BSD license. 6 * See README for more details. 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); 15 int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface); 16 void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface); 17 int hostapd_mld_ctrl_iface_init(struct hostapd_mld *mld); 18 void hostapd_mld_ctrl_iface_deinit(struct hostapd_mld *mld); 19 #else /* CONFIG_NO_CTRL_IFACE */ hostapd_ctrl_iface_init(struct hostapd_data * hapd)20static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd) 21 { 22 return 0; 23 } 24 hostapd_ctrl_iface_deinit(struct hostapd_data * hapd)25static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd) 26 { 27 } 28 29 static inline int hostapd_global_ctrl_iface_init(struct hapd_interfaces * interface)30hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface) 31 { 32 return 0; 33 } 34 35 static inline void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces * interface)36hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface) 37 { 38 } 39 #endif /* CONFIG_NO_CTRL_IFACE */ 40 41 #endif /* CTRL_IFACE_H */ 42