wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
wpa_helpers.h
Go to the documentation of this file.
1 
6 #ifndef WPA_HELPERS_H
7 #define WPA_HELPERS_H
8 
9 int wpa_command(const char *ifname, const char *cmd);
10 int wpa_command_resp(const char *ifname, const char *cmd,
11  char *resp, size_t resp_size);
12 int get_wpa_status(const char *ifname, const char *field, char *obuf,
13  size_t obuf_size);
14 
15 struct wpa_ctrl * open_wpa_mon(const char *ifname);
16 int wait_ip_addr(const char *ifname, int timeout);
17 int get_wpa_cli_event(struct wpa_ctrl *mon,
18  const char *event, char *buf, size_t buf_size);
19 int get_wpa_cli_event2(struct wpa_ctrl *mon,
20  const char *event, const char *event2,
21  char *buf, size_t buf_size);
22 
23 int add_network(const char *ifname);
24 int set_network(const char *ifname, int id, const char *field,
25  const char *value);
26 int set_network_quoted(const char *ifname, int id, const char *field,
27  const char *value);
28 int add_cred(const char *ifname);
29 int set_cred(const char *ifname, int id, const char *field, const char *value);
30 int set_cred_quoted(const char *ifname, int id, const char *field,
31  const char *value);
32 
33 #endif /* WPA_HELPERS_H */
Internal structure for control interface library.
Definition: wpa_ctrl.c:48