mesh.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifdef CONFIG_MESH
  16. void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
  17. const u8 *ies, size_t ie_len);
  18. void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
  19. struct wpabuf **extra_ie);
  20. #else /* CONFIG_MESH */
  21. static inline void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s,
  22. const u8 *addr,
  23. const u8 *ies, size_t ie_len)
  24. {
  25. }
  26. static inline void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
  27. struct wpabuf **extra_ie)
  28. {
  29. }
  30. #endif /* CONFIG_MESH */
  31. #endif /* MESH_H */