wpa_helpers.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * wpa_supplicant ctrl_iface helpers
  3. * Copyright (c) 2010-2011, Atheros Communications, Inc.
  4. * Copyright (c) 2011-2012, Qualcomm Atheros, Inc.
  5. *
  6. * This software may be distributed under the terms of the BSD license.
  7. * See README for more details.
  8. */
  9. #ifndef WPA_HELPERS_H
  10. #define WPA_HELPERS_H
  11. int wpa_command(const char *ifname, const char *cmd);
  12. int wpa_command_resp(const char *ifname, const char *cmd,
  13. char *resp, size_t resp_size);
  14. int get_wpa_status(const char *ifname, const char *field, char *obuf,
  15. size_t obuf_size);
  16. struct wpa_ctrl * open_wpa_mon(const char *ifname);
  17. int wait_ip_addr(const char *ifname, int timeout);
  18. int get_wpa_cli_event(struct wpa_ctrl *mon,
  19. const char *event, char *buf, size_t buf_size);
  20. int get_wpa_cli_event2(struct wpa_ctrl *mon,
  21. const char *event, const char *event2,
  22. char *buf, size_t buf_size);
  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. #endif /* WPA_HELPERS_H */