mbo_ap.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #else /* CONFIG_MBO */
  20. static inline void mbo_ap_check_sta_assoc(struct hostapd_data *hapd,
  21. struct sta_info *sta,
  22. struct ieee802_11_elems *elems)
  23. {
  24. }
  25. static inline int mbo_ap_get_info(struct sta_info *sta, char *buf,
  26. size_t buflen)
  27. {
  28. return 0;
  29. }
  30. static inline void mbo_ap_wnm_notification_req(struct hostapd_data *hapd,
  31. const u8 *addr,
  32. const u8 *buf, size_t len)
  33. {
  34. }
  35. #endif /* CONFIG_MBO */
  36. #endif /* MBO_AP_H */