12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef AP_LIST_H
- #define AP_LIST_H
- struct ap_info {
-
- struct ap_info *next;
- struct ap_info *prev;
- struct ap_info *hnext;
- struct ap_info *iter_next;
- struct ap_info *iter_prev;
- u8 addr[6];
- u16 beacon_int;
- u16 capability;
- u8 supported_rates[WLAN_SUPP_RATES_MAX];
- u8 ssid[33];
- size_t ssid_len;
- int wpa;
- int erp;
- int phytype;
- int channel;
- int datarate;
- int ssi_signal;
- int ht_support;
- unsigned int num_beacons;
- time_t last_beacon;
- int already_seen;
- };
- struct ieee802_11_elems;
- struct hostapd_frame_info;
- struct ap_info * ap_get_ap(struct hostapd_iface *iface, u8 *sta);
- int ap_ap_for_each(struct hostapd_iface *iface,
- int (*func)(struct ap_info *s, void *data), void *data);
- void ap_list_process_beacon(struct hostapd_iface *iface,
- struct ieee80211_mgmt *mgmt,
- struct ieee802_11_elems *elems,
- struct hostapd_frame_info *fi);
- #ifdef NEED_AP_MLME
- int ap_list_init(struct hostapd_iface *iface);
- void ap_list_deinit(struct hostapd_iface *iface);
- #else
- static inline int ap_list_init(struct hostapd_iface *iface)
- {
- return 0;
- }
- static inline void ap_list_deinit(struct hostapd_iface *iface)
- {
- }
- #endif
- int ap_list_reconfig(struct hostapd_iface *iface,
- struct hostapd_config *oldconf);
- #endif
|