mesh.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * WPA Supplicant - Basic mesh mode routines
  3. * Copyright (c) 2013-2014, cozybit, Inc. All rights reserved.
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef MESH_H
  9. #define MESH_H
  10. int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
  11. struct wpa_ssid *ssid);
  12. int wpa_supplicant_leave_mesh(struct wpa_supplicant *wpa_s);
  13. void wpa_supplicant_mesh_iface_deinit(struct wpa_supplicant *wpa_s,
  14. struct hostapd_iface *ifmsh);
  15. int wpas_mesh_scan_result_text(const u8 *ies, size_t ies_len, char *buf,
  16. char *end);
  17. int wpas_mesh_add_interface(struct wpa_supplicant *wpa_s, char *ifname,
  18. size_t len);
  19. #ifdef CONFIG_MESH
  20. void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
  21. const u8 *ies, size_t ie_len);
  22. void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
  23. struct wpabuf **extra_ie);
  24. #else /* CONFIG_MESH */
  25. static inline void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s,
  26. const u8 *addr,
  27. const u8 *ies, size_t ie_len)
  28. {
  29. }
  30. static inline void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
  31. struct wpabuf **extra_ie)
  32. {
  33. }
  34. #endif /* CONFIG_MESH */
  35. #endif /* MESH_H */