hostapd.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. /*
  2. * hostapd / Initialization and configuration
  3. * Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef HOSTAPD_H
  9. #define HOSTAPD_H
  10. #include "common/defs.h"
  11. #include "utils/list.h"
  12. #include "ap_config.h"
  13. #include "drivers/driver.h"
  14. struct wpa_ctrl_dst;
  15. struct radius_server_data;
  16. struct upnp_wps_device_sm;
  17. struct hostapd_data;
  18. struct sta_info;
  19. struct ieee80211_ht_capabilities;
  20. struct full_dynamic_vlan;
  21. enum wps_event;
  22. union wps_event_data;
  23. #ifdef CONFIG_MESH
  24. struct mesh_conf;
  25. #endif /* CONFIG_MESH */
  26. struct hostapd_iface;
  27. struct hapd_interfaces {
  28. int (*reload_config)(struct hostapd_iface *iface);
  29. struct hostapd_config * (*config_read_cb)(const char *config_fname);
  30. int (*ctrl_iface_init)(struct hostapd_data *hapd);
  31. void (*ctrl_iface_deinit)(struct hostapd_data *hapd);
  32. int (*for_each_interface)(struct hapd_interfaces *interfaces,
  33. int (*cb)(struct hostapd_iface *iface,
  34. void *ctx), void *ctx);
  35. int (*driver_init)(struct hostapd_iface *iface);
  36. size_t count;
  37. int global_ctrl_sock;
  38. struct dl_list global_ctrl_dst;
  39. char *global_iface_path;
  40. char *global_iface_name;
  41. #ifndef CONFIG_NATIVE_WINDOWS
  42. gid_t ctrl_iface_group;
  43. #endif /* CONFIG_NATIVE_WINDOWS */
  44. struct hostapd_iface **iface;
  45. size_t terminate_on_error;
  46. #ifndef CONFIG_NO_VLAN
  47. struct dynamic_iface *vlan_priv;
  48. #endif /* CONFIG_NO_VLAN */
  49. #ifdef CONFIG_ETH_P_OUI
  50. struct dl_list eth_p_oui; /* OUI Extended EtherType handlers */
  51. #endif /* CONFIG_ETH_P_OUI */
  52. int eloop_initialized;
  53. #ifdef CONFIG_DPP
  54. int dpp_init_done;
  55. struct dl_list dpp_bootstrap; /* struct dpp_bootstrap_info */
  56. struct dl_list dpp_configurator; /* struct dpp_configurator */
  57. #endif /* CONFIG_DPP */
  58. };
  59. enum hostapd_chan_status {
  60. HOSTAPD_CHAN_VALID = 0, /* channel is ready */
  61. HOSTAPD_CHAN_INVALID = 1, /* no usable channel found */
  62. HOSTAPD_CHAN_ACS = 2, /* ACS work being performed */
  63. };
  64. struct hostapd_probereq_cb {
  65. int (*cb)(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid,
  66. const u8 *ie, size_t ie_len, int ssi_signal);
  67. void *ctx;
  68. };
  69. #define HOSTAPD_RATE_BASIC 0x00000001
  70. struct hostapd_rate_data {
  71. int rate; /* rate in 100 kbps */
  72. int flags; /* HOSTAPD_RATE_ flags */
  73. };
  74. struct hostapd_frame_info {
  75. unsigned int freq;
  76. u32 channel;
  77. u32 datarate;
  78. int ssi_signal; /* dBm */
  79. };
  80. enum wps_status {
  81. WPS_STATUS_SUCCESS = 1,
  82. WPS_STATUS_FAILURE
  83. };
  84. enum pbc_status {
  85. WPS_PBC_STATUS_DISABLE,
  86. WPS_PBC_STATUS_ACTIVE,
  87. WPS_PBC_STATUS_TIMEOUT,
  88. WPS_PBC_STATUS_OVERLAP
  89. };
  90. struct wps_stat {
  91. enum wps_status status;
  92. enum wps_error_indication failure_reason;
  93. enum pbc_status pbc_status;
  94. u8 peer_addr[ETH_ALEN];
  95. };
  96. struct hostapd_neighbor_entry {
  97. struct dl_list list;
  98. u8 bssid[ETH_ALEN];
  99. struct wpa_ssid_value ssid;
  100. struct wpabuf *nr;
  101. struct wpabuf *lci;
  102. struct wpabuf *civic;
  103. /* LCI update time */
  104. struct os_time lci_date;
  105. int stationary;
  106. };
  107. /**
  108. * struct hostapd_data - hostapd per-BSS data structure
  109. */
  110. struct hostapd_data {
  111. struct hostapd_iface *iface;
  112. struct hostapd_config *iconf;
  113. struct hostapd_bss_config *conf;
  114. int interface_added; /* virtual interface added for this BSS */
  115. unsigned int started:1;
  116. unsigned int disabled:1;
  117. unsigned int reenable_beacon:1;
  118. u8 own_addr[ETH_ALEN];
  119. int num_sta; /* number of entries in sta_list */
  120. struct sta_info *sta_list; /* STA info list head */
  121. #define STA_HASH_SIZE 256
  122. #define STA_HASH(sta) (sta[5])
  123. struct sta_info *sta_hash[STA_HASH_SIZE];
  124. /*
  125. * Bitfield for indicating which AIDs are allocated. Only AID values
  126. * 1-2007 are used and as such, the bit at index 0 corresponds to AID
  127. * 1.
  128. */
  129. #define AID_WORDS ((2008 + 31) / 32)
  130. u32 sta_aid[AID_WORDS];
  131. const struct wpa_driver_ops *driver;
  132. void *drv_priv;
  133. void (*new_assoc_sta_cb)(struct hostapd_data *hapd,
  134. struct sta_info *sta, int reassoc);
  135. void *msg_ctx; /* ctx for wpa_msg() calls */
  136. void *msg_ctx_parent; /* parent interface ctx for wpa_msg() calls */
  137. struct radius_client_data *radius;
  138. u64 acct_session_id;
  139. struct radius_das_data *radius_das;
  140. struct iapp_data *iapp;
  141. struct hostapd_cached_radius_acl *acl_cache;
  142. struct hostapd_acl_query_data *acl_queries;
  143. struct wpa_authenticator *wpa_auth;
  144. struct eapol_authenticator *eapol_auth;
  145. struct rsn_preauth_interface *preauth_iface;
  146. struct os_reltime michael_mic_failure;
  147. int michael_mic_failures;
  148. int tkip_countermeasures;
  149. int ctrl_sock;
  150. struct dl_list ctrl_dst;
  151. void *ssl_ctx;
  152. void *eap_sim_db_priv;
  153. struct radius_server_data *radius_srv;
  154. struct dl_list erp_keys; /* struct eap_server_erp_key */
  155. int parameter_set_count;
  156. /* Time Advertisement */
  157. u8 time_update_counter;
  158. struct wpabuf *time_adv;
  159. #ifdef CONFIG_FULL_DYNAMIC_VLAN
  160. struct full_dynamic_vlan *full_dynamic_vlan;
  161. #endif /* CONFIG_FULL_DYNAMIC_VLAN */
  162. struct l2_packet_data *l2;
  163. #ifdef CONFIG_IEEE80211R_AP
  164. struct dl_list l2_queue;
  165. struct dl_list l2_oui_queue;
  166. struct eth_p_oui_ctx *oui_pull;
  167. struct eth_p_oui_ctx *oui_resp;
  168. struct eth_p_oui_ctx *oui_push;
  169. struct eth_p_oui_ctx *oui_sreq;
  170. struct eth_p_oui_ctx *oui_sresp;
  171. #endif /* CONFIG_IEEE80211R_AP */
  172. struct wps_context *wps;
  173. int beacon_set_done;
  174. struct wpabuf *wps_beacon_ie;
  175. struct wpabuf *wps_probe_resp_ie;
  176. #ifdef CONFIG_WPS
  177. unsigned int ap_pin_failures;
  178. unsigned int ap_pin_failures_consecutive;
  179. struct upnp_wps_device_sm *wps_upnp;
  180. unsigned int ap_pin_lockout_time;
  181. struct wps_stat wps_stats;
  182. #endif /* CONFIG_WPS */
  183. struct hostapd_probereq_cb *probereq_cb;
  184. size_t num_probereq_cb;
  185. void (*public_action_cb)(void *ctx, const u8 *buf, size_t len,
  186. int freq);
  187. void *public_action_cb_ctx;
  188. void (*public_action_cb2)(void *ctx, const u8 *buf, size_t len,
  189. int freq);
  190. void *public_action_cb2_ctx;
  191. int (*vendor_action_cb)(void *ctx, const u8 *buf, size_t len,
  192. int freq);
  193. void *vendor_action_cb_ctx;
  194. void (*wps_reg_success_cb)(void *ctx, const u8 *mac_addr,
  195. const u8 *uuid_e);
  196. void *wps_reg_success_cb_ctx;
  197. void (*wps_event_cb)(void *ctx, enum wps_event event,
  198. union wps_event_data *data);
  199. void *wps_event_cb_ctx;
  200. void (*sta_authorized_cb)(void *ctx, const u8 *mac_addr,
  201. int authorized, const u8 *p2p_dev_addr);
  202. void *sta_authorized_cb_ctx;
  203. void (*setup_complete_cb)(void *ctx);
  204. void *setup_complete_cb_ctx;
  205. void (*new_psk_cb)(void *ctx, const u8 *mac_addr,
  206. const u8 *p2p_dev_addr, const u8 *psk,
  207. size_t psk_len);
  208. void *new_psk_cb_ctx;
  209. /* channel switch parameters */
  210. struct hostapd_freq_params cs_freq_params;
  211. u8 cs_count;
  212. int cs_block_tx;
  213. unsigned int cs_c_off_beacon;
  214. unsigned int cs_c_off_proberesp;
  215. int csa_in_progress;
  216. unsigned int cs_c_off_ecsa_beacon;
  217. unsigned int cs_c_off_ecsa_proberesp;
  218. #ifdef CONFIG_P2P
  219. struct p2p_data *p2p;
  220. struct p2p_group *p2p_group;
  221. struct wpabuf *p2p_beacon_ie;
  222. struct wpabuf *p2p_probe_resp_ie;
  223. /* Number of non-P2P association stations */
  224. int num_sta_no_p2p;
  225. /* Periodic NoA (used only when no non-P2P clients in the group) */
  226. int noa_enabled;
  227. int noa_start;
  228. int noa_duration;
  229. #endif /* CONFIG_P2P */
  230. #ifdef CONFIG_PROXYARP
  231. struct l2_packet_data *sock_dhcp;
  232. struct l2_packet_data *sock_ndisc;
  233. #endif /* CONFIG_PROXYARP */
  234. #ifdef CONFIG_MESH
  235. int num_plinks;
  236. int max_plinks;
  237. void (*mesh_sta_free_cb)(struct hostapd_data *hapd,
  238. struct sta_info *sta);
  239. struct wpabuf *mesh_pending_auth;
  240. struct os_reltime mesh_pending_auth_time;
  241. u8 mesh_required_peer[ETH_ALEN];
  242. #endif /* CONFIG_MESH */
  243. #ifdef CONFIG_SQLITE
  244. struct hostapd_eap_user tmp_eap_user;
  245. #endif /* CONFIG_SQLITE */
  246. #ifdef CONFIG_SAE
  247. /** Key used for generating SAE anti-clogging tokens */
  248. u8 sae_token_key[8];
  249. struct os_reltime last_sae_token_key_update;
  250. int dot11RSNASAERetransPeriod; /* msec */
  251. #endif /* CONFIG_SAE */
  252. #ifdef CONFIG_TESTING_OPTIONS
  253. unsigned int ext_mgmt_frame_handling:1;
  254. unsigned int ext_eapol_frame_io:1;
  255. struct l2_packet_data *l2_test;
  256. enum wpa_alg last_gtk_alg;
  257. int last_gtk_key_idx;
  258. u8 last_gtk[WPA_GTK_MAX_LEN];
  259. size_t last_gtk_len;
  260. #ifdef CONFIG_IEEE80211W
  261. enum wpa_alg last_igtk_alg;
  262. int last_igtk_key_idx;
  263. u8 last_igtk[WPA_IGTK_MAX_LEN];
  264. size_t last_igtk_len;
  265. #endif /* CONFIG_IEEE80211W */
  266. #endif /* CONFIG_TESTING_OPTIONS */
  267. #ifdef CONFIG_MBO
  268. unsigned int mbo_assoc_disallow;
  269. /**
  270. * enable_oce - Enable OCE if it is enabled by user and device also
  271. * supports OCE.
  272. */
  273. u8 enable_oce;
  274. #endif /* CONFIG_MBO */
  275. struct dl_list nr_db;
  276. u8 beacon_req_token;
  277. u8 lci_req_token;
  278. u8 range_req_token;
  279. unsigned int lci_req_active:1;
  280. unsigned int range_req_active:1;
  281. int dhcp_sock; /* UDP socket used with the DHCP server */
  282. #ifdef CONFIG_DPP
  283. int dpp_init_done;
  284. struct dpp_authentication *dpp_auth;
  285. u8 dpp_allowed_roles;
  286. int dpp_qr_mutual;
  287. int dpp_auth_ok_on_ack;
  288. struct gas_query_ap *gas;
  289. struct dpp_pkex *dpp_pkex;
  290. struct dpp_bootstrap_info *dpp_pkex_bi;
  291. char *dpp_pkex_code;
  292. char *dpp_pkex_identifier;
  293. char *dpp_pkex_auth_cmd;
  294. char *dpp_configurator_params;
  295. #ifdef CONFIG_TESTING_OPTIONS
  296. char *dpp_config_obj_override;
  297. char *dpp_discovery_override;
  298. char *dpp_groups_override;
  299. unsigned int dpp_ignore_netaccesskey_mismatch:1;
  300. #endif /* CONFIG_TESTING_OPTIONS */
  301. #endif /* CONFIG_DPP */
  302. };
  303. struct hostapd_sta_info {
  304. struct dl_list list;
  305. u8 addr[ETH_ALEN];
  306. struct os_reltime last_seen;
  307. int ssi_signal;
  308. #ifdef CONFIG_TAXONOMY
  309. struct wpabuf *probe_ie_taxonomy;
  310. #endif /* CONFIG_TAXONOMY */
  311. };
  312. /**
  313. * struct hostapd_iface - hostapd per-interface data structure
  314. */
  315. struct hostapd_iface {
  316. struct hapd_interfaces *interfaces;
  317. void *owner;
  318. char *config_fname;
  319. struct hostapd_config *conf;
  320. char phy[16]; /* Name of the PHY (radio) */
  321. enum hostapd_iface_state {
  322. HAPD_IFACE_UNINITIALIZED,
  323. HAPD_IFACE_DISABLED,
  324. HAPD_IFACE_COUNTRY_UPDATE,
  325. HAPD_IFACE_ACS,
  326. HAPD_IFACE_HT_SCAN,
  327. HAPD_IFACE_DFS,
  328. HAPD_IFACE_ENABLED
  329. } state;
  330. #ifdef CONFIG_MESH
  331. struct mesh_conf *mconf;
  332. #endif /* CONFIG_MESH */
  333. size_t num_bss;
  334. struct hostapd_data **bss;
  335. unsigned int wait_channel_update:1;
  336. unsigned int cac_started:1;
  337. #ifdef CONFIG_FST
  338. struct fst_iface *fst;
  339. const struct wpabuf *fst_ies;
  340. #endif /* CONFIG_FST */
  341. /*
  342. * When set, indicates that the driver will handle the AP
  343. * teardown: delete global keys, station keys, and stations.
  344. */
  345. unsigned int driver_ap_teardown:1;
  346. /*
  347. * When set, indicates that this interface is part of list of
  348. * interfaces that need to be started together (synchronously).
  349. */
  350. unsigned int need_to_start_in_sync:1;
  351. /* Ready to start but waiting for other interfaces to become ready. */
  352. unsigned int ready_to_start_in_sync:1;
  353. int num_ap; /* number of entries in ap_list */
  354. struct ap_info *ap_list; /* AP info list head */
  355. struct ap_info *ap_hash[STA_HASH_SIZE];
  356. u64 drv_flags;
  357. /* SMPS modes supported by the driver (WPA_DRIVER_SMPS_MODE_*) */
  358. unsigned int smps_modes;
  359. /*
  360. * A bitmap of supported protocols for probe response offload. See
  361. * struct wpa_driver_capa in driver.h
  362. */
  363. unsigned int probe_resp_offloads;
  364. /* extended capabilities supported by the driver */
  365. const u8 *extended_capa, *extended_capa_mask;
  366. unsigned int extended_capa_len;
  367. unsigned int drv_max_acl_mac_addrs;
  368. struct hostapd_hw_modes *hw_features;
  369. int num_hw_features;
  370. struct hostapd_hw_modes *current_mode;
  371. /* Rates that are currently used (i.e., filtered copy of
  372. * current_mode->channels */
  373. int num_rates;
  374. struct hostapd_rate_data *current_rates;
  375. int *basic_rates;
  376. int freq;
  377. u16 hw_flags;
  378. /* Number of associated Non-ERP stations (i.e., stations using 802.11b
  379. * in 802.11g BSS) */
  380. int num_sta_non_erp;
  381. /* Number of associated stations that do not support Short Slot Time */
  382. int num_sta_no_short_slot_time;
  383. /* Number of associated stations that do not support Short Preamble */
  384. int num_sta_no_short_preamble;
  385. int olbc; /* Overlapping Legacy BSS Condition */
  386. /* Number of HT associated stations that do not support greenfield */
  387. int num_sta_ht_no_gf;
  388. /* Number of associated non-HT stations */
  389. int num_sta_no_ht;
  390. /* Number of HT associated stations 20 MHz */
  391. int num_sta_ht_20mhz;
  392. /* Number of HT40 intolerant stations */
  393. int num_sta_ht40_intolerant;
  394. /* Overlapping BSS information */
  395. int olbc_ht;
  396. u16 ht_op_mode;
  397. /* surveying helpers */
  398. /* number of channels surveyed */
  399. unsigned int chans_surveyed;
  400. /* lowest observed noise floor in dBm */
  401. s8 lowest_nf;
  402. /* channel utilization calculation */
  403. u64 last_channel_time;
  404. u64 last_channel_time_busy;
  405. u8 channel_utilization;
  406. unsigned int chan_util_samples_sum;
  407. unsigned int chan_util_num_sample_periods;
  408. unsigned int chan_util_average;
  409. /* eCSA IE will be added only if operating class is specified */
  410. u8 cs_oper_class;
  411. unsigned int dfs_cac_ms;
  412. struct os_reltime dfs_cac_start;
  413. /* Latched with the actual secondary channel information and will be
  414. * used while juggling between HT20 and HT40 modes. */
  415. int secondary_ch;
  416. #ifdef CONFIG_ACS
  417. unsigned int acs_num_completed_scans;
  418. #endif /* CONFIG_ACS */
  419. void (*scan_cb)(struct hostapd_iface *iface);
  420. int num_ht40_scan_tries;
  421. struct dl_list sta_seen; /* struct hostapd_sta_info */
  422. unsigned int num_sta_seen;
  423. u8 dfs_domain;
  424. };
  425. /* hostapd.c */
  426. int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
  427. int (*cb)(struct hostapd_iface *iface,
  428. void *ctx), void *ctx);
  429. int hostapd_reload_config(struct hostapd_iface *iface);
  430. struct hostapd_data *
  431. hostapd_alloc_bss_data(struct hostapd_iface *hapd_iface,
  432. struct hostapd_config *conf,
  433. struct hostapd_bss_config *bss);
  434. int hostapd_setup_interface(struct hostapd_iface *iface);
  435. int hostapd_setup_interface_complete(struct hostapd_iface *iface, int err);
  436. void hostapd_interface_deinit(struct hostapd_iface *iface);
  437. void hostapd_interface_free(struct hostapd_iface *iface);
  438. struct hostapd_iface * hostapd_alloc_iface(void);
  439. struct hostapd_iface * hostapd_init(struct hapd_interfaces *interfaces,
  440. const char *config_file);
  441. struct hostapd_iface *
  442. hostapd_interface_init_bss(struct hapd_interfaces *interfaces, const char *phy,
  443. const char *config_fname, int debug);
  444. void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
  445. int reassoc);
  446. void hostapd_interface_deinit_free(struct hostapd_iface *iface);
  447. int hostapd_enable_iface(struct hostapd_iface *hapd_iface);
  448. int hostapd_reload_iface(struct hostapd_iface *hapd_iface);
  449. int hostapd_disable_iface(struct hostapd_iface *hapd_iface);
  450. int hostapd_add_iface(struct hapd_interfaces *ifaces, char *buf);
  451. int hostapd_remove_iface(struct hapd_interfaces *ifaces, char *buf);
  452. void hostapd_channel_list_updated(struct hostapd_iface *iface, int initiator);
  453. void hostapd_set_state(struct hostapd_iface *iface, enum hostapd_iface_state s);
  454. const char * hostapd_state_text(enum hostapd_iface_state s);
  455. int hostapd_csa_in_progress(struct hostapd_iface *iface);
  456. int hostapd_switch_channel(struct hostapd_data *hapd,
  457. struct csa_settings *settings);
  458. void
  459. hostapd_switch_channel_fallback(struct hostapd_iface *iface,
  460. const struct hostapd_freq_params *freq_params);
  461. void hostapd_cleanup_cs_params(struct hostapd_data *hapd);
  462. void hostapd_periodic_iface(struct hostapd_iface *iface);
  463. int hostapd_owe_trans_get_info(struct hostapd_data *hapd);
  464. /* utils.c */
  465. int hostapd_register_probereq_cb(struct hostapd_data *hapd,
  466. int (*cb)(void *ctx, const u8 *sa,
  467. const u8 *da, const u8 *bssid,
  468. const u8 *ie, size_t ie_len,
  469. int ssi_signal),
  470. void *ctx);
  471. void hostapd_prune_associations(struct hostapd_data *hapd, const u8 *addr);
  472. /* drv_callbacks.c (TODO: move to somewhere else?) */
  473. void hostapd_notify_assoc_fils_finish(struct hostapd_data *hapd,
  474. struct sta_info *sta);
  475. int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
  476. const u8 *ie, size_t ielen, int reassoc);
  477. void hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr);
  478. void hostapd_event_sta_low_ack(struct hostapd_data *hapd, const u8 *addr);
  479. void hostapd_event_connect_failed_reason(struct hostapd_data *hapd,
  480. const u8 *addr, int reason_code);
  481. int hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa, const u8 *da,
  482. const u8 *bssid, const u8 *ie, size_t ie_len,
  483. int ssi_signal);
  484. void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
  485. int offset, int width, int cf1, int cf2);
  486. struct survey_results;
  487. void hostapd_event_get_survey(struct hostapd_iface *iface,
  488. struct survey_results *survey_results);
  489. void hostapd_acs_channel_selected(struct hostapd_data *hapd,
  490. struct acs_selected_channels *acs_res);
  491. const struct hostapd_eap_user *
  492. hostapd_get_eap_user(struct hostapd_data *hapd, const u8 *identity,
  493. size_t identity_len, int phase2);
  494. struct hostapd_data * hostapd_get_iface(struct hapd_interfaces *interfaces,
  495. const char *ifname);
  496. #ifdef CONFIG_FST
  497. void fst_hostapd_fill_iface_obj(struct hostapd_data *hapd,
  498. struct fst_wpa_obj *iface_obj);
  499. #endif /* CONFIG_FST */
  500. #endif /* HOSTAPD_H */