]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/ap/hostapd.h
FT: Replace inter-AP protocol with use of OUI Extended Ethertype
[thirdparty/hostap.git] / src / ap / hostapd.h
CommitLineData
6fc6879b
JM
1/*
2 * hostapd / Initialization and configuration
d3bddd8b 3 * Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi>
6fc6879b 4 *
0f3d578e
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
6fc6879b
JM
7 */
8
9#ifndef HOSTAPD_H
10#define HOSTAPD_H
11
45cefa0b 12#include "common/defs.h"
d3bddd8b 13#include "utils/list.h"
ee431d77 14#include "ap_config.h"
13daed58 15#include "drivers/driver.h"
45cefa0b 16
6fc6879b
JM
17struct wpa_ctrl_dst;
18struct radius_server_data;
f620268f 19struct upnp_wps_device_sm;
bf65bc63 20struct hostapd_data;
45cefa0b 21struct sta_info;
2ce86d9d 22struct ieee80211_ht_capabilities;
6fc6879b 23struct full_dynamic_vlan;
a0dee797
AGS
24enum wps_event;
25union wps_event_data;
8319e312
TP
26#ifdef CONFIG_MESH
27struct mesh_conf;
28#endif /* CONFIG_MESH */
6fc6879b 29
3776ac73
JM
30struct hostapd_iface;
31
07bcdbb1 32struct hapd_interfaces {
3776ac73
JM
33 int (*reload_config)(struct hostapd_iface *iface);
34 struct hostapd_config * (*config_read_cb)(const char *config_fname);
35 int (*ctrl_iface_init)(struct hostapd_data *hapd);
36 void (*ctrl_iface_deinit)(struct hostapd_data *hapd);
37 int (*for_each_interface)(struct hapd_interfaces *interfaces,
38 int (*cb)(struct hostapd_iface *iface,
39 void *ctx), void *ctx);
75545652 40 int (*driver_init)(struct hostapd_iface *iface);
3776ac73 41
07bcdbb1 42 size_t count;
c90fd485 43 int global_ctrl_sock;
89b781bc 44 struct dl_list global_ctrl_dst;
c90fd485
SP
45 char *global_iface_path;
46 char *global_iface_name;
461e3ebe 47#ifndef CONFIG_NATIVE_WINDOWS
187f87f0 48 gid_t ctrl_iface_group;
461e3ebe 49#endif /* CONFIG_NATIVE_WINDOWS */
07bcdbb1 50 struct hostapd_iface **iface;
2b6623ab
JM
51
52 size_t terminate_on_error;
132dfbe8
MB
53#ifndef CONFIG_NO_VLAN
54 struct dynamic_iface *vlan_priv;
55#endif /* CONFIG_NO_VLAN */
50bd8e0a
MB
56#ifdef CONFIG_ETH_P_OUI
57 struct dl_list eth_p_oui; /* OUI Extended EtherType handlers */
58#endif /* CONFIG_ETH_P_OUI */
cc27c8e6 59 int eloop_initialized;
07bcdbb1
JM
60};
61
245e026e
MK
62enum hostapd_chan_status {
63 HOSTAPD_CHAN_VALID = 0, /* channel is ready */
64 HOSTAPD_CHAN_INVALID = 1, /* no usable channel found */
65 HOSTAPD_CHAN_ACS = 2, /* ACS work being performed */
66};
07bcdbb1 67
fa16028d 68struct hostapd_probereq_cb {
04a85e44 69 int (*cb)(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid,
baf513d6 70 const u8 *ie, size_t ie_len, int ssi_signal);
fa16028d
JM
71 void *ctx;
72};
73
fb7842aa
JM
74#define HOSTAPD_RATE_BASIC 0x00000001
75
76struct hostapd_rate_data {
77 int rate; /* rate in 100 kbps */
78 int flags; /* HOSTAPD_RATE_ flags */
79};
80
2a8b7416
JM
81struct hostapd_frame_info {
82 u32 channel;
83 u32 datarate;
baf513d6 84 int ssi_signal; /* dBm */
2a8b7416
JM
85};
86
61b6520e
JM
87enum wps_status {
88 WPS_STATUS_SUCCESS = 1,
89 WPS_STATUS_FAILURE
90};
91
ae23935e
JM
92enum pbc_status {
93 WPS_PBC_STATUS_DISABLE,
94 WPS_PBC_STATUS_ACTIVE,
95 WPS_PBC_STATUS_TIMEOUT,
96 WPS_PBC_STATUS_OVERLAP
97};
98
61b6520e
JM
99struct wps_stat {
100 enum wps_status status;
101 enum wps_error_indication failure_reason;
ae23935e 102 enum pbc_status pbc_status;
e96872a4 103 u8 peer_addr[ETH_ALEN];
61b6520e
JM
104};
105
9b4b2264
DS
106struct hostapd_neighbor_entry {
107 struct dl_list list;
108 u8 bssid[ETH_ALEN];
109 struct wpa_ssid_value ssid;
110 struct wpabuf *nr;
111 struct wpabuf *lci;
112 struct wpabuf *civic;
113 /* LCI update time */
114 struct os_time lci_date;
451a27b1 115 int stationary;
9b4b2264 116};
fb7842aa 117
6fc6879b
JM
118/**
119 * struct hostapd_data - hostapd per-BSS data structure
120 */
121struct hostapd_data {
122 struct hostapd_iface *iface;
123 struct hostapd_config *iconf;
124 struct hostapd_bss_config *conf;
6023a788 125 int interface_added; /* virtual interface added for this BSS */
36501a22 126 unsigned int started:1;
f33c8606
JM
127 unsigned int disabled:1;
128 unsigned int reenable_beacon:1;
6fc6879b
JM
129
130 u8 own_addr[ETH_ALEN];
131
132 int num_sta; /* number of entries in sta_list */
133 struct sta_info *sta_list; /* STA info list head */
2991469c
JM
134#define STA_HASH_SIZE 256
135#define STA_HASH(sta) (sta[5])
6fc6879b
JM
136 struct sta_info *sta_hash[STA_HASH_SIZE];
137
2991469c
JM
138 /*
139 * Bitfield for indicating which AIDs are allocated. Only AID values
140 * 1-2007 are used and as such, the bit at index 0 corresponds to AID
141 * 1.
6fc6879b 142 */
2991469c
JM
143#define AID_WORDS ((2008 + 31) / 32)
144 u32 sta_aid[AID_WORDS];
6fc6879b 145
c5121837 146 const struct wpa_driver_ops *driver;
6fc6879b
JM
147 void *drv_priv;
148
d24df7c3
JM
149 void (*new_assoc_sta_cb)(struct hostapd_data *hapd,
150 struct sta_info *sta, int reassoc);
151
4f760fcc 152 void *msg_ctx; /* ctx for wpa_msg() calls */
8a5e75f6 153 void *msg_ctx_parent; /* parent interface ctx for wpa_msg() calls */
4f760fcc 154
6fc6879b 155 struct radius_client_data *radius;
4260e1a1 156 u64 acct_session_id;
b031338c 157 struct radius_das_data *radius_das;
6fc6879b
JM
158
159 struct iapp_data *iapp;
160
6fc6879b
JM
161 struct hostapd_cached_radius_acl *acl_cache;
162 struct hostapd_acl_query_data *acl_queries;
163
164 struct wpa_authenticator *wpa_auth;
165 struct eapol_authenticator *eapol_auth;
166
167 struct rsn_preauth_interface *preauth_iface;
7ffe7d22 168 struct os_reltime michael_mic_failure;
6fc6879b
JM
169 int michael_mic_failures;
170 int tkip_countermeasures;
171
172 int ctrl_sock;
89b781bc 173 struct dl_list ctrl_dst;
6fc6879b
JM
174
175 void *ssl_ctx;
176 void *eap_sim_db_priv;
177 struct radius_server_data *radius_srv;
d3bddd8b 178 struct dl_list erp_keys; /* struct eap_server_erp_key */
6fc6879b
JM
179
180 int parameter_set_count;
181
39b97072
JM
182 /* Time Advertisement */
183 u8 time_update_counter;
184 struct wpabuf *time_adv;
185
6fc6879b
JM
186#ifdef CONFIG_FULL_DYNAMIC_VLAN
187 struct full_dynamic_vlan *full_dynamic_vlan;
188#endif /* CONFIG_FULL_DYNAMIC_VLAN */
189
190 struct l2_packet_data *l2;
c5fee160
MB
191
192#ifdef CONFIG_IEEE80211R_AP
193 struct dl_list l2_queue;
50bd8e0a
MB
194 struct dl_list l2_oui_queue;
195 struct eth_p_oui_ctx *oui_pull;
196 struct eth_p_oui_ctx *oui_resp;
197 struct eth_p_oui_ctx *oui_push;
c5fee160
MB
198#endif /* CONFIG_IEEE80211R_AP */
199
ad08c363
JM
200 struct wps_context *wps;
201
bc45d427 202 int beacon_set_done;
14f79386
JM
203 struct wpabuf *wps_beacon_ie;
204 struct wpabuf *wps_probe_resp_ie;
84312359 205#ifdef CONFIG_WPS
3b2cf800 206 unsigned int ap_pin_failures;
32cdcf15 207 unsigned int ap_pin_failures_consecutive;
f620268f 208 struct upnp_wps_device_sm *wps_upnp;
94481410 209 unsigned int ap_pin_lockout_time;
61b6520e
JM
210
211 struct wps_stat wps_stats;
ad08c363 212#endif /* CONFIG_WPS */
fa16028d
JM
213
214 struct hostapd_probereq_cb *probereq_cb;
215 size_t num_probereq_cb;
195420b8 216
c706d5aa
JM
217 void (*public_action_cb)(void *ctx, const u8 *buf, size_t len,
218 int freq);
219 void *public_action_cb_ctx;
2d9ffe1e
JM
220 void (*public_action_cb2)(void *ctx, const u8 *buf, size_t len,
221 int freq);
222 void *public_action_cb2_ctx;
c706d5aa 223
e44f8bf2
JM
224 int (*vendor_action_cb)(void *ctx, const u8 *buf, size_t len,
225 int freq);
226 void *vendor_action_cb_ctx;
227
195420b8
JM
228 void (*wps_reg_success_cb)(void *ctx, const u8 *mac_addr,
229 const u8 *uuid_e);
230 void *wps_reg_success_cb_ctx;
c2af2afb 231
a0dee797
AGS
232 void (*wps_event_cb)(void *ctx, enum wps_event event,
233 union wps_event_data *data);
234 void *wps_event_cb_ctx;
235
0661eed2 236 void (*sta_authorized_cb)(void *ctx, const u8 *mac_addr,
fbdcfd57 237 int authorized, const u8 *p2p_dev_addr);
0661eed2
JB
238 void *sta_authorized_cb_ctx;
239
c76e5d7f
JB
240 void (*setup_complete_cb)(void *ctx);
241 void *setup_complete_cb_ctx;
242
01a57fe4
JM
243 void (*new_psk_cb)(void *ctx, const u8 *mac_addr,
244 const u8 *p2p_dev_addr, const u8 *psk,
245 size_t psk_len);
246 void *new_psk_cb_ctx;
247
6782b684
MK
248 /* channel switch parameters */
249 struct hostapd_freq_params cs_freq_params;
250 u8 cs_count;
251 int cs_block_tx;
252 unsigned int cs_c_off_beacon;
253 unsigned int cs_c_off_proberesp;
254 int csa_in_progress;
6315bfdb
AO
255 unsigned int cs_c_off_ecsa_beacon;
256 unsigned int cs_c_off_ecsa_proberesp;
6782b684 257
ec8f36af
KP
258 /* BSS Load */
259 unsigned int bss_load_update_timeout;
260
c2af2afb 261#ifdef CONFIG_P2P
e44f8bf2
JM
262 struct p2p_data *p2p;
263 struct p2p_group *p2p_group;
c2af2afb
JM
264 struct wpabuf *p2p_beacon_ie;
265 struct wpabuf *p2p_probe_resp_ie;
aefb53bd
JM
266
267 /* Number of non-P2P association stations */
268 int num_sta_no_p2p;
269
270 /* Periodic NoA (used only when no non-P2P clients in the group) */
271 int noa_enabled;
272 int noa_start;
273 int noa_duration;
c2af2afb 274#endif /* CONFIG_P2P */
7d597d46
KP
275#ifdef CONFIG_PROXYARP
276 struct l2_packet_data *sock_dhcp;
bd00c431 277 struct l2_packet_data *sock_ndisc;
7d597d46 278#endif /* CONFIG_PROXYARP */
5f92659d
BC
279#ifdef CONFIG_MESH
280 int num_plinks;
281 int max_plinks;
9684c756
SD
282 void (*mesh_sta_free_cb)(struct hostapd_data *hapd,
283 struct sta_info *sta);
3a322496
JM
284 struct wpabuf *mesh_pending_auth;
285 struct os_reltime mesh_pending_auth_time;
9f2cf23e 286 u8 mesh_required_peer[ETH_ALEN];
5f92659d 287#endif /* CONFIG_MESH */
ee431d77
JM
288
289#ifdef CONFIG_SQLITE
290 struct hostapd_eap_user tmp_eap_user;
291#endif /* CONFIG_SQLITE */
d136c376
JM
292
293#ifdef CONFIG_SAE
294 /** Key used for generating SAE anti-clogging tokens */
295 u8 sae_token_key[8];
fe52c210 296 struct os_reltime last_sae_token_key_update;
ecd40fef 297 int dot11RSNASAERetransPeriod; /* msec */
d136c376 298#endif /* CONFIG_SAE */
93827f45
JM
299
300#ifdef CONFIG_TESTING_OPTIONS
9d4ff04a
JM
301 unsigned int ext_mgmt_frame_handling:1;
302 unsigned int ext_eapol_frame_io:1;
4a6cc862
JM
303
304 struct l2_packet_data *l2_test;
93827f45 305#endif /* CONFIG_TESTING_OPTIONS */
fb9a1c3e
AS
306
307#ifdef CONFIG_MBO
308 unsigned int mbo_assoc_disallow;
309#endif /* CONFIG_MBO */
9b4b2264
DS
310
311 struct dl_list nr_db;
f4f185a2 312
90d9d7c3 313 u8 beacon_req_token;
f4f185a2 314 u8 lci_req_token;
220754c5 315 u8 range_req_token;
f4f185a2 316 unsigned int lci_req_active:1;
220754c5 317 unsigned int range_req_active:1;
91d91abf
JM
318
319 int dhcp_sock; /* UDP socket used with the DHCP server */
6fc6879b
JM
320};
321
322
a65a9b8d
JM
323struct hostapd_sta_info {
324 struct dl_list list;
325 u8 addr[ETH_ALEN];
326 struct os_reltime last_seen;
a818425d 327 int ssi_signal;
44281940
DG
328#ifdef CONFIG_TAXONOMY
329 struct wpabuf *probe_ie_taxonomy;
330#endif /* CONFIG_TAXONOMY */
a65a9b8d
JM
331};
332
6fc6879b
JM
333/**
334 * struct hostapd_iface - hostapd per-interface data structure
335 */
336struct hostapd_iface {
9969e5a4 337 struct hapd_interfaces *interfaces;
0f2b2c19 338 void *owner;
6fc6879b
JM
339 char *config_fname;
340 struct hostapd_config *conf;
5afaa067 341 char phy[16]; /* Name of the PHY (radio) */
6fc6879b 342
e1c5faf0
JM
343 enum hostapd_iface_state {
344 HAPD_IFACE_UNINITIALIZED,
345 HAPD_IFACE_DISABLED,
346 HAPD_IFACE_COUNTRY_UPDATE,
347 HAPD_IFACE_ACS,
348 HAPD_IFACE_HT_SCAN,
349 HAPD_IFACE_DFS,
350 HAPD_IFACE_ENABLED
351 } state;
352
8319e312
TP
353#ifdef CONFIG_MESH
354 struct mesh_conf *mconf;
355#endif /* CONFIG_MESH */
356
6fc6879b
JM
357 size_t num_bss;
358 struct hostapd_data **bss;
359
f0793bf1 360 unsigned int wait_channel_update:1;
dc036d9e 361 unsigned int cac_started:1;
6959145b
AN
362#ifdef CONFIG_FST
363 struct fst_iface *fst;
84bcb4e7 364 const struct wpabuf *fst_ies;
6959145b 365#endif /* CONFIG_FST */
f0793bf1 366
354c903f
MB
367 /*
368 * When set, indicates that the driver will handle the AP
369 * teardown: delete global keys, station keys, and stations.
370 */
371 unsigned int driver_ap_teardown:1;
372
053693d2
SD
373 /*
374 * When set, indicates that this interface is part of list of
375 * interfaces that need to be started together (synchronously).
376 */
377 unsigned int need_to_start_in_sync:1;
378
379 /* Ready to start but waiting for other interfaces to become ready. */
380 unsigned int ready_to_start_in_sync:1;
381
6fc6879b
JM
382 int num_ap; /* number of entries in ap_list */
383 struct ap_info *ap_list; /* AP info list head */
384 struct ap_info *ap_hash[STA_HASH_SIZE];
6fc6879b 385
e3a8ad44 386 u64 drv_flags;
4f73d88a 387
04ee647d
EP
388 /* SMPS modes supported by the driver (WPA_DRIVER_SMPS_MODE_*) */
389 unsigned int smps_modes;
390
4f73d88a
AN
391 /*
392 * A bitmap of supported protocols for probe response offload. See
393 * struct wpa_driver_capa in driver.h
394 */
395 unsigned int probe_resp_offloads;
396
8cd6b7bc
JB
397 /* extended capabilities supported by the driver */
398 const u8 *extended_capa, *extended_capa_mask;
399 unsigned int extended_capa_len;
400
3cb953e4
JM
401 unsigned int drv_max_acl_mac_addrs;
402
6fc6879b
JM
403 struct hostapd_hw_modes *hw_features;
404 int num_hw_features;
405 struct hostapd_hw_modes *current_mode;
406 /* Rates that are currently used (i.e., filtered copy of
407 * current_mode->channels */
408 int num_rates;
409 struct hostapd_rate_data *current_rates;
e5693c47 410 int *basic_rates;
c706d5aa 411 int freq;
6fc6879b
JM
412
413 u16 hw_flags;
414
415 /* Number of associated Non-ERP stations (i.e., stations using 802.11b
416 * in 802.11g BSS) */
417 int num_sta_non_erp;
418
419 /* Number of associated stations that do not support Short Slot Time */
420 int num_sta_no_short_slot_time;
421
422 /* Number of associated stations that do not support Short Preamble */
423 int num_sta_no_short_preamble;
424
425 int olbc; /* Overlapping Legacy BSS Condition */
426
de9289c8
JM
427 /* Number of HT associated stations that do not support greenfield */
428 int num_sta_ht_no_gf;
429
430 /* Number of associated non-HT stations */
431 int num_sta_no_ht;
432
433 /* Number of HT associated stations 20 MHz */
434 int num_sta_ht_20mhz;
435
9c47f6a2
PX
436 /* Number of HT40 intolerant stations */
437 int num_sta_ht40_intolerant;
438
de9289c8
JM
439 /* Overlapping BSS information */
440 int olbc_ht;
441
edd360e1 442 u16 ht_op_mode;
0185007c
MK
443
444 /* surveying helpers */
445
446 /* number of channels surveyed */
447 unsigned int chans_surveyed;
448
449 /* lowest observed noise floor in dBm */
450 s8 lowest_nf;
451
ec8f36af
KP
452 /* channel utilization calculation */
453 u64 last_channel_time;
454 u64 last_channel_time_busy;
455 u8 channel_utilization;
456
6315bfdb
AO
457 /* eCSA IE will be added only if operating class is specified */
458 u8 cs_oper_class;
459
bbbacbf2
JD
460 unsigned int dfs_cac_ms;
461 struct os_reltime dfs_cac_start;
462
9c47f6a2
PX
463 /* Latched with the actual secondary channel information and will be
464 * used while juggling between HT20 and HT40 modes. */
465 int secondary_ch;
466
50f4f2a0
MK
467#ifdef CONFIG_ACS
468 unsigned int acs_num_completed_scans;
469#endif /* CONFIG_ACS */
470
ad1e68e6 471 void (*scan_cb)(struct hostapd_iface *iface);
5f0bca77 472 int num_ht40_scan_tries;
a65a9b8d
JM
473
474 struct dl_list sta_seen; /* struct hostapd_sta_info */
475 unsigned int num_sta_seen;
6fc6879b
JM
476};
477
a4f21109 478/* hostapd.c */
07bcdbb1
JM
479int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
480 int (*cb)(struct hostapd_iface *iface,
481 void *ctx), void *ctx);
ad08c363 482int hostapd_reload_config(struct hostapd_iface *iface);
b6a7859d
JM
483struct hostapd_data *
484hostapd_alloc_bss_data(struct hostapd_iface *hapd_iface,
485 struct hostapd_config *conf,
486 struct hostapd_bss_config *bss);
5c333467 487int hostapd_setup_interface(struct hostapd_iface *iface);
ad1e68e6 488int hostapd_setup_interface_complete(struct hostapd_iface *iface, int err);
5c333467 489void hostapd_interface_deinit(struct hostapd_iface *iface);
f7c47833 490void hostapd_interface_free(struct hostapd_iface *iface);
5e993390 491struct hostapd_iface * hostapd_alloc_iface(void);
66936c6a
KP
492struct hostapd_iface * hostapd_init(struct hapd_interfaces *interfaces,
493 const char *config_file);
a1fb5692
KP
494struct hostapd_iface *
495hostapd_interface_init_bss(struct hapd_interfaces *interfaces, const char *phy,
496 const char *config_fname, int debug);
a4f21109
JM
497void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
498 int reassoc);
75545652
SP
499void hostapd_interface_deinit_free(struct hostapd_iface *iface);
500int hostapd_enable_iface(struct hostapd_iface *hapd_iface);
501int hostapd_reload_iface(struct hostapd_iface *hapd_iface);
502int hostapd_disable_iface(struct hostapd_iface *hapd_iface);
06bb8c62
SP
503int hostapd_add_iface(struct hapd_interfaces *ifaces, char *buf);
504int hostapd_remove_iface(struct hapd_interfaces *ifaces, char *buf);
795baf77 505void hostapd_channel_list_updated(struct hostapd_iface *iface, int initiator);
e1c5faf0 506void hostapd_set_state(struct hostapd_iface *iface, enum hostapd_iface_state s);
5ae6449c 507const char * hostapd_state_text(enum hostapd_iface_state s);
4e0ab656 508int hostapd_csa_in_progress(struct hostapd_iface *iface);
bf281c12
AO
509int hostapd_switch_channel(struct hostapd_data *hapd,
510 struct csa_settings *settings);
5841958f
MK
511void
512hostapd_switch_channel_fallback(struct hostapd_iface *iface,
513 const struct hostapd_freq_params *freq_params);
bf281c12 514void hostapd_cleanup_cs_params(struct hostapd_data *hapd);
3188aaba 515void hostapd_periodic_iface(struct hostapd_iface *iface);
5c333467 516
a4f21109 517/* utils.c */
fa16028d 518int hostapd_register_probereq_cb(struct hostapd_data *hapd,
cd7d80f3 519 int (*cb)(void *ctx, const u8 *sa,
04a85e44 520 const u8 *da, const u8 *bssid,
baf513d6
JB
521 const u8 *ie, size_t ie_len,
522 int ssi_signal),
fa16028d 523 void *ctx);
0aef3ec8 524void hostapd_prune_associations(struct hostapd_data *hapd, const u8 *addr);
fa16028d 525
1d041bec
JM
526/* drv_callbacks.c (TODO: move to somewhere else?) */
527int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
39b08b5f 528 const u8 *ie, size_t ielen, int reassoc);
1d041bec 529void hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr);
0d7e5a3a 530void hostapd_event_sta_low_ack(struct hostapd_data *hapd, const u8 *addr);
3140803b
RM
531void hostapd_event_connect_failed_reason(struct hostapd_data *hapd,
532 const u8 *addr, int reason_code);
04a85e44 533int hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa, const u8 *da,
baf513d6
JB
534 const u8 *bssid, const u8 *ie, size_t ie_len,
535 int ssi_signal);
1b487b8b 536void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
8d1fdde7 537 int offset, int width, int cf1, int cf2);
96bc5086
TB
538struct survey_results;
539void hostapd_event_get_survey(struct hostapd_iface *iface,
540 struct survey_results *survey_results);
d9909717
TB
541void hostapd_acs_channel_selected(struct hostapd_data *hapd,
542 struct acs_selected_channels *acs_res);
1d041bec 543
ee431d77
JM
544const struct hostapd_eap_user *
545hostapd_get_eap_user(struct hostapd_data *hapd, const u8 *identity,
546 size_t identity_len, int phase2);
547
6959145b
AN
548struct hostapd_data * hostapd_get_iface(struct hapd_interfaces *interfaces,
549 const char *ifname);
550
551#ifdef CONFIG_FST
552void fst_hostapd_fill_iface_obj(struct hostapd_data *hapd,
553 struct fst_wpa_obj *iface_obj);
554#endif /* CONFIG_FST */
555
6fc6879b 556#endif /* HOSTAPD_H */