12 #define DEFAULT_EAPOL_VERSION 1 13 #ifdef CONFIG_NO_SCAN_PROCESSING 14 #define DEFAULT_AP_SCAN 2 16 #define DEFAULT_AP_SCAN 1 18 #define DEFAULT_USER_MPM 1 19 #define DEFAULT_MAX_PEER_LINKS 99 20 #define DEFAULT_MESH_MAX_INACTIVITY 300 25 #define DEFAULT_DOT11_RSNA_SAE_RETRANS_PERIOD 1000 26 #define DEFAULT_FAST_REAUTH 1 27 #define DEFAULT_P2P_GO_INTENT 7 28 #define DEFAULT_P2P_INTRA_BSS 1 29 #define DEFAULT_P2P_GO_MAX_INACTIVITY (5 * 60) 30 #define DEFAULT_P2P_OPTIMIZE_LISTEN_CHAN 0 31 #define DEFAULT_BSS_MAX_COUNT 200 32 #define DEFAULT_BSS_EXPIRATION_AGE 180 33 #define DEFAULT_BSS_EXPIRATION_SCAN_COUNT 2 34 #define DEFAULT_MAX_NUM_STA 128 35 #define DEFAULT_ACCESS_NETWORK_TYPE 15 36 #define DEFAULT_SCAN_CUR_FREQ 0 37 #define DEFAULT_P2P_SEARCH_DELAY 500 38 #define DEFAULT_RAND_ADDR_LIFETIME 60 39 #define DEFAULT_KEY_MGMT_OFFLOAD 1 40 #define DEFAULT_CERT_IN_CB 1 41 #define DEFAULT_P2P_GO_CTWINDOW 0 42 #define DEFAULT_WPA_RSC_RELAXATION 1 43 #define DEFAULT_MBO_CELL_CAPA MBO_CELL_CAPA_NOT_SUPPORTED 45 #include "config_ssid.h" 47 #include "common/ieee802_11_defs.h" 48 #include "common/ieee802_11_common.h" 225 u8 required_roaming_consortium[15];
226 size_t required_roaming_consortium_len;
252 u8 ssid[SSID_MAX_LEN];
255 size_t num_excluded_ssid;
263 size_t num_roaming_partner;
265 int update_identifier;
282 unsigned int min_dl_bandwidth_home;
283 unsigned int min_ul_bandwidth_home;
284 unsigned int min_dl_bandwidth_roaming;
285 unsigned int min_ul_bandwidth_roaming;
296 unsigned int num_req_conn_capab;
297 u8 *req_conn_capab_proto;
298 int **req_conn_capab_port;
319 #define CFG_CHANGED_DEVICE_NAME BIT(0) 320 #define CFG_CHANGED_CONFIG_METHODS BIT(1) 321 #define CFG_CHANGED_DEVICE_TYPE BIT(2) 322 #define CFG_CHANGED_OS_VERSION BIT(3) 323 #define CFG_CHANGED_UUID BIT(4) 324 #define CFG_CHANGED_COUNTRY BIT(5) 325 #define CFG_CHANGED_SEC_DEVICE_TYPE BIT(6) 326 #define CFG_CHANGED_P2P_SSID_POSTFIX BIT(7) 327 #define CFG_CHANGED_WPS_STRING BIT(8) 328 #define CFG_CHANGED_P2P_INTRA_BSS BIT(9) 329 #define CFG_CHANGED_VENDOR_EXTENSION BIT(10) 330 #define CFG_CHANGED_P2P_LISTEN_CHANNEL BIT(11) 331 #define CFG_CHANGED_P2P_OPER_CHANNEL BIT(12) 332 #define CFG_CHANGED_P2P_PREF_CHAN BIT(13) 333 #define CFG_CHANGED_EXT_PW_BACKEND BIT(14) 334 #define CFG_CHANGED_NFC_PASSWORD_TOKEN BIT(15) 335 #define CFG_CHANGED_P2P_PASSPHRASE_LEN BIT(16) 336 #define CFG_CHANGED_SCHED_SCAN_PLANS BIT(17) 661 u8 device_type[WPS_DEV_TYPE_LEN];
701 #define MAX_SEC_DEVICE_TYPES 5 705 u8 sec_device_type[MAX_SEC_DEVICE_TYPES][WPS_DEV_TYPE_LEN];
706 int num_sec_device_types;
708 int p2p_listen_reg_class;
709 int p2p_listen_channel;
710 int p2p_oper_reg_class;
711 int p2p_oper_channel;
713 char *p2p_ssid_postfix;
714 int persistent_reconnect;
716 unsigned int num_p2p_pref_chan;
719 int p2p_add_cli_chan;
720 int p2p_ignore_shared_freq;
721 int p2p_optimize_listen_chan;
723 struct wpabuf *wps_vendor_ext_m1;
725 #define MAX_WPS_VENDOR_EXT 10 729 struct wpabuf *wps_vendor_ext[MAX_WPS_VENDOR_EXT];
773 P2P_GO_FREQ_MOVE_SCM = 0,
774 P2P_GO_FREQ_MOVE_SCM_PEER_SUPPORTS = 1,
775 P2P_GO_FREQ_MOVE_STAY = 2,
776 P2P_GO_FREQ_MOVE_SCM_ECSA = 3,
777 P2P_GO_FREQ_MOVE_MAX = P2P_GO_FREQ_MOVE_SCM_ECSA,
778 } p2p_go_freq_change_policy;
780 #define DEFAULT_P2P_GO_FREQ_MOVE P2P_GO_FREQ_MOVE_STAY 957 int p2p_go_max_inactivity;
1045 enum mfp_options pmf;
1110 u8 ip_addr_start[4];
1288 char *non_pref_chan;
1293 enum mbo_cellular_capa mbo_cell_capa;
1336 void wpa_config_free(
struct wpa_config *ssid);
1337 void wpa_config_free_ssid(
struct wpa_ssid *ssid);
1339 void (*func)(
void *,
struct wpa_ssid *),
1343 int wpa_config_remove_network(
struct wpa_config *config,
int id);
1344 void wpa_config_set_network_defaults(
struct wpa_ssid *
ssid);
1345 int wpa_config_set(
struct wpa_ssid *
ssid,
const char *var,
const char *value,
1347 int wpa_config_set_quoted(
struct wpa_ssid *
ssid,
const char *var,
1349 int wpa_config_dump_values(
struct wpa_config *config,
char *buf,
1351 int wpa_config_get_value(
const char *name,
struct wpa_config *config,
1352 char *buf,
size_t buflen);
1354 char ** wpa_config_get_all(
struct wpa_ssid *
ssid,
int get_keys);
1355 char * wpa_config_get(
struct wpa_ssid *
ssid,
const char *var);
1356 char * wpa_config_get_no_key(
struct wpa_ssid *
ssid,
const char *var);
1358 int wpa_config_add_prio_network(
struct wpa_config *config,
1360 int wpa_config_update_prio_list(
struct wpa_config *config);
1363 void wpa_config_set_blob(
struct wpa_config *config,
1366 int wpa_config_remove_blob(
struct wpa_config *config,
const char *
name);
1367 void wpa_config_flush_blobs(
struct wpa_config *config);
1371 int wpa_config_remove_cred(
struct wpa_config *config,
int id);
1372 void wpa_config_free_cred(
struct wpa_cred *cred);
1373 int wpa_config_set_cred(
struct wpa_cred *cred,
const char *var,
1374 const char *value,
int line);
1375 char * wpa_config_get_cred_no_key(
struct wpa_cred *cred,
const char *var);
1379 #ifndef CONFIG_NO_STDOUT_DEBUG 1380 void wpa_config_debug_dump_networks(
struct wpa_config *config);
1382 #define wpa_config_debug_dump_networks(c) do { } while (0) 1387 int wpa_config_process_global(
struct wpa_config *config,
char *pos,
int line);
1389 int wpa_config_get_num_global_field_names(
void);
1391 const char * wpa_config_get_global_field_name(
unsigned int i,
int *no_var);
1424 int wpa_config_write(
const char *name,
struct wpa_config *config);
struct wpabuf * wps_nfc_dh_privkey
wps_nfc_dh_privkey - NFC DH Private Key for password token
Definition: config.h:936
char * pcsc_pin
pcsc_pin - PIN for USIM, GSM SIM, and smartcards
Definition: config.h:563
int passive_scan
passive_scan - Whether to force passive scan for network connection
Definition: config.h:1229
char * phase1
phase1 - Phase 1 (outer authentication) parameters
Definition: config.h:242
int external_sim
external_sim - Use external processing for SIM/USIM operations
Definition: config.h:568
struct wpa_ssid ** pssid
pssid - Per-priority network lists (in priority order)
Definition: config.h:357
unsigned int dot11RSNAConfigPMKReauthThreshold
dot11RSNAConfigPMKReauthThreshold - PMK re-authentication threshold
Definition: config.h:594
int p2p_no_group_iface
p2p_no_group_iface - Whether group interfaces can be used
Definition: config.h:1014
int wps_nfc_pw_from_config
wps_nfc_pw_from_config - NFC Device Password was read from config
Definition: config.h:921
int pcsc
pcsc - Use PC/SC and SIM/USIM card
Definition: config.h:91
int priority
priority - Priority group
Definition: config.h:86
struct wpa_cred * next
next - Next credential in the list
Definition: config.h:58
int gas_address3
gas_address3 - GAS Address3 field behavior
Definition: config.h:1304
int eapol_version
eapol_version - IEEE 802.1X/EAPOL version number
Definition: config.h:384
int okc
okc - Whether to enable opportunistic key caching by default
Definition: config.h:1035
char * client_cert
client_cert - File path to client certificate file (PEM/DER)
Definition: config.h:129
int user_mpm
user_mpm - MPM residency
Definition: config.h:1185
char * model_number
model_number - Model Number (WPS) Additional device description (up to 32 ASCII characters) ...
Definition: config.h:650
int pbc_in_m1
pbc_in_m1 - AP mode WPS probing workaround for PBC with Windows 7
Definition: config.h:903
int fst_llt
fst_llt - default FST LLT (Link-Lost Timeout) to be used for the interface.
Definition: config.h:1258
int disassoc_low_ack
disassoc_low_ack - Disassocicate stations with massive packet loss
Definition: config.h:859
char * username
username - Username for Interworking network selection
Definition: config.h:101
int num_prio
num_prio - Number of different priorities used in the pssid lists
Definition: config.h:365
struct wpabuf * wps_nfc_dev_pw
wps_nfc_dev_pw - NFC Device Password for password token
Definition: config.h:941
int p2p_disabled
p2p_disabled - Whether P2P operations are disabled for this interface
Definition: config.h:1003
int wps_cred_processing
wps_cred_processing - Credential processing
Definition: config.h:699
char * autoscan
autoscan - Automatic scan parameters or NULL if none
Definition: config.h:912
int max_peer_links
max_peer_links - Maximum number of peer links
Definition: config.h:1192
char * ctrl_interface
ctrl_interface - Parameters for the control interface
Definition: config.h:493
int beacon_int
beacon_int - Default Beacon interval in TU
Definition: config.h:1071
int access_network_type
access_network_type - Access Network Type
Definition: config.h:873
char * imsi
imsi - IMSI in <MCC> | <MNC> | '-' | <MSIN> format
Definition: config.h:166
struct wpa_cred * cred
cred - Head of the credential list
Definition: config.h:372
int ftm_responder
ftm_responder - Publish FTM (fine timing measurement) responder functionality
Definition: config.h:1317
char * driver_param
driver_param - Driver interface parameters
Definition: config.h:578
struct wpabuf * wps_nfc_dh_pubkey
wps_nfc_dh_pubkey - NFC DH Public Key for password token
Definition: config.h:931
int wps_nfc_dev_pw_id
wps_nfc_dev_pw_id - NFC Device Password ID for password token
Definition: config.h:926
char * serial_number
serial_number - Serial Number (WPS) Serial number of the device (up to 32 characters) ...
Definition: config.h:656
char * osu_dir
osu_dir - OSU provider information directory
Definition: config.h:1120
int p2p_go_ctwindow
p2p_go_ctwindow - CTWindow to use when operating as GO
Definition: config.h:998
char * fst_group_id
fst_group_id - FST group ID
Definition: config.h:1247
char * opensc_engine_path
opensc_engine_path - Path to the OpenSSL engine for opensc
Definition: config.h:520
size_t num_domain
num_domain - Number of FQDNs in the domain array
Definition: config.h:205
unsigned int bss_expiration_age
bss_expiration_age - BSS entry age after which it can be expired
Definition: config.h:801
struct eap_method_type * eap_method
eap_method - EAP method to use
Definition: config.h:235
unsigned int changed_parameters
changed_parameters - Bitmap of changed parameters since last update
Definition: config.h:854
int key_mgmt_offload
key_mgmt_offload - Use key management offload
Definition: config.h:1175
int * freq_list
freq_list - Array of allowed scan frequencies or NULL for all
Definition: config.h:841
int tdls_external_control
tdls_external_control - External control for TDLS setup requests
Definition: config.h:1106
unsigned int max_num_sta
max_num_sta - Maximum number of STAs in an AP/P2P GO
Definition: config.h:833
int dot11RSNASAERetransPeriod
dot11RSNASAERetransPeriod - Timeout to retransmit SAE Auth frame
Definition: config.h:1217
struct wpa_config - wpa_supplicant configuration data
Definition: config.h:346
char * model_name
model_name - Model Name (WPS) Model of the device (up to 32 ASCII characters)
Definition: config.h:644
char * private_key_passwd
private_key_passwd - Password for private key file
Definition: config.h:161
int fast_reauth
fast_reauth - EAP fast re-authentication (session resumption)
Definition: config.h:512
char * private_key
private_key - File path to client private key file (PEM/DER/PFX)
Definition: config.h:156
char * ext_password_backend
ext_password_backend - External password backend or NULL if none
Definition: config.h:948
int wps_priority
wps_priority - Priority for the networks added through WPS
Definition: config.h:1242
u8 roaming_consortium[15]
roaming_consortium - Roaming Consortium OI
Definition: config.h:218
int p2p_group_idle
p2p_group_idle - Maximum idle time in seconds for P2P group
Definition: config.h:747
unsigned int bss_max_count
bss_max_count - Maximum number of BSS entries to keep in memory
Definition: config.h:793
char * config_methods
config_methods - Config Methods
Definition: config.h:674
char * pkcs11_engine_path
pkcs11_engine_path - Path to the OpenSSL engine for PKCS#11
Definition: config.h:528
char * pcsc_reader
pcsc_reader - PC/SC reader name prefix
Definition: config.h:555
char * ctrl_interface_group
ctrl_interface_group - Control interface group (DEPRECATED)
Definition: config.h:502
int mesh_max_inactivity
mesh_max_inactivity - Timeout in seconds to detect STA inactivity
Definition: config.h:1208
char * ca_cert
ca_cert - CA certificate for Interworking network selection
Definition: config.h:116
unsigned int max_bss_load
max_bss_load - Maximum BSS Load Channel Utilization (1..255) This value is used as the maximum channe...
Definition: config.h:294
unsigned int dot11RSNAConfigSATimeout
dot11RSNAConfigSATimeout - Security association timeout
Definition: config.h:602
int filter_ssids
filter_ssids - SSID-based scan result filtering
Definition: config.h:820
int filter_rssi
filter_rssi - RSSI-based scan result filtering
Definition: config.h:828
unsigned int bss_expiration_scan_count
bss_expiration_scan_count - Expire BSS after number of scans
Definition: config.h:812
char * wowlan_triggers
wowlan_triggers - Wake-on-WLAN triggers
Definition: config.h:1127
struct wpa_config_blob * blobs
blobs - Configuration blobs
Definition: config.h:620
struct wpa_config_blob - Named configuration blob
Definition: eap_config.h:766
char * provisioning_sp
provisioning_sp - FQDN of the SP that provisioned the credential
Definition: config.h:270
int ext_password
ext_password - Whether password is a name for external storage
Definition: config.h:111
char * password
password - Password for Interworking network selection
Definition: config.h:106
char * manufacturer
manufacturer - Manufacturer (WPS) The manufacturer of the device (up to 64 ASCII characters) ...
Definition: config.h:638
int interworking
interworking - Whether Interworking (IEEE 802.11u) is enabled
Definition: config.h:864
int ignore_old_scan_res
ignore_old_scan_res - Ignore scan results older than request
Definition: config.h:1091
struct wpa_ssid * ssid
ssid - Head of the global network list
Definition: config.h:352
unsigned int sched_scan_interval
sched_scan_interval - schedule scan interval
Definition: config.h:1096
int scan_cur_freq
scan_cur_freq - Whether to scan only the current channel
Definition: config.h:849
char * milenage
milenage - Milenage parameters for SIM/USIM simulator in <Ki>:<OPc>:<SQN> format
Definition: config.h:172
int ftm_initiator
ftm_initiator - Publish FTM (fine timing measurement) initiator functionality
Definition: config.h:1330
char * bgscan
bgscan - Background scan and roaming parameters or NULL if none
Definition: config.h:430
u8 * ssid
ssid - Service set identifier (network name)
Definition: config_ssid.h:113
int auto_interworking
auto_interworking - Whether to use network selection automatically
Definition: config.h:970
int * sae_groups
sae_groups - Preference list of enabled groups for SAE
Definition: config.h:1055
int cert_in_cb
cert_in_cb - Whether to include a peer certificate dump in events
Definition: config.h:1200
unsigned int p2p_search_delay
p2p_search_delay - Extra delay between concurrent search iterations
Definition: config.h:1137
int ap_scan
ap_scan - AP scanning/selection
Definition: config.h:418
char * device_name
device_name - Device Name (WPS) User-friendly description of device; up to 32 octets encoded in UTF-8...
Definition: config.h:632
int temporary
temporary - Whether this credential is temporary and not to be saved
Definition: config.h:74
size_t roaming_consortium_len
roaming_consortium_len - Length of roaming_consortium
Definition: config.h:223
int disable_scan_offload
disable_scan_offload - Disable automatic offloading of scan requests
Definition: config.h:439
int fst_priority
fst_priority - priority of the interface within the FST group
Definition: config.h:1252
unsigned int dot11RSNAConfigPMKLifetime
dot11RSNAConfigPMKLifetime - Maximum lifetime of a PMK
Definition: config.h:586
char * realm
realm - Home Realm for Interworking
Definition: config.h:96
int sim_num
sim_num - User selected SIM identifier
Definition: config.h:315
struct wpabuf * ap_vendor_elements
ap_vendor_elements: Vendor specific elements for Beacon/ProbeResp
Definition: config.h:1081
Definition: ieee802_11_common.h:138
int update_config
update_config - Is wpa_supplicant allowed to update configuration
Definition: config.h:615
int id
id - Unique id for the credential
Definition: config.h:69
int dtim_period
dtim_period - Default DTIM period in Beacon intervals
Definition: config.h:1063
char * pkcs11_module_path
pkcs11_module_path - Path to the OpenSSL OpenSC/PKCS#11 module
Definition: config.h:537
int p2p_go_ht40
p2p_go_ht40 - Default mode for HT40 enable when operating as GO.
Definition: config.h:980
unsigned int p2p_passphrase_len
p2p_passphrase_len - Passphrase length (8..63) for P2P GO
Definition: config.h:788
int preassoc_mac_addr
preassoc_mac_addr - Pre-association MAC address policy
Definition: config.h:1164
char * openssl_ciphers
openssl_ciphers - OpenSSL cipher string
Definition: config.h:546
int hs20
hs20 - Hotspot 2.0
Definition: config.h:887
char * domain_suffix_match
domain_suffix_match - Constraint for server domain name
Definition: config.h:190
unsigned int rand_addr_lifetime
rand_addr_lifetime - Lifetime of random MAC address in seconds
Definition: config.h:1155
int p2p_go_vht
p2p_go_vht - Default mode for VHT enable when operating as GO
Definition: config.h:990
char * phase2
phase2 - Phase 2 (inner authentication) parameters
Definition: config.h:249
struct wpa_ssid - Network configuration data
Definition: config_ssid.h:55
int p2p_cli_probe
p2p_cli_probe - Enable/disable P2P CLI probe request handling
Definition: config.h:1026
int sp_priority
sp_priority - Credential priority within a provisioning SP
Definition: config.h:280
char * name
name - Blob name
Definition: eap_config.h:770
int wpa_rsc_relaxation
wpa_rsc_relaxation - RSC relaxation on GTK installation
Definition: config.h:1268
char ** domain
domain - Home service provider FQDN(s)
Definition: config.h:200
int mac_addr
mac_addr - MAC address policy default
Definition: config.h:1150
int ocsp
ocsp - Whether to use/require OCSP to check server certificate
Definition: config.h:307
char * sched_scan_plans
sched_scan_plans - Scan plans for scheduled scan
Definition: config.h:1279
int reassoc_same_bss_optim
reassoc_same_bss_optim - Whether to optimize reassoc-to-same-BSS
Definition: config.h:1234