mbo_ap.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * MBO related functions and structures
  3. * Copyright (c) 2016, Qualcomm Atheros, Inc.
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef MBO_AP_H
  9. #define MBO_AP_H
  10. struct hostapd_data;
  11. struct sta_info;
  12. struct ieee802_11_elems;
  13. #ifdef CONFIG_MBO
  14. void mbo_ap_check_sta_assoc(struct hostapd_data *hapd, struct sta_info *sta,
  15. struct ieee802_11_elems *elems);
  16. int mbo_ap_get_info(struct sta_info *sta, char *buf, size_t buflen);
  17. void mbo_ap_wnm_notification_req(struct hostapd_data *hapd, const u8 *addr,
  18. const u8 *buf, size_t len);
  19. void mbo_ap_sta_free(struct sta_info *sta);
  20. #else /* CONFIG_MBO */
  21. static inline void mbo_ap_check_sta_assoc(struct hostapd_data *hapd,
  22. struct sta_info *sta,
  23. struct ieee802_11_elems *elems)
  24. {
  25. }
  26. static inline int mbo_ap_get_info(struct sta_info *sta, char *buf,
  27. size_t buflen)
  28. {
  29. return 0;
  30. }
  31. static inline void mbo_ap_wnm_notification_req(struct hostapd_data *hapd,
  32. const u8 *addr,
  33. const u8 *buf, size_t len)
  34. {
  35. }
  36. static inline void mbo_ap_sta_free(struct sta_info *sta)
  37. {
  38. }
  39. #endif /* CONFIG_MBO */
  40. #endif /* MBO_AP_H */