2 * WPA Supplicant / UNIX domain socket -based control interface
3 * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
18 #ifdef CONFIG_CTRL_IFACE
20 int wpa_supplicant_ctrl_iface_init(struct wpa_supplicant
*wpa_s
);
21 void wpa_supplicant_ctrl_iface_deinit(struct wpa_supplicant
*wpa_s
);
22 void wpa_supplicant_ctrl_iface_send(struct wpa_supplicant
*wpa_s
, int level
,
23 char *buf
, size_t len
);
24 void wpa_supplicant_ctrl_iface_wait(struct wpa_supplicant
*wpa_s
);
25 int wpa_supplicant_global_ctrl_iface_init(struct wpa_global
*global
);
26 void wpa_supplicant_global_ctrl_iface_deinit(struct wpa_global
*global
);
28 #else /* CONFIG_CTRL_IFACE */
30 static inline int wpa_supplicant_ctrl_iface_init(struct wpa_supplicant
*wpa_s
)
36 wpa_supplicant_ctrl_iface_deinit(struct wpa_supplicant
*wpa_s
)
41 wpa_supplicant_ctrl_iface_send(struct wpa_supplicant
*wpa_s
, int level
,
42 char *buf
, size_t len
)
47 wpa_supplicant_ctrl_iface_wait(struct wpa_supplicant
*wpa_s
)
52 wpa_supplicant_global_ctrl_iface_init(struct wpa_global
*global
)
58 wpa_supplicant_global_ctrl_iface_deinit(struct wpa_global
*global
)
62 #endif /* CONFIG_CTRL_IFACE */
64 #endif /* CTRL_IFACE_H */