ap_config.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. /*
  2. * hostapd / Configuration definitions and helpers functions
  3. * Copyright (c) 2003-2012, 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_CONFIG_H
  9. #define HOSTAPD_CONFIG_H
  10. #include "common/defs.h"
  11. #include "ip_addr.h"
  12. #include "common/wpa_common.h"
  13. #include "common/ieee802_11_common.h"
  14. #include "wps/wps.h"
  15. /**
  16. * mesh_conf - local MBSS state and settings
  17. */
  18. struct mesh_conf {
  19. u8 meshid[32];
  20. u8 meshid_len;
  21. /* Active Path Selection Protocol Identifier */
  22. u8 mesh_pp_id;
  23. /* Active Path Selection Metric Identifier */
  24. u8 mesh_pm_id;
  25. /* Congestion Control Mode Identifier */
  26. u8 mesh_cc_id;
  27. /* Synchronization Protocol Identifier */
  28. u8 mesh_sp_id;
  29. /* Authentication Protocol Identifier */
  30. u8 mesh_auth_id;
  31. u8 *ies;
  32. int ie_len;
  33. #define MESH_CONF_SEC_NONE BIT(0)
  34. #define MESH_CONF_SEC_AUTH BIT(1)
  35. #define MESH_CONF_SEC_AMPE BIT(2)
  36. unsigned int security;
  37. };
  38. #define MAX_STA_COUNT 2007
  39. #define MAX_VLAN_ID 4094
  40. typedef u8 macaddr[ETH_ALEN];
  41. struct mac_acl_entry {
  42. macaddr addr;
  43. int vlan_id;
  44. };
  45. struct hostapd_radius_servers;
  46. struct ft_remote_r0kh;
  47. struct ft_remote_r1kh;
  48. #define HOSTAPD_MAX_SSID_LEN 32
  49. #define NUM_WEP_KEYS 4
  50. struct hostapd_wep_keys {
  51. u8 idx;
  52. u8 *key[NUM_WEP_KEYS];
  53. size_t len[NUM_WEP_KEYS];
  54. int keys_set;
  55. size_t default_len; /* key length used for dynamic key generation */
  56. };
  57. typedef enum hostap_security_policy {
  58. SECURITY_PLAINTEXT = 0,
  59. SECURITY_STATIC_WEP = 1,
  60. SECURITY_IEEE_802_1X = 2,
  61. SECURITY_WPA_PSK = 3,
  62. SECURITY_WPA = 4,
  63. SECURITY_OSEN = 5
  64. } secpolicy;
  65. struct hostapd_ssid {
  66. u8 ssid[HOSTAPD_MAX_SSID_LEN];
  67. size_t ssid_len;
  68. unsigned int ssid_set:1;
  69. unsigned int utf8_ssid:1;
  70. unsigned int wpa_passphrase_set:1;
  71. unsigned int wpa_psk_set:1;
  72. char vlan[IFNAMSIZ + 1];
  73. secpolicy security_policy;
  74. struct hostapd_wpa_psk *wpa_psk;
  75. char *wpa_passphrase;
  76. char *wpa_psk_file;
  77. struct hostapd_wep_keys wep;
  78. #define DYNAMIC_VLAN_DISABLED 0
  79. #define DYNAMIC_VLAN_OPTIONAL 1
  80. #define DYNAMIC_VLAN_REQUIRED 2
  81. int dynamic_vlan;
  82. #define DYNAMIC_VLAN_NAMING_WITHOUT_DEVICE 0
  83. #define DYNAMIC_VLAN_NAMING_WITH_DEVICE 1
  84. #define DYNAMIC_VLAN_NAMING_END 2
  85. int vlan_naming;
  86. #ifdef CONFIG_FULL_DYNAMIC_VLAN
  87. char *vlan_tagged_interface;
  88. #endif /* CONFIG_FULL_DYNAMIC_VLAN */
  89. };
  90. #define VLAN_ID_WILDCARD -1
  91. struct hostapd_vlan {
  92. struct hostapd_vlan *next;
  93. int vlan_id; /* VLAN ID or -1 (VLAN_ID_WILDCARD) for wildcard entry */
  94. char ifname[IFNAMSIZ + 1];
  95. int dynamic_vlan;
  96. #ifdef CONFIG_FULL_DYNAMIC_VLAN
  97. #define DVLAN_CLEAN_BR 0x1
  98. #define DVLAN_CLEAN_VLAN 0x2
  99. #define DVLAN_CLEAN_VLAN_PORT 0x4
  100. #define DVLAN_CLEAN_WLAN_PORT 0x8
  101. int clean;
  102. #endif /* CONFIG_FULL_DYNAMIC_VLAN */
  103. };
  104. #define PMK_LEN 32
  105. struct hostapd_sta_wpa_psk_short {
  106. struct hostapd_sta_wpa_psk_short *next;
  107. u8 psk[PMK_LEN];
  108. };
  109. struct hostapd_wpa_psk {
  110. struct hostapd_wpa_psk *next;
  111. int group;
  112. u8 psk[PMK_LEN];
  113. u8 addr[ETH_ALEN];
  114. u8 p2p_dev_addr[ETH_ALEN];
  115. };
  116. struct hostapd_eap_user {
  117. struct hostapd_eap_user *next;
  118. u8 *identity;
  119. size_t identity_len;
  120. struct {
  121. int vendor;
  122. u32 method;
  123. } methods[EAP_MAX_METHODS];
  124. u8 *password;
  125. size_t password_len;
  126. int phase2;
  127. int force_version;
  128. unsigned int wildcard_prefix:1;
  129. unsigned int password_hash:1; /* whether password is hashed with
  130. * nt_password_hash() */
  131. unsigned int remediation:1;
  132. unsigned int macacl:1;
  133. int ttls_auth; /* EAP_TTLS_AUTH_* bitfield */
  134. struct hostapd_radius_attr *accept_attr;
  135. };
  136. struct hostapd_radius_attr {
  137. u8 type;
  138. struct wpabuf *val;
  139. struct hostapd_radius_attr *next;
  140. };
  141. #define NUM_TX_QUEUES 4
  142. struct hostapd_tx_queue_params {
  143. int aifs;
  144. int cwmin;
  145. int cwmax;
  146. int burst; /* maximum burst time in 0.1 ms, i.e., 10 = 1 ms */
  147. };
  148. #define MAX_ROAMING_CONSORTIUM_LEN 15
  149. struct hostapd_roaming_consortium {
  150. u8 len;
  151. u8 oi[MAX_ROAMING_CONSORTIUM_LEN];
  152. };
  153. struct hostapd_lang_string {
  154. u8 lang[3];
  155. u8 name_len;
  156. u8 name[252];
  157. };
  158. #define MAX_NAI_REALMS 10
  159. #define MAX_NAI_REALMLEN 255
  160. #define MAX_NAI_EAP_METHODS 5
  161. #define MAX_NAI_AUTH_TYPES 4
  162. struct hostapd_nai_realm_data {
  163. u8 encoding;
  164. char realm_buf[MAX_NAI_REALMLEN + 1];
  165. char *realm[MAX_NAI_REALMS];
  166. u8 eap_method_count;
  167. struct hostapd_nai_realm_eap {
  168. u8 eap_method;
  169. u8 num_auths;
  170. u8 auth_id[MAX_NAI_AUTH_TYPES];
  171. u8 auth_val[MAX_NAI_AUTH_TYPES];
  172. } eap_method[MAX_NAI_EAP_METHODS];
  173. };
  174. /**
  175. * struct hostapd_bss_config - Per-BSS configuration
  176. */
  177. struct hostapd_bss_config {
  178. char iface[IFNAMSIZ + 1];
  179. char bridge[IFNAMSIZ + 1];
  180. char vlan_bridge[IFNAMSIZ + 1];
  181. char wds_bridge[IFNAMSIZ + 1];
  182. enum hostapd_logger_level logger_syslog_level, logger_stdout_level;
  183. unsigned int logger_syslog; /* module bitfield */
  184. unsigned int logger_stdout; /* module bitfield */
  185. int max_num_sta; /* maximum number of STAs in station table */
  186. int dtim_period;
  187. int bss_load_update_period;
  188. int ieee802_1x; /* use IEEE 802.1X */
  189. int eapol_version;
  190. int eap_server; /* Use internal EAP server instead of external
  191. * RADIUS server */
  192. struct hostapd_eap_user *eap_user;
  193. char *eap_user_sqlite;
  194. char *eap_sim_db;
  195. struct hostapd_ip_addr own_ip_addr;
  196. char *nas_identifier;
  197. struct hostapd_radius_servers *radius;
  198. int acct_interim_interval;
  199. int radius_request_cui;
  200. struct hostapd_radius_attr *radius_auth_req_attr;
  201. struct hostapd_radius_attr *radius_acct_req_attr;
  202. int radius_das_port;
  203. unsigned int radius_das_time_window;
  204. int radius_das_require_event_timestamp;
  205. struct hostapd_ip_addr radius_das_client_addr;
  206. u8 *radius_das_shared_secret;
  207. size_t radius_das_shared_secret_len;
  208. struct hostapd_ssid ssid;
  209. char *eap_req_id_text; /* optional displayable message sent with
  210. * EAP Request-Identity */
  211. size_t eap_req_id_text_len;
  212. int eapol_key_index_workaround;
  213. size_t default_wep_key_len;
  214. int individual_wep_key_len;
  215. int wep_rekeying_period;
  216. int broadcast_key_idx_min, broadcast_key_idx_max;
  217. int eap_reauth_period;
  218. int ieee802_11f; /* use IEEE 802.11f (IAPP) */
  219. char iapp_iface[IFNAMSIZ + 1]; /* interface used with IAPP broadcast
  220. * frames */
  221. enum {
  222. ACCEPT_UNLESS_DENIED = 0,
  223. DENY_UNLESS_ACCEPTED = 1,
  224. USE_EXTERNAL_RADIUS_AUTH = 2
  225. } macaddr_acl;
  226. struct mac_acl_entry *accept_mac;
  227. int num_accept_mac;
  228. struct mac_acl_entry *deny_mac;
  229. int num_deny_mac;
  230. int wds_sta;
  231. int isolate;
  232. int start_disabled;
  233. int auth_algs; /* bitfield of allowed IEEE 802.11 authentication
  234. * algorithms, WPA_AUTH_ALG_{OPEN,SHARED,LEAP} */
  235. int wpa; /* bitfield of WPA_PROTO_WPA, WPA_PROTO_RSN */
  236. int wpa_key_mgmt;
  237. #ifdef CONFIG_IEEE80211W
  238. enum mfp_options ieee80211w;
  239. int group_mgmt_cipher;
  240. /* dot11AssociationSAQueryMaximumTimeout (in TUs) */
  241. unsigned int assoc_sa_query_max_timeout;
  242. /* dot11AssociationSAQueryRetryTimeout (in TUs) */
  243. int assoc_sa_query_retry_timeout;
  244. #endif /* CONFIG_IEEE80211W */
  245. enum {
  246. PSK_RADIUS_IGNORED = 0,
  247. PSK_RADIUS_ACCEPTED = 1,
  248. PSK_RADIUS_REQUIRED = 2
  249. } wpa_psk_radius;
  250. int wpa_pairwise;
  251. int wpa_group;
  252. int wpa_group_rekey;
  253. int wpa_strict_rekey;
  254. int wpa_gmk_rekey;
  255. int wpa_ptk_rekey;
  256. int rsn_pairwise;
  257. int rsn_preauth;
  258. char *rsn_preauth_interfaces;
  259. int peerkey;
  260. #ifdef CONFIG_IEEE80211R
  261. /* IEEE 802.11r - Fast BSS Transition */
  262. u8 mobility_domain[MOBILITY_DOMAIN_ID_LEN];
  263. u8 r1_key_holder[FT_R1KH_ID_LEN];
  264. u32 r0_key_lifetime;
  265. u32 reassociation_deadline;
  266. struct ft_remote_r0kh *r0kh_list;
  267. struct ft_remote_r1kh *r1kh_list;
  268. int pmk_r1_push;
  269. int ft_over_ds;
  270. #endif /* CONFIG_IEEE80211R */
  271. char *ctrl_interface; /* directory for UNIX domain sockets */
  272. #ifndef CONFIG_NATIVE_WINDOWS
  273. gid_t ctrl_interface_gid;
  274. #endif /* CONFIG_NATIVE_WINDOWS */
  275. int ctrl_interface_gid_set;
  276. char *ca_cert;
  277. char *server_cert;
  278. char *private_key;
  279. char *private_key_passwd;
  280. int check_crl;
  281. char *ocsp_stapling_response;
  282. char *dh_file;
  283. char *openssl_ciphers;
  284. u8 *pac_opaque_encr_key;
  285. u8 *eap_fast_a_id;
  286. size_t eap_fast_a_id_len;
  287. char *eap_fast_a_id_info;
  288. int eap_fast_prov;
  289. int pac_key_lifetime;
  290. int pac_key_refresh_time;
  291. int eap_sim_aka_result_ind;
  292. int tnc;
  293. int fragment_size;
  294. u16 pwd_group;
  295. char *radius_server_clients;
  296. int radius_server_auth_port;
  297. int radius_server_acct_port;
  298. int radius_server_ipv6;
  299. char *test_socket; /* UNIX domain socket path for driver_test */
  300. int use_pae_group_addr; /* Whether to send EAPOL frames to PAE group
  301. * address instead of individual address
  302. * (for driver_wired.c).
  303. */
  304. int ap_max_inactivity;
  305. int ignore_broadcast_ssid;
  306. int wmm_enabled;
  307. int wmm_uapsd;
  308. struct hostapd_vlan *vlan;
  309. macaddr bssid;
  310. /*
  311. * Maximum listen interval that STAs can use when associating with this
  312. * BSS. If a STA tries to use larger value, the association will be
  313. * denied with status code 51.
  314. */
  315. u16 max_listen_interval;
  316. int disable_pmksa_caching;
  317. int okc; /* Opportunistic Key Caching */
  318. int wps_state;
  319. #ifdef CONFIG_WPS
  320. int wps_independent;
  321. int ap_setup_locked;
  322. u8 uuid[16];
  323. char *wps_pin_requests;
  324. char *device_name;
  325. char *manufacturer;
  326. char *model_name;
  327. char *model_number;
  328. char *serial_number;
  329. u8 device_type[WPS_DEV_TYPE_LEN];
  330. char *config_methods;
  331. u8 os_version[4];
  332. char *ap_pin;
  333. int skip_cred_build;
  334. u8 *extra_cred;
  335. size_t extra_cred_len;
  336. int wps_cred_processing;
  337. int force_per_enrollee_psk;
  338. u8 *ap_settings;
  339. size_t ap_settings_len;
  340. char *upnp_iface;
  341. char *friendly_name;
  342. char *manufacturer_url;
  343. char *model_description;
  344. char *model_url;
  345. char *upc;
  346. struct wpabuf *wps_vendor_ext[MAX_WPS_VENDOR_EXTENSIONS];
  347. int wps_nfc_pw_from_config;
  348. int wps_nfc_dev_pw_id;
  349. struct wpabuf *wps_nfc_dh_pubkey;
  350. struct wpabuf *wps_nfc_dh_privkey;
  351. struct wpabuf *wps_nfc_dev_pw;
  352. #endif /* CONFIG_WPS */
  353. int pbc_in_m1;
  354. char *server_id;
  355. #define P2P_ENABLED BIT(0)
  356. #define P2P_GROUP_OWNER BIT(1)
  357. #define P2P_GROUP_FORMATION BIT(2)
  358. #define P2P_MANAGE BIT(3)
  359. #define P2P_ALLOW_CROSS_CONNECTION BIT(4)
  360. int p2p;
  361. #ifdef CONFIG_P2P
  362. u8 ip_addr_go[4];
  363. u8 ip_addr_mask[4];
  364. u8 ip_addr_start[4];
  365. u8 ip_addr_end[4];
  366. #endif /* CONFIG_P2P */
  367. int disassoc_low_ack;
  368. int skip_inactivity_poll;
  369. #define TDLS_PROHIBIT BIT(0)
  370. #define TDLS_PROHIBIT_CHAN_SWITCH BIT(1)
  371. int tdls;
  372. int disable_11n;
  373. int disable_11ac;
  374. /* IEEE 802.11v */
  375. int time_advertisement;
  376. char *time_zone;
  377. int wnm_sleep_mode;
  378. int bss_transition;
  379. /* IEEE 802.11u - Interworking */
  380. int interworking;
  381. int access_network_type;
  382. int internet;
  383. int asra;
  384. int esr;
  385. int uesa;
  386. int venue_info_set;
  387. u8 venue_group;
  388. u8 venue_type;
  389. u8 hessid[ETH_ALEN];
  390. /* IEEE 802.11u - Roaming Consortium list */
  391. unsigned int roaming_consortium_count;
  392. struct hostapd_roaming_consortium *roaming_consortium;
  393. /* IEEE 802.11u - Venue Name duples */
  394. unsigned int venue_name_count;
  395. struct hostapd_lang_string *venue_name;
  396. /* IEEE 802.11u - Network Authentication Type */
  397. u8 *network_auth_type;
  398. size_t network_auth_type_len;
  399. /* IEEE 802.11u - IP Address Type Availability */
  400. u8 ipaddr_type_availability;
  401. u8 ipaddr_type_configured;
  402. /* IEEE 802.11u - 3GPP Cellular Network */
  403. u8 *anqp_3gpp_cell_net;
  404. size_t anqp_3gpp_cell_net_len;
  405. /* IEEE 802.11u - Domain Name */
  406. u8 *domain_name;
  407. size_t domain_name_len;
  408. unsigned int nai_realm_count;
  409. struct hostapd_nai_realm_data *nai_realm_data;
  410. u16 gas_comeback_delay;
  411. int gas_frag_limit;
  412. u8 qos_map_set[16 + 2 * 21];
  413. unsigned int qos_map_set_len;
  414. int osen;
  415. int proxy_arp;
  416. #ifdef CONFIG_HS20
  417. int hs20;
  418. int disable_dgaf;
  419. u16 anqp_domain_id;
  420. unsigned int hs20_oper_friendly_name_count;
  421. struct hostapd_lang_string *hs20_oper_friendly_name;
  422. u8 *hs20_wan_metrics;
  423. u8 *hs20_connection_capability;
  424. size_t hs20_connection_capability_len;
  425. u8 *hs20_operating_class;
  426. u8 hs20_operating_class_len;
  427. struct hs20_icon {
  428. u16 width;
  429. u16 height;
  430. char language[3];
  431. char type[256];
  432. char name[256];
  433. char file[256];
  434. } *hs20_icons;
  435. size_t hs20_icons_count;
  436. u8 osu_ssid[HOSTAPD_MAX_SSID_LEN];
  437. size_t osu_ssid_len;
  438. struct hs20_osu_provider {
  439. unsigned int friendly_name_count;
  440. struct hostapd_lang_string *friendly_name;
  441. char *server_uri;
  442. int *method_list;
  443. char **icons;
  444. size_t icons_count;
  445. char *osu_nai;
  446. unsigned int service_desc_count;
  447. struct hostapd_lang_string *service_desc;
  448. } *hs20_osu_providers, *last_osu;
  449. size_t hs20_osu_providers_count;
  450. unsigned int hs20_deauth_req_timeout;
  451. char *subscr_remediation_url;
  452. u8 subscr_remediation_method;
  453. #endif /* CONFIG_HS20 */
  454. u8 wps_rf_bands; /* RF bands for WPS (WPS_RF_*) */
  455. #ifdef CONFIG_RADIUS_TEST
  456. char *dump_msk_file;
  457. #endif /* CONFIG_RADIUS_TEST */
  458. struct wpabuf *vendor_elements;
  459. unsigned int sae_anti_clogging_threshold;
  460. int *sae_groups;
  461. #ifdef CONFIG_TESTING_OPTIONS
  462. u8 bss_load_test[5];
  463. u8 bss_load_test_set;
  464. #endif /* CONFIG_TESTING_OPTIONS */
  465. #define MESH_ENABLED BIT(0)
  466. int mesh;
  467. };
  468. /**
  469. * struct hostapd_config - Per-radio interface configuration
  470. */
  471. struct hostapd_config {
  472. struct hostapd_bss_config **bss, *last_bss;
  473. size_t num_bss;
  474. u16 beacon_int;
  475. int rts_threshold;
  476. int fragm_threshold;
  477. u8 send_probe_response;
  478. u8 channel;
  479. int *chanlist;
  480. enum hostapd_hw_mode hw_mode; /* HOSTAPD_MODE_IEEE80211A, .. */
  481. enum {
  482. LONG_PREAMBLE = 0,
  483. SHORT_PREAMBLE = 1
  484. } preamble;
  485. int *supported_rates;
  486. int *basic_rates;
  487. const struct wpa_driver_ops *driver;
  488. int ap_table_max_size;
  489. int ap_table_expiration_time;
  490. char country[3]; /* first two octets: country code as described in
  491. * ISO/IEC 3166-1. Third octet:
  492. * ' ' (ascii 32): all environments
  493. * 'O': Outdoor environemnt only
  494. * 'I': Indoor environment only
  495. */
  496. int ieee80211d;
  497. int ieee80211h; /* DFS */
  498. /*
  499. * Local power constraint is an octet encoded as an unsigned integer in
  500. * units of decibels. Invalid value -1 indicates that Power Constraint
  501. * element will not be added.
  502. */
  503. int local_pwr_constraint;
  504. /* Control Spectrum Management bit */
  505. int spectrum_mgmt_required;
  506. struct hostapd_tx_queue_params tx_queue[NUM_TX_QUEUES];
  507. /*
  508. * WMM AC parameters, in same order as 802.1D, i.e.
  509. * 0 = BE (best effort)
  510. * 1 = BK (background)
  511. * 2 = VI (video)
  512. * 3 = VO (voice)
  513. */
  514. struct hostapd_wmm_ac_params wmm_ac_params[4];
  515. int ht_op_mode_fixed;
  516. u16 ht_capab;
  517. int ieee80211n;
  518. int secondary_channel;
  519. int require_ht;
  520. int obss_interval;
  521. u32 vht_capab;
  522. int ieee80211ac;
  523. int require_vht;
  524. u8 vht_oper_chwidth;
  525. u8 vht_oper_centr_freq_seg0_idx;
  526. u8 vht_oper_centr_freq_seg1_idx;
  527. #ifdef CONFIG_TESTING_OPTIONS
  528. double ignore_probe_probability;
  529. double ignore_auth_probability;
  530. double ignore_assoc_probability;
  531. double ignore_reassoc_probability;
  532. double corrupt_gtk_rekey_mic_probability;
  533. #endif /* CONFIG_TESTING_OPTIONS */
  534. #ifdef CONFIG_ACS
  535. unsigned int acs_num_scans;
  536. #endif /* CONFIG_ACS */
  537. };
  538. int hostapd_mac_comp(const void *a, const void *b);
  539. int hostapd_mac_comp_empty(const void *a);
  540. struct hostapd_config * hostapd_config_defaults(void);
  541. void hostapd_config_defaults_bss(struct hostapd_bss_config *bss);
  542. void hostapd_config_free_eap_user(struct hostapd_eap_user *user);
  543. void hostapd_config_free_bss(struct hostapd_bss_config *conf);
  544. void hostapd_config_free(struct hostapd_config *conf);
  545. int hostapd_maclist_found(struct mac_acl_entry *list, int num_entries,
  546. const u8 *addr, int *vlan_id);
  547. int hostapd_rate_found(int *list, int rate);
  548. const u8 * hostapd_get_psk(const struct hostapd_bss_config *conf,
  549. const u8 *addr, const u8 *p2p_dev_addr,
  550. const u8 *prev_psk);
  551. int hostapd_setup_wpa_psk(struct hostapd_bss_config *conf);
  552. int hostapd_vlan_id_valid(struct hostapd_vlan *vlan, int vlan_id);
  553. const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan,
  554. int vlan_id);
  555. struct hostapd_radius_attr *
  556. hostapd_config_get_radius_attr(struct hostapd_radius_attr *attr, u8 type);
  557. int hostapd_config_check(struct hostapd_config *conf, int full_config);
  558. void hostapd_set_security_params(struct hostapd_bss_config *bss,
  559. int full_config);
  560. #endif /* HOSTAPD_CONFIG_H */