ap_list.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * hostapd / AP table
  3. * Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi>
  4. * Copyright (c) 2003-2004, Instant802 Networks, Inc.
  5. * Copyright (c) 2006, Devicescape Software, Inc.
  6. *
  7. * This software may be distributed under the terms of the BSD license.
  8. * See README for more details.
  9. */
  10. #ifndef AP_LIST_H
  11. #define AP_LIST_H
  12. struct ap_info {
  13. /* Note: next/prev pointers are updated whenever a new beacon is
  14. * received because these are used to find the least recently used
  15. * entries. */
  16. struct ap_info *next; /* next entry in AP list */
  17. struct ap_info *prev; /* previous entry in AP list */
  18. struct ap_info *hnext; /* next entry in hash table list */
  19. u8 addr[6];
  20. u8 supported_rates[WLAN_SUPP_RATES_MAX];
  21. int erp; /* ERP Info or -1 if ERP info element not present */
  22. int channel;
  23. int ht_support;
  24. struct os_reltime last_beacon;
  25. };
  26. struct ieee802_11_elems;
  27. struct hostapd_frame_info;
  28. void ap_list_process_beacon(struct hostapd_iface *iface,
  29. const struct ieee80211_mgmt *mgmt,
  30. struct ieee802_11_elems *elems,
  31. struct hostapd_frame_info *fi);
  32. #ifdef NEED_AP_MLME
  33. int ap_list_init(struct hostapd_iface *iface);
  34. void ap_list_deinit(struct hostapd_iface *iface);
  35. #else /* NEED_AP_MLME */
  36. static inline int ap_list_init(struct hostapd_iface *iface)
  37. {
  38. return 0;
  39. }
  40. static inline void ap_list_deinit(struct hostapd_iface *iface)
  41. {
  42. }
  43. #endif /* NEED_AP_MLME */
  44. #endif /* AP_LIST_H */