4
#define WPA_CIPHER_NONE BIT(0)
5
#define WPA_CIPHER_WEP40 BIT(1)
6
#define WPA_CIPHER_WEP104 BIT(2)
7
#define WPA_CIPHER_TKIP BIT(3)
8
#define WPA_CIPHER_CCMP BIT(4)
10
#define WPA_KEY_MGMT_IEEE8021X BIT(0)
11
#define WPA_KEY_MGMT_PSK BIT(1)
12
#define WPA_KEY_MGMT_NONE BIT(2)
13
#define WPA_KEY_MGMT_IEEE8021X_NO_WPA BIT(3)
14
#define WPA_KEY_MGMT_WPA_NONE BIT(4)
16
#define WPA_PROTO_WPA BIT(0)
17
#define WPA_PROTO_RSN BIT(1)
19
#define WPA_AUTH_ALG_OPEN BIT(0)
20
#define WPA_AUTH_ALG_SHARED BIT(1)
21
#define WPA_AUTH_ALG_LEAP BIT(2)
23
#define MAX_SSID_LEN 32
25
#define EAP_PSK_LEN 16
28
struct wpa_ssid *next; /* next network in global list */
29
struct wpa_ssid *pnext; /* next network in per-priority list */
30
int id; /* unique id for ctrl_iface */
39
/* Bitfields of allowed Pairwise/Group Ciphers, WPA_CIPHER_* */
43
int proto; /* Bitfield of allowed protocols (WPA_PROTO_*) */
44
int auth_alg; /* Bitfield of allow authentication algorithms
46
int scan_ssid; /* scan this SSID with Probe Requests */
47
u8 *identity; /* EAP Identity */
49
u8 *anonymous_identity; /* Anonymous EAP Identity (for unencrypted use
50
* with EAP types that support different
51
* tunnelled identity, e.g., EAP-TTLS) */
52
size_t anonymous_identity_len;
58
size_t server_nai_len;
64
u8 *private_key_passwd;
70
u8 *private_key2_passwd;
73
u8 *eap_methods; /* zero (EAP_TYPE_NONE) terminated list of allowed
74
* EAP methods or NULL = any */
80
#define EAPOL_FLAG_REQUIRE_KEY_UNICAST BIT(0)
81
#define EAPOL_FLAG_REQUIRE_KEY_BROADCAST BIT(1)
82
int eapol_flags; /* bit field of IEEE 802.1X/EAPOL options */
84
#define NUM_WEP_KEYS 4
85
#define MAX_WEP_KEY_LEN 16
86
u8 wep_key[NUM_WEP_KEYS][MAX_WEP_KEY_LEN];
87
size_t wep_key_len[NUM_WEP_KEYS];
90
/* Per SSID variables that are not read from the configuration file */
93
int pending_req_identity, pending_req_password;
94
char *pending_req_otp;
95
size_t pending_req_otp_len;
98
unsigned int eap_workaround;
105
int wpa_config_allowed_eap_method(struct wpa_ssid *ssid, int method);
106
const char * wpa_cipher_txt(int cipher);
107
const char * wpa_key_mgmt_txt(int key_mgmt, int proto);
109
#endif /* CONFIG_SSID_H */