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 #ifdef __ZEPHYR__ 18 int hostapd_ctrl_iface_receive_process(struct hostapd_data *hapd, 19 char *buf, char *reply, 20 int reply_size, 21 struct sockaddr_storage *from, 22 socklen_t fromlen); 23 #endif 24 #else /* CONFIG_NO_CTRL_IFACE */ hostapd_ctrl_iface_init(struct hostapd_data * hapd)25static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd) 26 { 27 return 0; 28 } 29 hostapd_ctrl_iface_deinit(struct hostapd_data * hapd)30static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd) 31 { 32 } 33 34 static inline int hostapd_global_ctrl_iface_init(struct hapd_interfaces * interface)35hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface) 36 { 37 return 0; 38 } 39 40 static inline void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces * interface)41hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface) 42 { 43 } 44 #endif /* CONFIG_NO_CTRL_IFACE */ 45 46 #endif /* CTRL_IFACE_H */ 47