5 #ifndef HOSTAPD_CONFIG_H
6 #define HOSTAPD_CONFIG_H
35 #define MESH_CONF_SEC_NONE BIT(0)
36 #define MESH_CONF_SEC_AUTH BIT(1)
37 #define MESH_CONF_SEC_AMPE BIT(2)
38 unsigned int security;
39 int dot11MeshMaxRetries;
40 int dot11MeshRetryTimeout;
41 int dot11MeshConfirmTimeout;
42 int dot11MeshHoldingTimeout;
45 #define MAX_STA_COUNT 2007
46 #define MAX_VLAN_ID 4094
48 typedef u8 macaddr[ETH_ALEN];
59 #define NUM_WEP_KEYS 4
62 u8 *key[NUM_WEP_KEYS];
63 size_t len[NUM_WEP_KEYS];
68 typedef enum hostap_security_policy {
69 SECURITY_PLAINTEXT = 0,
70 SECURITY_STATIC_WEP = 1,
71 SECURITY_IEEE_802_1X = 2,
78 u8 ssid[SSID_MAX_LEN];
80 unsigned int ssid_set:1;
81 unsigned int utf8_ssid:1;
82 unsigned int wpa_passphrase_set:1;
83 unsigned int wpa_psk_set:1;
85 char vlan[IFNAMSIZ + 1];
86 secpolicy security_policy;
94 #define DYNAMIC_VLAN_DISABLED 0
95 #define DYNAMIC_VLAN_OPTIONAL 1
96 #define DYNAMIC_VLAN_REQUIRED 2
98 #define DYNAMIC_VLAN_NAMING_WITHOUT_DEVICE 0
99 #define DYNAMIC_VLAN_NAMING_WITH_DEVICE 1
100 #define DYNAMIC_VLAN_NAMING_END 2
102 #ifdef CONFIG_FULL_DYNAMIC_VLAN
103 char *vlan_tagged_interface;
108 #define VLAN_ID_WILDCARD -1
113 char ifname[IFNAMSIZ + 1];
116 #ifdef CONFIG_FULL_DYNAMIC_VLAN
118 #define DVLAN_CLEAN_WLAN_PORT 0x8
134 u8 p2p_dev_addr[ETH_ALEN];
144 } methods[EAP_MAX_METHODS];
149 unsigned int wildcard_prefix:1;
150 unsigned int password_hash:1;
152 unsigned int remediation:1;
153 unsigned int macacl:1;
165 #define NUM_TX_QUEUES 4
175 #define MAX_ROAMING_CONSORTIUM_LEN 15
179 u8 oi[MAX_ROAMING_CONSORTIUM_LEN];
188 #define MAX_NAI_REALMS 10
189 #define MAX_NAI_REALMLEN 255
190 #define MAX_NAI_EAP_METHODS 5
191 #define MAX_NAI_AUTH_TYPES 4
194 char realm_buf[MAX_NAI_REALMLEN + 1];
195 char *realm[MAX_NAI_REALMS];
200 u8 auth_id[MAX_NAI_AUTH_TYPES];
201 u8 auth_val[MAX_NAI_AUTH_TYPES];
210 char iface[IFNAMSIZ + 1];
211 char bridge[IFNAMSIZ + 1];
212 char vlan_bridge[IFNAMSIZ + 1];
213 char wds_bridge[IFNAMSIZ + 1];
215 enum hostapd_logger_level logger_syslog_level, logger_stdout_level;
217 unsigned int logger_syslog;
218 unsigned int logger_stdout;
223 int bss_load_update_period;
230 char *eap_user_sqlite;
234 char *nas_identifier;
236 int acct_interim_interval;
237 int radius_request_cui;
241 unsigned int radius_das_time_window;
242 int radius_das_require_event_timestamp;
244 u8 *radius_das_shared_secret;
245 size_t radius_das_shared_secret_len;
249 char *eap_req_id_text;
251 size_t eap_req_id_text_len;
252 int eapol_key_index_workaround;
254 size_t default_wep_key_len;
255 int individual_wep_key_len;
256 int wep_rekeying_period;
257 int broadcast_key_idx_min, broadcast_key_idx_max;
258 int eap_reauth_period;
259 int erp_send_reauth_start;
263 char iapp_iface[IFNAMSIZ + 1];
267 ACCEPT_UNLESS_DENIED = 0,
268 DENY_UNLESS_ACCEPTED = 1,
269 USE_EXTERNAL_RADIUS_AUTH = 2
284 #ifdef CONFIG_IEEE80211W
286 int group_mgmt_cipher;
288 unsigned int assoc_sa_query_max_timeout;
290 int assoc_sa_query_retry_timeout;
293 PSK_RADIUS_IGNORED = 0,
294 PSK_RADIUS_ACCEPTED = 1,
295 PSK_RADIUS_REQUIRED = 2
300 int wpa_strict_rekey;
305 char *rsn_preauth_interfaces;
308 #ifdef CONFIG_IEEE80211R
310 u8 mobility_domain[MOBILITY_DOMAIN_ID_LEN];
311 u8 r1_key_holder[FT_R1KH_ID_LEN];
313 u32 reassociation_deadline;
320 char *ctrl_interface;
321 #ifndef CONFIG_NATIVE_WINDOWS
322 gid_t ctrl_interface_gid;
324 int ctrl_interface_gid_set;
329 char *private_key_passwd;
331 unsigned int tls_session_lifetime;
332 char *ocsp_stapling_response;
334 char *openssl_ciphers;
335 u8 *pac_opaque_encr_key;
337 size_t eap_fast_a_id_len;
338 char *eap_fast_a_id_info;
340 int pac_key_lifetime;
341 int pac_key_refresh_time;
342 int eap_sim_aka_result_ind;
347 char *radius_server_clients;
348 int radius_server_auth_port;
349 int radius_server_acct_port;
350 int radius_server_ipv6;
352 int use_pae_group_addr;
357 int ap_max_inactivity;
358 int ignore_broadcast_ssid;
372 u16 max_listen_interval;
374 int disable_pmksa_caching;
382 char *wps_pin_requests;
388 u8 device_type[WPS_DEV_TYPE_LEN];
389 char *config_methods;
394 size_t extra_cred_len;
395 int wps_cred_processing;
396 int force_per_enrollee_psk;
398 size_t ap_settings_len;
401 char *manufacturer_url;
402 char *model_description;
405 struct wpabuf *wps_vendor_ext[MAX_WPS_VENDOR_EXTENSIONS];
406 int wps_nfc_pw_from_config;
407 int wps_nfc_dev_pw_id;
408 struct wpabuf *wps_nfc_dh_pubkey;
409 struct wpabuf *wps_nfc_dh_privkey;
410 struct wpabuf *wps_nfc_dev_pw;
415 #define P2P_ENABLED BIT(0)
416 #define P2P_GROUP_OWNER BIT(1)
417 #define P2P_GROUP_FORMATION BIT(2)
418 #define P2P_MANAGE BIT(3)
419 #define P2P_ALLOW_CROSS_CONNECTION BIT(4)
428 int disassoc_low_ack;
429 int skip_inactivity_poll;
431 #define TDLS_PROHIBIT BIT(0)
432 #define TDLS_PROHIBIT_CHAN_SWITCH BIT(1)
438 int time_advertisement;
445 int access_network_type;
456 unsigned int roaming_consortium_count;
460 unsigned int venue_name_count;
464 u8 *network_auth_type;
465 size_t network_auth_type_len;
468 u8 ipaddr_type_availability;
469 u8 ipaddr_type_configured;
472 u8 *anqp_3gpp_cell_net;
473 size_t anqp_3gpp_cell_net_len;
477 size_t domain_name_len;
479 unsigned int nai_realm_count;
482 u16 gas_comeback_delay;
485 u8 qos_map_set[16 + 2 * 21];
486 unsigned int qos_map_set_len;
490 int na_mcast_to_ucast;
495 unsigned int hs20_oper_friendly_name_count;
497 u8 *hs20_wan_metrics;
498 u8 *hs20_connection_capability;
499 size_t hs20_connection_capability_len;
500 u8 *hs20_operating_class;
501 u8 hs20_operating_class_len;
510 size_t hs20_icons_count;
511 u8 osu_ssid[SSID_MAX_LEN];
513 struct hs20_osu_provider {
514 unsigned int friendly_name_count;
521 unsigned int service_desc_count;
523 } *hs20_osu_providers, *last_osu;
524 size_t hs20_osu_providers_count;
525 unsigned int hs20_deauth_req_timeout;
526 char *subscr_remediation_url;
527 u8 subscr_remediation_method;
532 #ifdef CONFIG_RADIUS_TEST
536 struct wpabuf *vendor_elements;
538 unsigned int sae_anti_clogging_threshold;
543 #ifdef CONFIG_TESTING_OPTIONS
545 u8 bss_load_test_set;
546 struct wpabuf *own_ie_override;
549 #define MESH_ENABLED BIT(0)
552 int radio_measurements;
556 char *no_probe_resp_if_seen_on;
557 char *no_auth_if_seen_on;
572 u8 send_probe_response;
582 int *supported_rates;
588 int ap_table_max_size;
589 int ap_table_expiration_time;
591 unsigned int track_sta_max_num;
592 unsigned int track_sta_max_age;
610 int local_pwr_constraint;
613 int spectrum_mgmt_required;
626 int ht_op_mode_fixed;
629 int secondary_channel;
630 int no_pri_sec_switch;
637 u8 vht_oper_centr_freq_seg0_idx;
638 u8 vht_oper_centr_freq_seg1_idx;
641 struct fst_iface_cfg fst_cfg;
648 #ifdef CONFIG_TESTING_OPTIONS
649 double ignore_probe_probability;
650 double ignore_auth_probability;
651 double ignore_assoc_probability;
652 double ignore_reassoc_probability;
653 double corrupt_gtk_rekey_mic_probability;
657 unsigned int acs_num_scans;
662 unsigned int num_acs_chan_bias;
667 int hostapd_mac_comp(
const void *a,
const void *b);
668 int hostapd_mac_comp_empty(
const void *a);
676 const u8 *addr,
int *vlan_id);
677 int hostapd_rate_found(
int *list,
int rate);
679 const u8 *addr,
const u8 *p2p_dev_addr,
682 int hostapd_vlan_id_valid(
struct hostapd_vlan *vlan,
int vlan_id);
683 const char * hostapd_get_vlan_id_ifname(
struct hostapd_vlan *vlan,
687 int hostapd_config_check(
struct hostapd_config *conf,
int full_config);
Definition: ap_config.h:129
Definition: ap_config.h:192
RADIUS servers for RADIUS client.
Definition: radius_client.h:134
IEEE 802.11 Common routines.
void hostapd_config_free(struct hostapd_config *conf)
Free hostapd configuration.
Definition: ap_config.c:576
Definition: ap_config.h:60
Definition: ap_config.h:158
WPA Supplicant - Common definitions.
Definition: ap_config.h:110
Definition: ap_config.h:124
Definition: ap_config.h:77
Definition: wpa_auth.h:117
Definition: wpa_auth.h:108
hostapd_hw_mode
Hardware mode.
Definition: defs.h:302
Driver interface API definition.
Definition: driver.h:1746
Definition: ap_config.h:50
WPA definitions shared between hostapd and wpa_supplicant.
int hostapd_maclist_found(struct mac_acl_entry *list, int num_entries, const u8 *addr, int *vlan_id)
Find a MAC address from a list.
Definition: ap_config.c:608
Definition: ap_config.h:197
Per-BSS configuration.
Definition: ap_config.h:209
IEEE 802.11 Frame type definitions Copyright (c) 2007-2008 Intel Corporation.
Definition: ap_config.h:167
mfp_options
Management frame protection (IEEE 802.11w) options.
Definition: defs.h:291
Definition: ap_config.h:182
Definition: ieee802_11_common.h:101
Definition: ap_config.h:177
local MBSS state and settings
Definition: ap_config.h:20
Definition: ap_config.h:137
Definition: wpa_auth_i.h:140
Per-radio interface configuration.
Definition: ap_config.h:565
EAP method interface This structure defines the EAP method interface. Each method will need to regist...
Definition: eap_i.h:65