aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/ctrl_iface.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-12 19:44:57 (GMT)
committerJouni Malinen <j@w1.fi>2009-01-12 19:44:57 (GMT)
commit7fd46d466f1830a76679c94b6c1d0eab02f67e8d (patch)
treef953db5eef7562d50b2097630745f87a128fba51 /hostapd/ctrl_iface.h
parent30b32314eb16e49a0a13e4726ec1824ab44db8b3 (diff)
downloadhostap-7fd46d466f1830a76679c94b6c1d0eab02f67e8d.zip
hostap-7fd46d466f1830a76679c94b6c1d0eab02f67e8d.tar.gz
hostap-7fd46d466f1830a76679c94b6c1d0eab02f67e8d.tar.bz2
Added build option for disabling control interface (CONFIG_NO_CTRL_IFACE)
Diffstat (limited to 'hostapd/ctrl_iface.h')
-rw-r--r--hostapd/ctrl_iface.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/hostapd/ctrl_iface.h b/hostapd/ctrl_iface.h
index 2ac2f3b..4d9d663 100644
--- a/hostapd/ctrl_iface.h
+++ b/hostapd/ctrl_iface.h
@@ -15,9 +15,25 @@
#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);
void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level,
char *buf, size_t len);
+#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)
+{
+}
+
+static inline void hostapd_ctrl_iface_send(struct hostapd_data *hapd,
+ int level, char *buf, size_t len)
+{
+}
+#endif /* CONFIG_NO_CTRL_IFACE */
#endif /* CTRL_IFACE_H */