p2p_hostapd.h 888 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * hostapd / P2P integration
  3. * Copyright (c) 2009-2010, Atheros Communications
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef P2P_HOSTAPD_H
  9. #define P2P_HOSTAPD_H
  10. #ifdef CONFIG_P2P
  11. int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
  12. char *buf, size_t buflen);
  13. int hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start,
  14. int duration);
  15. void hostapd_p2p_non_p2p_sta_connected(struct hostapd_data *hapd);
  16. void hostapd_p2p_non_p2p_sta_disconnected(struct hostapd_data *hapd);
  17. #else /* CONFIG_P2P */
  18. static inline int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd,
  19. struct sta_info *sta,
  20. char *buf, size_t buflen)
  21. {
  22. return 0;
  23. }
  24. #endif /* CONFIG_P2P */
  25. u8 * hostapd_eid_p2p_manage(struct hostapd_data *hapd, u8 *eid);
  26. #endif /* P2P_HOSTAPD_H */