blob: 33b46e55b9c6910e820a8fd1efe818b968958886 [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * WPA Supplicant / Network configuration structures
Dmitry Shmidt391c59f2013-09-03 12:16:28 -07003 * Copyright (c) 2003-2013, Jouni Malinen <j@w1.fi>
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07004 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef CONFIG_SSID_H
10#define CONFIG_SSID_H
11
12#include "common/defs.h"
Dmitry Shmidt391c59f2013-09-03 12:16:28 -070013#include "utils/list.h"
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070014#include "eap_peer/eap_config.h"
15
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070016#define DEFAULT_EAP_WORKAROUND ((unsigned int) -1)
17#define DEFAULT_EAPOL_FLAGS (EAPOL_FLAG_REQUIRE_KEY_UNICAST | \
18 EAPOL_FLAG_REQUIRE_KEY_BROADCAST)
19#define DEFAULT_PROTO (WPA_PROTO_WPA | WPA_PROTO_RSN)
20#define DEFAULT_KEY_MGMT (WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_IEEE8021X)
Hai Shalomb755a2a2020-04-23 21:49:02 -070021#ifdef CONFIG_NO_TKIP
22#define DEFAULT_PAIRWISE (WPA_CIPHER_CCMP)
23#define DEFAULT_GROUP (WPA_CIPHER_CCMP)
24#else /* CONFIG_NO_TKIP */
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070025#define DEFAULT_PAIRWISE (WPA_CIPHER_CCMP | WPA_CIPHER_TKIP)
Dmitry Shmidt41712582015-06-29 11:02:15 -070026#define DEFAULT_GROUP (WPA_CIPHER_CCMP | WPA_CIPHER_TKIP)
Hai Shalomb755a2a2020-04-23 21:49:02 -070027#endif /* CONFIG_NO_TKIP */
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070028#define DEFAULT_FRAGMENT_SIZE 1398
29
Dmitry Shmidt04949592012-07-19 12:16:46 -070030#define DEFAULT_BG_SCAN_PERIOD -1
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080031#define DEFAULT_MESH_MAX_RETRIES 2
32#define DEFAULT_MESH_RETRY_TIMEOUT 40
33#define DEFAULT_MESH_CONFIRM_TIMEOUT 40
34#define DEFAULT_MESH_HOLDING_TIMEOUT 40
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070035#define DEFAULT_MESH_RSSI_THRESHOLD 1 /* no change */
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -080036#define DEFAULT_DISABLE_HT 0
37#define DEFAULT_DISABLE_HT40 0
Dmitry Shmidta54fa5f2013-01-15 13:53:35 -080038#define DEFAULT_DISABLE_SGI 0
Dmitry Shmidtdf5a7e42014-04-02 12:59:59 -070039#define DEFAULT_DISABLE_LDPC 0
Hai Shalom74f70d42019-02-11 14:42:39 -080040#define DEFAULT_TX_STBC -1 /* no change */
41#define DEFAULT_RX_STBC -1 /* no change */
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -080042#define DEFAULT_DISABLE_MAX_AMSDU -1 /* no change */
43#define DEFAULT_AMPDU_FACTOR -1 /* no change */
44#define DEFAULT_AMPDU_DENSITY -1 /* no change */
Dmitry Shmidtf9bdef92014-04-25 10:46:36 -070045#define DEFAULT_USER_SELECTED_SIM 1
Hai Shalom74f70d42019-02-11 14:42:39 -080046#define DEFAULT_MAX_OPER_CHWIDTH -1
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -080047
Hai Shaloma20dcd72022-02-04 13:43:00 -080048/* Consider global sae_pwe for SAE mechanism for PWE derivation */
Sunil Ravi38ad1ed2023-01-17 23:58:31 +000049#define DEFAULT_SAE_PWE SAE_PWE_NOT_SET
Hai Shaloma20dcd72022-02-04 13:43:00 -080050
Dmitry Shmidt391c59f2013-09-03 12:16:28 -070051struct psk_list_entry {
52 struct dl_list list;
53 u8 addr[ETH_ALEN];
54 u8 psk[32];
55 u8 p2p;
56};
57
Hai Shalom81f62d82019-07-22 12:10:00 -070058enum wpas_mode {
59 WPAS_MODE_INFRA = 0,
60 WPAS_MODE_IBSS = 1,
61 WPAS_MODE_AP = 2,
62 WPAS_MODE_P2P_GO = 3,
63 WPAS_MODE_P2P_GROUP_FORMATION = 4,
64 WPAS_MODE_MESH = 5,
65};
66
Hai Shalom899fcc72020-10-19 14:38:18 -070067enum sae_pk_mode {
68 SAE_PK_MODE_AUTOMATIC = 0,
69 SAE_PK_MODE_ONLY = 1,
70 SAE_PK_MODE_DISABLED = 2,
71};
72
Sunil Ravi38ad1ed2023-01-17 23:58:31 +000073enum wpas_mac_addr_style {
74 WPAS_MAC_ADDR_STYLE_NOT_SET = -1,
75 WPAS_MAC_ADDR_STYLE_PERMANENT = 0,
76 WPAS_MAC_ADDR_STYLE_RANDOM = 1,
77 WPAS_MAC_ADDR_STYLE_RANDOM_SAME_OUI = 2,
78 WPAS_MAC_ADDR_STYLE_DEDICATED_PER_ESS = 3,
79};
80
Hai Shalom81f62d82019-07-22 12:10:00 -070081/**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070082 * struct wpa_ssid - Network configuration data
83 *
84 * This structure includes all the configuration variables for a network. This
85 * data is included in the per-interface configuration data as an element of
86 * the network list, struct wpa_config::ssid. Each network block in the
87 * configuration is mapped to a struct wpa_ssid instance.
88 */
89struct wpa_ssid {
90 /**
91 * next - Next network in global list
92 *
93 * This pointer can be used to iterate over all networks. The head of
94 * this list is stored in the ssid field of struct wpa_config.
95 */
96 struct wpa_ssid *next;
97
98 /**
99 * pnext - Next network in per-priority list
100 *
101 * This pointer can be used to iterate over all networks in the same
102 * priority class. The heads of these list are stored in the pssid
103 * fields of struct wpa_config.
104 */
105 struct wpa_ssid *pnext;
106
107 /**
108 * id - Unique id for the network
109 *
110 * This identifier is used as a unique identifier for each network
111 * block when using the control interface. Each network is allocated an
112 * id when it is being created, either when reading the configuration
113 * file or when a new network is added through the control interface.
114 */
115 int id;
116
117 /**
Sunil Ravi38ad1ed2023-01-17 23:58:31 +0000118 * ro - Whether a network is declared as read-only
119 *
120 * Every network which is defined in a config file that is passed to
121 * wpa_supplicant using the -I option will be marked as read-only
122 * using this flag. It has the effect that it won't be written to
123 * /etc/wpa_supplicant.conf (from -c argument) if, e.g., wpa_gui tells
124 * the daemon to save all changed configs.
125 *
126 * This is necessary because networks from /etc/wpa_supplicant.conf
127 * have a higher priority and changes from an alternative file would be
128 * silently overwritten without this.
129 */
130 bool ro;
131
132 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700133 * priority - Priority group
134 *
135 * By default, all networks will get same priority group (0). If some
136 * of the networks are more desirable, this field can be used to change
137 * the order in which wpa_supplicant goes through the networks when
138 * selecting a BSS. The priority groups will be iterated in decreasing
139 * priority (i.e., the larger the priority value, the sooner the
140 * network is matched against the scan results). Within each priority
141 * group, networks will be selected based on security policy, signal
142 * strength, etc.
143 *
144 * Please note that AP scanning with scan_ssid=1 and ap_scan=2 mode are
145 * not using this priority to select the order for scanning. Instead,
146 * they try the networks in the order that used in the configuration
147 * file.
148 */
149 int priority;
150
151 /**
152 * ssid - Service set identifier (network name)
153 *
154 * This is the SSID for the network. For wireless interfaces, this is
155 * used to select which network will be used. If set to %NULL (or
156 * ssid_len=0), any SSID can be used. For wired interfaces, this must
157 * be set to %NULL. Note: SSID may contain any characters, even nul
158 * (ASCII 0) and as such, this should not be assumed to be a nul
159 * terminated string. ssid_len defines how many characters are valid
160 * and the ssid field is not guaranteed to be nul terminated.
161 */
162 u8 *ssid;
163
164 /**
165 * ssid_len - Length of the SSID
166 */
167 size_t ssid_len;
168
169 /**
170 * bssid - BSSID
171 *
172 * If set, this network block is used only when associating with the AP
173 * using the configured BSSID
174 *
175 * If this is a persistent P2P group (disabled == 2), this is the GO
176 * Device Address.
177 */
178 u8 bssid[ETH_ALEN];
179
180 /**
Hai Shalom60840252021-02-19 19:02:11 -0800181 * bssid_ignore - List of inacceptable BSSIDs
Dmitry Shmidtff787d52015-01-12 13:01:47 -0800182 */
Hai Shalom60840252021-02-19 19:02:11 -0800183 u8 *bssid_ignore;
184 size_t num_bssid_ignore;
Dmitry Shmidtff787d52015-01-12 13:01:47 -0800185
186 /**
Hai Shalom60840252021-02-19 19:02:11 -0800187 * bssid_accept - List of acceptable BSSIDs
Dmitry Shmidtff787d52015-01-12 13:01:47 -0800188 */
Hai Shalom60840252021-02-19 19:02:11 -0800189 u8 *bssid_accept;
190 size_t num_bssid_accept;
Dmitry Shmidtff787d52015-01-12 13:01:47 -0800191
192 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700193 * bssid_set - Whether BSSID is configured for this network
194 */
195 int bssid_set;
196
197 /**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700198 * bssid_hint - BSSID hint
199 *
200 * If set, this is configured to the driver as a preferred initial BSSID
201 * while connecting to this network.
202 */
203 u8 bssid_hint[ETH_ALEN];
204
205 /**
206 * bssid_hint_set - Whether BSSID hint is configured for this network
207 */
208 int bssid_hint_set;
209
210 /**
Dmitry Shmidt54605472013-11-08 11:10:19 -0800211 * go_p2p_dev_addr - GO's P2P Device Address or all zeros if not set
212 */
213 u8 go_p2p_dev_addr[ETH_ALEN];
214
215 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700216 * psk - WPA pre-shared key (256 bits)
217 */
218 u8 psk[32];
219
220 /**
221 * psk_set - Whether PSK field is configured
222 */
223 int psk_set;
224
225 /**
226 * passphrase - WPA ASCII passphrase
227 *
228 * If this is set, psk will be generated using the SSID and passphrase
229 * configured for the network. ASCII passphrase must be between 8 and
230 * 63 characters (inclusive).
231 */
232 char *passphrase;
233
234 /**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700235 * sae_password - SAE password
236 *
237 * This parameter can be used to set a password for SAE. By default, the
238 * passphrase value is used if this separate parameter is not used, but
239 * passphrase follows the WPA-PSK constraints (8..63 characters) even
240 * though SAE passwords do not have such constraints.
241 */
242 char *sae_password;
243
244 /**
Roshan Pius3a1667e2018-07-03 15:17:14 -0700245 * sae_password_id - SAE password identifier
246 *
247 * This parameter can be used to identify a specific SAE password. If
248 * not included, the default SAE password is used instead.
249 */
250 char *sae_password_id;
251
Hai Shalomc3565922019-10-28 11:58:20 -0700252 struct sae_pt *pt;
253
Roshan Pius3a1667e2018-07-03 15:17:14 -0700254 /**
Dmitry Shmidt61d9df32012-08-29 16:22:06 -0700255 * ext_psk - PSK/passphrase name in external storage
256 *
257 * If this is set, PSK/passphrase will be fetched from external storage
258 * when requesting association with the network.
259 */
260 char *ext_psk;
261
262 /**
Dmitry Shmidt912c6ec2015-03-30 13:16:51 -0700263 * mem_only_psk - Whether to keep PSK/passphrase only in memory
264 *
265 * 0 = allow psk/passphrase to be stored to the configuration file
266 * 1 = do not store psk/passphrase to the configuration file
267 */
268 int mem_only_psk;
269
270 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700271 * pairwise_cipher - Bitfield of allowed pairwise ciphers, WPA_CIPHER_*
272 */
273 int pairwise_cipher;
274
275 /**
276 * group_cipher - Bitfield of allowed group ciphers, WPA_CIPHER_*
277 */
278 int group_cipher;
279
280 /**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700281 * group_mgmt_cipher - Bitfield of allowed group management ciphers
282 *
283 * This is a bitfield of WPA_CIPHER_AES_128_CMAC and WPA_CIPHER_BIP_*
284 * values. If 0, no constraint is used for the cipher, i.e., whatever
285 * the AP uses is accepted.
286 */
287 int group_mgmt_cipher;
288
289 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700290 * key_mgmt - Bitfield of allowed key management protocols
291 *
292 * WPA_KEY_MGMT_*
293 */
294 int key_mgmt;
295
296 /**
Dmitry Shmidt04949592012-07-19 12:16:46 -0700297 * bg_scan_period - Background scan period in seconds, 0 to disable, or
298 * -1 to indicate no change to default driver configuration
299 */
300 int bg_scan_period;
301
302 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700303 * proto - Bitfield of allowed protocols, WPA_PROTO_*
304 */
305 int proto;
306
307 /**
308 * auth_alg - Bitfield of allowed authentication algorithms
309 *
310 * WPA_AUTH_ALG_*
311 */
312 int auth_alg;
313
314 /**
315 * scan_ssid - Scan this SSID with Probe Requests
316 *
317 * scan_ssid can be used to scan for APs using hidden SSIDs.
318 * Note: Many drivers do not support this. ap_mode=2 can be used with
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800319 * such drivers to use hidden SSIDs. Note2: Most nl80211-based drivers
320 * do support scan_ssid=1 and that should be used with them instead of
321 * ap_scan=2.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700322 */
323 int scan_ssid;
324
325#ifdef IEEE8021X_EAPOL
326#define EAPOL_FLAG_REQUIRE_KEY_UNICAST BIT(0)
327#define EAPOL_FLAG_REQUIRE_KEY_BROADCAST BIT(1)
328 /**
329 * eapol_flags - Bit field of IEEE 802.1X/EAPOL options (EAPOL_FLAG_*)
330 */
331 int eapol_flags;
332
333 /**
334 * eap - EAP peer configuration for this network
335 */
336 struct eap_peer_config eap;
337#endif /* IEEE8021X_EAPOL */
338
Hai Shalomfdcde762020-04-02 11:19:20 -0700339#ifdef CONFIG_WEP
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700340#define NUM_WEP_KEYS 4
341#define MAX_WEP_KEY_LEN 16
342 /**
343 * wep_key - WEP keys
344 */
345 u8 wep_key[NUM_WEP_KEYS][MAX_WEP_KEY_LEN];
346
347 /**
348 * wep_key_len - WEP key lengths
349 */
350 size_t wep_key_len[NUM_WEP_KEYS];
351
352 /**
353 * wep_tx_keyidx - Default key index for TX frames using WEP
354 */
355 int wep_tx_keyidx;
Hai Shalomfdcde762020-04-02 11:19:20 -0700356#endif /* CONFIG_WEP */
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700357
358 /**
359 * proactive_key_caching - Enable proactive key caching
360 *
361 * This field can be used to enable proactive key caching which is also
362 * known as opportunistic PMKSA caching for WPA2. This is disabled (0)
Dmitry Shmidtd5e49232012-12-03 15:08:10 -0800363 * by default unless default value is changed with the global okc=1
364 * parameter. Enable by setting this to 1.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700365 *
366 * Proactive key caching is used to make supplicant assume that the APs
367 * are using the same PMK and generate PMKSA cache entries without
368 * doing RSN pre-authentication. This requires support from the AP side
369 * and is normally used with wireless switches that co-locate the
370 * authenticator.
Dmitry Shmidtd5e49232012-12-03 15:08:10 -0800371 *
372 * Internally, special value -1 is used to indicate that the parameter
373 * was not specified in the configuration (i.e., default behavior is
374 * followed).
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700375 */
376 int proactive_key_caching;
377
378 /**
379 * mixed_cell - Whether mixed cells are allowed
380 *
381 * This option can be used to configure whether so called mixed cells,
382 * i.e., networks that use both plaintext and encryption in the same
383 * SSID, are allowed. This is disabled (0) by default. Enable by
384 * setting this to 1.
385 */
386 int mixed_cell;
387
388#ifdef IEEE8021X_EAPOL
389
390 /**
391 * leap - Number of EAP methods using LEAP
392 *
393 * This field should be set to 1 if LEAP is enabled. This is used to
394 * select IEEE 802.11 authentication algorithm.
395 */
396 int leap;
397
398 /**
399 * non_leap - Number of EAP methods not using LEAP
400 *
401 * This field should be set to >0 if any EAP method other than LEAP is
402 * enabled. This is used to select IEEE 802.11 authentication
403 * algorithm.
404 */
405 int non_leap;
406
407 /**
408 * eap_workaround - EAP workarounds enabled
409 *
410 * wpa_supplicant supports number of "EAP workarounds" to work around
411 * interoperability issues with incorrectly behaving authentication
412 * servers. This is recommended to be enabled by default because some
413 * of the issues are present in large number of authentication servers.
414 *
415 * Strict EAP conformance mode can be configured by disabling
416 * workarounds with eap_workaround = 0.
417 */
418 unsigned int eap_workaround;
419
420#endif /* IEEE8021X_EAPOL */
421
422 /**
423 * mode - IEEE 802.11 operation mode (Infrastucture/IBSS)
424 *
425 * 0 = infrastructure (Managed) mode, i.e., associate with an AP.
426 *
427 * 1 = IBSS (ad-hoc, peer-to-peer)
428 *
429 * 2 = AP (access point)
430 *
431 * 3 = P2P Group Owner (can be set in the configuration file)
432 *
433 * 4 = P2P Group Formation (used internally; not in configuration
434 * files)
435 *
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800436 * 5 = Mesh
437 *
Dmitry Shmidtfb79edc2014-01-10 10:45:54 -0800438 * Note: IBSS can only be used with key_mgmt NONE (plaintext and static
439 * WEP) and WPA-PSK (with proto=RSN). In addition, key_mgmt=WPA-NONE
440 * (fixed group key TKIP/CCMP) is available for backwards compatibility,
441 * but its use is deprecated. WPA-None requires following network block
442 * options: proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or
443 * CCMP, but not both), and psk must also be set (either directly or
444 * using ASCII passphrase).
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700445 */
Hai Shalom81f62d82019-07-22 12:10:00 -0700446 enum wpas_mode mode;
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700447
448 /**
Dmitry Shmidt57c2d392016-02-23 13:40:19 -0800449 * pbss - Whether to use PBSS. Relevant to DMG networks only.
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700450 * 0 = do not use PBSS
451 * 1 = use PBSS
452 * 2 = don't care (not allowed in AP mode)
Dmitry Shmidt57c2d392016-02-23 13:40:19 -0800453 * Used together with mode configuration. When mode is AP, it
454 * means to start a PCP instead of a regular AP. When mode is INFRA it
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700455 * means connect to a PCP instead of AP. In this mode you can also
456 * specify 2 (don't care) meaning connect to either AP or PCP.
457 * P2P_GO and P2P_GROUP_FORMATION modes must use PBSS in DMG network.
Dmitry Shmidt57c2d392016-02-23 13:40:19 -0800458 */
459 int pbss;
460
461 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700462 * disabled - Whether this network is currently disabled
463 *
464 * 0 = this network can be used (default).
465 * 1 = this network block is disabled (can be enabled through
466 * ctrl_iface, e.g., with wpa_cli or wpa_gui).
467 * 2 = this network block includes parameters for a persistent P2P
468 * group (can be used with P2P ctrl_iface commands)
469 */
470 int disabled;
471
472 /**
Dmitry Shmidtd5e49232012-12-03 15:08:10 -0800473 * disabled_for_connect - Whether this network was temporarily disabled
474 *
475 * This flag is used to reenable all the temporarily disabled networks
476 * after either the success or failure of a WPS connection.
477 */
478 int disabled_for_connect;
479
480 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700481 * id_str - Network identifier string for external scripts
482 *
483 * This value is passed to external ctrl_iface monitors in
484 * WPA_EVENT_CONNECTED event and wpa_cli sets this as WPA_ID_STR
485 * environment variable for action scripts.
486 */
487 char *id_str;
488
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700489 /**
490 * ieee80211w - Whether management frame protection is enabled
491 *
492 * This value is used to configure policy for management frame
493 * protection (IEEE 802.11w). 0 = disabled, 1 = optional, 2 = required.
Dmitry Shmidtd5e49232012-12-03 15:08:10 -0800494 * This is disabled by default unless the default value has been changed
495 * with the global pmf=1/2 parameter.
496 *
497 * Internally, special value 3 is used to indicate that the parameter
498 * was not specified in the configuration (i.e., default behavior is
499 * followed).
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700500 */
501 enum mfp_options ieee80211w;
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700502
Hai Shalom74f70d42019-02-11 14:42:39 -0800503#ifdef CONFIG_OCV
504 /**
505 * ocv - Enable/disable operating channel validation
506 *
507 * If this parameter is set to 1, stations will exchange OCI element
508 * to cryptographically verify the operating channel. Setting this
509 * parameter to 0 disables this option. Default value: 0.
510 */
511 int ocv;
512#endif /* CONFIG_OCV */
513
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700514 /**
515 * frequency - Channel frequency in megahertz (MHz) for IBSS
516 *
517 * This value is used to configure the initial channel for IBSS (adhoc)
518 * networks, e.g., 2412 = IEEE 802.11b/g channel 1. It is ignored in
519 * the infrastructure mode. In addition, this value is only used by the
520 * station that creates the IBSS. If an IBSS network with the
521 * configured SSID is already present, the frequency of the network
522 * will be used instead of this configured value.
523 */
524 int frequency;
525
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800526 /**
Hai Shalomc3565922019-10-28 11:58:20 -0700527 * enable_edmg - Enable EDMG feature in STA/AP mode
528 *
529 * This flag is used for enabling the EDMG capability in STA/AP mode.
530 */
531 int enable_edmg;
532
533 /**
534 * edmg_channel - EDMG channel number
535 *
536 * This value is used to configure the EDMG channel bonding feature.
537 * In AP mode it defines the EDMG channel to start the AP on.
538 * in STA mode it defines the EDMG channel to use for connection
539 * (if supported by AP).
540 */
541 u8 edmg_channel;
542
543 /**
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800544 * fixed_freq - Use fixed frequency for IBSS
545 */
546 int fixed_freq;
547
Dmitry Shmidt014a3ff2015-12-28 13:27:49 -0800548#ifdef CONFIG_ACS
549 /**
550 * ACS - Automatic Channel Selection for AP mode
551 *
552 * If present, it will be handled together with frequency.
553 * frequency will be used to determine hardware mode only, when it is
554 * used for both hardware mode and channel when used alone. This will
555 * force the channel to be set to 0, thus enabling ACS.
556 */
557 int acs;
558#endif /* CONFIG_ACS */
559
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800560 /**
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800561 * mesh_basic_rates - BSS Basic rate set for mesh network
562 *
563 */
564 int *mesh_basic_rates;
565
566 /**
567 * Mesh network plink parameters
568 */
569 int dot11MeshMaxRetries;
570 int dot11MeshRetryTimeout; /* msec */
571 int dot11MeshConfirmTimeout; /* msec */
572 int dot11MeshHoldingTimeout; /* msec */
573
Hai Shaloma20dcd72022-02-04 13:43:00 -0800574 /**
575 * Mesh network layer-2 forwarding (dot11MeshForwarding)
576 */
577 int mesh_fwding;
578
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700579 int ht;
Dmitry Shmidt61d9df32012-08-29 16:22:06 -0700580 int ht40;
581
Dmitry Shmidt68d0e3e2013-10-28 17:59:21 -0700582 int vht;
583
Hai Shalom74f70d42019-02-11 14:42:39 -0800584 int he;
585
Sunil8cd6f4d2022-06-28 18:40:46 +0000586 enum oper_chan_width max_oper_chwidth;
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800587
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700588 unsigned int vht_center_freq1;
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800589 unsigned int vht_center_freq2;
590
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700591 /**
592 * wpa_ptk_rekey - Maximum lifetime for PTK in seconds
593 *
594 * This value can be used to enforce rekeying of PTK to mitigate some
595 * attacks against TKIP deficiencies.
596 */
597 int wpa_ptk_rekey;
598
Hai Shalomfdcde762020-04-02 11:19:20 -0700599 /** wpa_deny_ptk0_rekey - Control PTK0 rekeying
600 *
601 * Rekeying a pairwise key using only keyid 0 (PTK0 rekey) has many
602 * broken implementations and should be avoided when using or
603 * interacting with one.
604 *
605 * 0 = always rekey when configured/instructed
606 * 1 = only rekey when the local driver is explicitly indicating it can
607 * perform this operation without issues
608 * 2 = never allow PTK0 rekeys
609 */
610 enum ptk0_rekey_handling wpa_deny_ptk0_rekey;
611
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700612 /**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700613 * group_rekey - Group rekeying time in seconds
614 *
615 * This value, if non-zero, is used as the dot11RSNAConfigGroupRekeyTime
616 * parameter when operating in Authenticator role in IBSS.
617 */
618 int group_rekey;
619
620 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700621 * scan_freq - Array of frequencies to scan or %NULL for all
622 *
623 * This is an optional zero-terminated array of frequencies in
624 * megahertz (MHz) to include in scan requests when searching for this
625 * network. This can be used to speed up scanning when the network is
626 * known to not use all possible channels.
627 */
628 int *scan_freq;
629
630 /**
631 * bgscan - Background scan and roaming parameters or %NULL if none
632 *
633 * This is an optional set of parameters for background scanning and
634 * roaming within a network (ESS) in following format:
635 * <bgscan module name>:<module parameters>
636 */
637 char *bgscan;
638
639 /**
Dmitry Shmidt04949592012-07-19 12:16:46 -0700640 * ignore_broadcast_ssid - Hide SSID in AP mode
641 *
642 * Send empty SSID in beacons and ignore probe request frames that do
643 * not specify full SSID, i.e., require stations to know SSID.
644 * default: disabled (0)
645 * 1 = send empty (length=0) SSID in beacon and ignore probe request
646 * for broadcast SSID
647 * 2 = clear SSID (ASCII 0), but keep the original length (this may be
648 * required with some clients that do not support empty SSID) and
649 * ignore probe requests for broadcast SSID
650 */
651 int ignore_broadcast_ssid;
652
653 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700654 * freq_list - Array of allowed frequencies or %NULL for all
655 *
656 * This is an optional zero-terminated array of frequencies in
657 * megahertz (MHz) to allow for selecting the BSS. If set, scan results
658 * that do not match any of the specified frequencies are not
659 * considered when selecting a BSS.
660 */
661 int *freq_list;
662
663 /**
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -0800664 * p2p_client_list - List of P2P Clients in a persistent group (GO)
665 *
666 * This is a list of P2P Clients (P2P Device Address) that have joined
667 * the persistent group. This is maintained on the GO for persistent
668 * group entries (disabled == 2).
669 */
670 u8 *p2p_client_list;
671
672 /**
673 * num_p2p_clients - Number of entries in p2p_client_list
674 */
675 size_t num_p2p_clients;
676
Dmitry Shmidt61d9df32012-08-29 16:22:06 -0700677#ifndef P2P_MAX_STORED_CLIENTS
678#define P2P_MAX_STORED_CLIENTS 100
679#endif /* P2P_MAX_STORED_CLIENTS */
680
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -0800681 /**
Dmitry Shmidt391c59f2013-09-03 12:16:28 -0700682 * psk_list - Per-client PSKs (struct psk_list_entry)
683 */
684 struct dl_list psk_list;
685
686 /**
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -0700687 * p2p_group - Network generated as a P2P group (used internally)
688 */
689 int p2p_group;
690
691 /**
692 * p2p_persistent_group - Whether this is a persistent group
693 */
694 int p2p_persistent_group;
695
696 /**
697 * temporary - Whether this network is temporary and not to be saved
698 */
699 int temporary;
700
701 /**
702 * export_keys - Whether keys may be exported
703 *
704 * This attribute will be set when keys are determined through
705 * WPS or similar so that they may be exported.
706 */
707 int export_keys;
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -0800708
709#ifdef CONFIG_HT_OVERRIDES
710 /**
711 * disable_ht - Disable HT (IEEE 802.11n) for this network
712 *
713 * By default, use it if it is available, but this can be configured
714 * to 1 to have it disabled.
715 */
716 int disable_ht;
717
718 /**
719 * disable_ht40 - Disable HT40 for this network
720 *
721 * By default, use it if it is available, but this can be configured
722 * to 1 to have it disabled.
723 */
724 int disable_ht40;
725
726 /**
Dmitry Shmidta54fa5f2013-01-15 13:53:35 -0800727 * disable_sgi - Disable SGI (Short Guard Interval) for this network
728 *
729 * By default, use it if it is available, but this can be configured
730 * to 1 to have it disabled.
731 */
732 int disable_sgi;
733
734 /**
Dmitry Shmidtdf5a7e42014-04-02 12:59:59 -0700735 * disable_ldpc - Disable LDPC for this network
736 *
737 * By default, use it if it is available, but this can be configured
738 * to 1 to have it disabled.
739 */
740 int disable_ldpc;
741
742 /**
Dmitry Shmidt61593f02014-04-21 16:27:35 -0700743 * ht40_intolerant - Indicate 40 MHz intolerant for this network
744 */
745 int ht40_intolerant;
746
747 /**
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -0800748 * disable_max_amsdu - Disable MAX A-MSDU
749 *
750 * A-MDSU will be 3839 bytes when disabled, or 7935
751 * when enabled (assuming it is otherwise supported)
752 * -1 (default) means do not apply any settings to the kernel.
753 */
754 int disable_max_amsdu;
755
756 /**
757 * ampdu_factor - Maximum A-MPDU Length Exponent
758 *
759 * Value: 0-3, see 7.3.2.56.3 in IEEE Std 802.11n-2009.
760 */
761 int ampdu_factor;
762
763 /**
764 * ampdu_density - Minimum A-MPDU Start Spacing
765 *
766 * Value: 0-7, see 7.3.2.56.3 in IEEE Std 802.11n-2009.
767 */
768 int ampdu_density;
769
770 /**
771 * ht_mcs - Allowed HT-MCS rates, in ASCII hex: ffff0000...
772 *
773 * By default (empty string): Use whatever the OS has configured.
774 */
775 char *ht_mcs;
Hai Shalom74f70d42019-02-11 14:42:39 -0800776
777 /**
778 * tx_stbc - Indicate STBC support for TX streams
779 *
780 * Value: -1..1, by default (-1): use whatever the OS or card has
781 * configured. See IEEE Std 802.11-2016, 9.4.2.56.2.
782 */
783 int tx_stbc;
784
785 /**
786 * rx_stbc - Indicate STBC support for RX streams
787 *
788 * Value: -1..3, by default (-1): use whatever the OS or card has
789 * configured. See IEEE Std 802.11-2016, 9.4.2.56.2.
790 */
791 int rx_stbc;
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -0800792#endif /* CONFIG_HT_OVERRIDES */
Dmitry Shmidt04949592012-07-19 12:16:46 -0700793
Dmitry Shmidt2f023192013-03-12 12:44:17 -0700794#ifdef CONFIG_VHT_OVERRIDES
795 /**
796 * disable_vht - Disable VHT (IEEE 802.11ac) for this network
797 *
798 * By default, use it if it is available, but this can be configured
799 * to 1 to have it disabled.
800 */
801 int disable_vht;
802
803 /**
804 * vht_capa - VHT capabilities to use
805 */
806 unsigned int vht_capa;
807
808 /**
809 * vht_capa_mask - mask for VHT capabilities
810 */
811 unsigned int vht_capa_mask;
812
813 int vht_rx_mcs_nss_1, vht_rx_mcs_nss_2,
814 vht_rx_mcs_nss_3, vht_rx_mcs_nss_4,
815 vht_rx_mcs_nss_5, vht_rx_mcs_nss_6,
816 vht_rx_mcs_nss_7, vht_rx_mcs_nss_8;
817 int vht_tx_mcs_nss_1, vht_tx_mcs_nss_2,
818 vht_tx_mcs_nss_3, vht_tx_mcs_nss_4,
819 vht_tx_mcs_nss_5, vht_tx_mcs_nss_6,
820 vht_tx_mcs_nss_7, vht_tx_mcs_nss_8;
821#endif /* CONFIG_VHT_OVERRIDES */
822
Hai Shalomfdcde762020-04-02 11:19:20 -0700823#ifdef CONFIG_HE_OVERRIDES
824 /**
825 * disable_he - Disable HE (IEEE 802.11ax) for this network
826 *
827 * By default, use it if it is available, but this can be configured
828 * to 1 to have it disabled.
829 */
830 int disable_he;
831#endif /* CONFIG_HE_OVERRIDES */
832
Dmitry Shmidt04949592012-07-19 12:16:46 -0700833 /**
834 * ap_max_inactivity - Timeout in seconds to detect STA's inactivity
835 *
836 * This timeout value is used in AP mode to clean up inactive stations.
837 * By default: 300 seconds.
838 */
839 int ap_max_inactivity;
840
841 /**
842 * dtim_period - DTIM period in Beacon intervals
843 * By default: 2
844 */
845 int dtim_period;
Dmitry Shmidt61d9df32012-08-29 16:22:06 -0700846
847 /**
Dmitry Shmidt7a5e50a2013-03-05 12:37:16 -0800848 * beacon_int - Beacon interval (default: 100 TU)
849 */
850 int beacon_int;
851
852 /**
Dmitry Shmidt61d9df32012-08-29 16:22:06 -0700853 * auth_failures - Number of consecutive authentication failures
854 */
855 unsigned int auth_failures;
856
857 /**
858 * disabled_until - Network block disabled until this time if non-zero
859 */
Dmitry Shmidtfb79edc2014-01-10 10:45:54 -0800860 struct os_reltime disabled_until;
Dmitry Shmidtd5e49232012-12-03 15:08:10 -0800861
862 /**
Sunil Ravi38ad1ed2023-01-17 23:58:31 +0000863 * disabled_due_to - BSSID of the disabling failure
864 *
865 * This identifies the BSS that failed the connection attempt that
866 * resulted in the network being temporarily disabled.
867 */
868 u8 disabled_due_to[ETH_ALEN];
869
870 /**
Dmitry Shmidtd5e49232012-12-03 15:08:10 -0800871 * parent_cred - Pointer to parent wpa_cred entry
872 *
873 * This pointer can be used to delete temporary networks when a wpa_cred
874 * that was used to create them is removed. This pointer should not be
875 * dereferences since it may not be updated in all cases.
876 */
877 void *parent_cred;
Dmitry Shmidt5a1480c2014-05-12 09:46:02 -0700878
879#ifdef CONFIG_MACSEC
880 /**
881 * macsec_policy - Determines the policy for MACsec secure session
882 *
883 * 0: MACsec not in use (default)
884 * 1: MACsec enabled - Should secure, accept key server's advice to
885 * determine whether to use a secure session or not.
886 */
887 int macsec_policy;
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800888
889 /**
890 * macsec_integ_only - Determines how MACsec are transmitted
891 *
892 * This setting applies only when MACsec is in use, i.e.,
893 * - macsec_policy is enabled
894 * - the key server has decided to enable MACsec
895 *
896 * 0: Encrypt traffic (default)
897 * 1: Integrity only
898 */
899 int macsec_integ_only;
900
901 /**
Hai Shalom74f70d42019-02-11 14:42:39 -0800902 * macsec_replay_protect - Enable MACsec replay protection
903 *
904 * This setting applies only when MACsec is in use, i.e.,
905 * - macsec_policy is enabled
906 * - the key server has decided to enable MACsec
907 *
908 * 0: Replay protection disabled (default)
909 * 1: Replay protection enabled
910 */
911 int macsec_replay_protect;
912
913 /**
914 * macsec_replay_window - MACsec replay protection window
915 *
916 * A window in which replay is tolerated, to allow receipt of frames
917 * that have been misordered by the network.
918 *
919 * This setting applies only when MACsec replay protection active, i.e.,
920 * - macsec_replay_protect is enabled
921 * - the key server has decided to enable MACsec
922 *
923 * 0: No replay window, strict check (default)
924 * 1..2^32-1: number of packets that could be misordered
925 */
926 u32 macsec_replay_window;
927
928 /**
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800929 * macsec_port - MACsec port (in SCI)
930 *
931 * Port component of the SCI.
932 *
933 * Range: 1-65534 (default: 1)
934 */
935 int macsec_port;
936
937 /**
Dmitry Shmidt29333592017-01-09 12:27:11 -0800938 * mka_priority - Priority of MKA Actor
939 *
940 * Range: 0-255 (default: 255)
941 */
942 int mka_priority;
943
944 /**
Sunil Ravia04bd252022-05-02 22:54:18 -0700945 * macsec_csindex - Cipher suite index for MACsec
946 *
947 * Range: 0-1 (default: 0)
948 */
949 int macsec_csindex;
950
951 /**
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800952 * mka_ckn - MKA pre-shared CKN
953 */
Hai Shalom74f70d42019-02-11 14:42:39 -0800954#define MACSEC_CKN_MAX_LEN 32
955 size_t mka_ckn_len;
956 u8 mka_ckn[MACSEC_CKN_MAX_LEN];
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800957
958 /**
959 * mka_cak - MKA pre-shared CAK
960 */
Hai Shalom74f70d42019-02-11 14:42:39 -0800961#define MACSEC_CAK_MAX_LEN 32
962 size_t mka_cak_len;
963 u8 mka_cak[MACSEC_CAK_MAX_LEN];
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800964
965#define MKA_PSK_SET_CKN BIT(0)
966#define MKA_PSK_SET_CAK BIT(1)
967#define MKA_PSK_SET (MKA_PSK_SET_CKN | MKA_PSK_SET_CAK)
968 /**
969 * mka_psk_set - Whether mka_ckn and mka_cak are set
970 */
971 u8 mka_psk_set;
Dmitry Shmidt5a1480c2014-05-12 09:46:02 -0700972#endif /* CONFIG_MACSEC */
Dmitry Shmidtc2817022014-07-02 10:32:10 -0700973
974#ifdef CONFIG_HS20
975 int update_identifier;
Roshan Pius3a1667e2018-07-03 15:17:14 -0700976
977 /**
978 * roaming_consortium_selection - Roaming Consortium Selection
979 *
980 * The matching Roaming Consortium OI that was used to generate this
981 * network profile.
982 */
983 u8 *roaming_consortium_selection;
984
985 /**
986 * roaming_consortium_selection_len - roaming_consortium_selection len
987 */
988 size_t roaming_consortium_selection_len;
Dmitry Shmidtc2817022014-07-02 10:32:10 -0700989#endif /* CONFIG_HS20 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700990
991 unsigned int wps_run;
992
993 /**
994 * mac_addr - MAC address policy
995 *
996 * 0 = use permanent MAC address
997 * 1 = use random MAC address for each ESS connection
998 * 2 = like 1, but maintain OUI (with local admin bit set)
Sunil Ravi38ad1ed2023-01-17 23:58:31 +0000999 * 3 = use dedicated/pregenerated MAC address (see mac_value)
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001000 *
1001 * Internally, special value -1 is used to indicate that the parameter
1002 * was not specified in the configuration (i.e., default behavior is
1003 * followed).
1004 */
Sunil Ravi38ad1ed2023-01-17 23:58:31 +00001005 enum wpas_mac_addr_style mac_addr;
1006
1007 /**
1008 * mac_value - Specific MAC address to be used
1009 *
1010 * When mac_addr policy is equal to 3 this is the value of the MAC
1011 * address that should be used.
1012 */
1013 u8 mac_value[ETH_ALEN];
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001014
1015 /**
1016 * no_auto_peer - Do not automatically peer with compatible mesh peers
1017 *
1018 * When unset, the reception of a beacon from a another mesh peer in
1019 * this MBSS will trigger a peering attempt.
1020 */
1021 int no_auto_peer;
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001022
1023 /**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001024 * mesh_rssi_threshold - Set mesh parameter mesh_rssi_threshold (dBm)
1025 *
1026 * -255..-1 = threshold value in dBm
1027 * 0 = not using RSSI threshold
1028 * 1 = do not change driver default
1029 */
1030 int mesh_rssi_threshold;
1031
1032 /**
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001033 * wps_disabled - WPS disabled in AP mode
1034 *
1035 * 0 = WPS enabled and configured (default)
1036 * 1 = WPS disabled
1037 */
1038 int wps_disabled;
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001039
1040 /**
1041 * fils_dh_group - FILS DH Group
1042 *
1043 * 0 = PFS disabled with FILS shared key authentication
1044 * 1-65535 DH Group to use for FILS PFS
1045 */
1046 int fils_dh_group;
1047
1048 /**
1049 * dpp_connector - DPP Connector (signedConnector as string)
1050 */
1051 char *dpp_connector;
1052
1053 /**
1054 * dpp_netaccesskey - DPP netAccessKey (own private key)
1055 */
1056 u8 *dpp_netaccesskey;
1057
1058 /**
1059 * dpp_netaccesskey_len - DPP netAccessKey length in octets
1060 */
1061 size_t dpp_netaccesskey_len;
1062
1063 /**
1064 * net_access_key_expiry - DPP netAccessKey expiry in UNIX time stamp
1065 *
1066 * 0 indicates no expiration.
1067 */
1068 unsigned int dpp_netaccesskey_expiry;
1069
1070 /**
1071 * dpp_csign - C-sign-key (Configurator public key)
1072 */
1073 u8 *dpp_csign;
1074
1075 /**
1076 * dpp_csign_len - C-sign-key length in octets
1077 */
1078 size_t dpp_csign_len;
1079
1080 /**
Hai Shalom899fcc72020-10-19 14:38:18 -07001081 * dpp_pp_key - ppKey (Configurator privacy protection public key)
1082 */
1083 u8 *dpp_pp_key;
1084
1085 /**
1086 * dpp_pp_key_len - ppKey length in octets
1087 */
1088 size_t dpp_pp_key_len;
1089
1090 /**
Hai Shalomfdcde762020-04-02 11:19:20 -07001091 * dpp_pfs - DPP PFS
1092 * 0: allow PFS to be used or not used
1093 * 1: require PFS to be used (note: not compatible with DPP R1)
1094 * 2: do not allow PFS to be used
1095 */
1096 int dpp_pfs;
1097
1098 /**
1099 * dpp_pfs_fallback - DPP PFS fallback selection
1100 *
1101 * This is an internally used variable (i.e., not used in external
1102 * configuration) to track state of the DPP PFS fallback mechanism.
1103 */
1104 int dpp_pfs_fallback;
1105
1106 /**
Sunil Ravi89eba102022-09-13 21:04:37 -07001107 * dpp_connector_privacy - Network introduction type
1108 * 0: unprotected variant from DPP R1
1109 * 1: privacy protecting (station Connector encrypted) variant from
1110 * DPP R3
1111 */
1112 int dpp_connector_privacy;
1113
1114 /**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001115 * owe_group - OWE DH Group
1116 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07001117 * 0 = use default (19) first and then try all supported groups one by
1118 * one if AP rejects the selected group
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001119 * 1-65535 DH Group to use for OWE
1120 *
1121 * Groups 19 (NIST P-256), 20 (NIST P-384), and 21 (NIST P-521) are
1122 * currently supported.
1123 */
1124 int owe_group;
Roshan Pius3a1667e2018-07-03 15:17:14 -07001125
1126 /**
1127 * owe_only - OWE-only mode (disable transition mode)
1128 *
1129 * 0 = enable transition mode (allow connection to either OWE or open
1130 * BSS)
1131 * 1 = disable transition mode (allow connection only with OWE)
1132 */
1133 int owe_only;
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001134
1135 /**
Hai Shalomfdcde762020-04-02 11:19:20 -07001136 * owe_ptk_workaround - OWE PTK derivation workaround
1137 *
1138 * Initial OWE implementation used SHA256 when deriving the PTK for all
1139 * OWE groups. This was supposed to change to SHA384 for group 20 and
1140 * SHA512 for group 21. This parameter can be used to enable older
1141 * behavior mainly for testing purposes. There is no impact to group 19
1142 * behavior, but if enabled, this will make group 20 and 21 cases use
1143 * SHA256-based PTK derivation which will not work with the updated
1144 * OWE implementation on the AP side.
1145 */
1146 int owe_ptk_workaround;
1147
1148 /**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001149 * owe_transition_bss_select_count - OWE transition BSS select count
1150 *
1151 * This is an internally used variable (i.e., not used in external
1152 * configuration) to track the number of selection attempts done for
1153 * OWE BSS in transition mode. This allows fallback to an open BSS if
1154 * the selection attempts for OWE BSS exceed the configured threshold.
1155 */
1156 int owe_transition_bss_select_count;
Hai Shalom74f70d42019-02-11 14:42:39 -08001157
1158 /**
1159 * multi_ap_backhaul_sta - Multi-AP backhaul STA
1160 * 0 = normal (non-Multi-AP) station
1161 * 1 = Multi-AP backhaul station
1162 */
1163 int multi_ap_backhaul_sta;
Hai Shalom81f62d82019-07-22 12:10:00 -07001164
1165 /**
1166 * ft_eap_pmksa_caching - Whether FT-EAP PMKSA caching is allowed
1167 * 0 = do not try to use PMKSA caching with FT-EAP
1168 * 1 = try to use PMKSA caching with FT-EAP
1169 *
1170 * This controls whether to try to use PMKSA caching with FT-EAP for the
1171 * FT initial mobility domain association.
1172 */
1173 int ft_eap_pmksa_caching;
Hai Shalomfdcde762020-04-02 11:19:20 -07001174
1175 /**
1176 * beacon_prot - Whether Beacon protection is enabled
1177 *
1178 * This depends on management frame protection (ieee80211w) being
1179 * enabled.
1180 */
1181 int beacon_prot;
1182
1183 /**
1184 * transition_disable - Transition Disable indication
1185 * The AP can notify authenticated stations to disable transition mode
1186 * in their network profiles when the network has completed transition
1187 * steps, i.e., once sufficiently large number of APs in the ESS have
1188 * been updated to support the more secure alternative. When this
1189 * indication is used, the stations are expected to automatically
1190 * disable transition mode and less secure security options. This
1191 * includes use of WEP, TKIP (including use of TKIP as the group
1192 * cipher), and connections without PMF.
1193 * Bitmap bits:
1194 * bit 0 (0x01): WPA3-Personal (i.e., disable WPA2-Personal = WPA-PSK
1195 * and only allow SAE to be used)
1196 * bit 1 (0x02): SAE-PK (disable SAE without use of SAE-PK)
1197 * bit 2 (0x04): WPA3-Enterprise (move to requiring PMF)
1198 * bit 3 (0x08): Enhanced Open (disable use of open network; require
1199 * OWE)
1200 */
1201 u8 transition_disable;
Hai Shalom899fcc72020-10-19 14:38:18 -07001202
1203 /**
1204 * sae_pk - SAE-PK mode
1205 * 0 = automatic SAE/SAE-PK selection based on password; enable
1206 * transition mode (allow SAE authentication without SAE-PK)
1207 * 1 = SAE-PK only (disable transition mode; allow SAE authentication
1208 * only with SAE-PK)
1209 * 2 = disable SAE-PK (allow SAE authentication only without SAE-PK)
1210 */
1211 enum sae_pk_mode sae_pk;
1212
1213 /**
1214 * was_recently_reconfigured - Whether this SSID config has been changed
1215 * recently
1216 *
1217 * This is an internally used variable, i.e., not used in external
1218 * configuration.
1219 */
1220 bool was_recently_reconfigured;
Hai Shaloma20dcd72022-02-04 13:43:00 -08001221
1222 /**
1223 * sae_pwe - SAE mechanism for PWE derivation
1224 *
1225 * Internally, special value 4 (DEFAULT_SAE_PWE) is used to indicate
1226 * that the parameter is not set and the global sae_pwe value needs to
1227 * be considered.
1228 *
1229 * 0 = hunting-and-pecking loop only
1230 * 1 = hash-to-element only
1231 * 2 = both hunting-and-pecking loop and hash-to-element enabled
1232 */
Sunil Ravi38ad1ed2023-01-17 23:58:31 +00001233 enum sae_pwe sae_pwe;
1234
1235 /**
1236 * disable_eht - Disable EHT (IEEE 802.11be) for this network
1237 *
1238 * By default, use it if it is available, but this can be configured
1239 * to 1 to have it disabled.
1240 */
1241 int disable_eht;
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001242};
1243
1244#endif /* CONFIG_SSID_H */