wpa_supplicant / hostapd 2.0

config_ssid.h

Go to the documentation of this file.
00001 
00010 #ifndef CONFIG_SSID_H
00011 #define CONFIG_SSID_H
00012 
00013 #include "common/defs.h"
00014 #include "eap_peer/eap_config.h"
00015 
00016 #define MAX_SSID_LEN 32
00017 
00018 
00019 #define DEFAULT_EAP_WORKAROUND ((unsigned int) -1)
00020 #define DEFAULT_EAPOL_FLAGS (EAPOL_FLAG_REQUIRE_KEY_UNICAST | \
00021                              EAPOL_FLAG_REQUIRE_KEY_BROADCAST)
00022 #define DEFAULT_PROTO (WPA_PROTO_WPA | WPA_PROTO_RSN)
00023 #define DEFAULT_KEY_MGMT (WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_IEEE8021X)
00024 #define DEFAULT_PAIRWISE (WPA_CIPHER_CCMP | WPA_CIPHER_TKIP)
00025 #define DEFAULT_GROUP (WPA_CIPHER_CCMP | WPA_CIPHER_TKIP | \
00026                        WPA_CIPHER_WEP104 | WPA_CIPHER_WEP40)
00027 #define DEFAULT_FRAGMENT_SIZE 1398
00028 
00029 #define DEFAULT_BG_SCAN_PERIOD -1
00030 #define DEFAULT_DISABLE_HT 0
00031 #define DEFAULT_DISABLE_HT40 0
00032 #define DEFAULT_DISABLE_MAX_AMSDU -1 /* no change */
00033 #define DEFAULT_AMPDU_FACTOR -1 /* no change */
00034 #define DEFAULT_AMPDU_DENSITY -1 /* no change */
00035 
00045 struct wpa_ssid {
00053         struct wpa_ssid *next;
00054 
00063         struct wpa_ssid *pnext;
00064 
00074         int id;
00075 
00094         int priority;
00095 
00108         u8 *ssid;
00109 
00114         size_t ssid_len;
00115 
00126         u8 bssid[ETH_ALEN];
00127 
00132         int bssid_set;
00133 
00138         u8 psk[32];
00139 
00144         int psk_set;
00145 
00154         char *passphrase;
00155 
00160         int pairwise_cipher;
00161 
00166         int group_cipher;
00167 
00174         int key_mgmt;
00175 
00181         int bg_scan_period;
00182 
00187         int proto;
00188 
00195         int auth_alg;
00196 
00205         int scan_ssid;
00206 
00207 #ifdef IEEE8021X_EAPOL
00208 #define EAPOL_FLAG_REQUIRE_KEY_UNICAST BIT(0)
00209 #define EAPOL_FLAG_REQUIRE_KEY_BROADCAST BIT(1)
00210 
00214         int eapol_flags;
00215 
00220         struct eap_peer_config eap;
00221 #endif /* IEEE8021X_EAPOL */
00222 
00223 #define NUM_WEP_KEYS 4
00224 #define MAX_WEP_KEY_LEN 16
00225 
00229         u8 wep_key[NUM_WEP_KEYS][MAX_WEP_KEY_LEN];
00230 
00235         size_t wep_key_len[NUM_WEP_KEYS];
00236 
00241         int wep_tx_keyidx;
00242 
00257         int proactive_key_caching;
00258 
00268         int mixed_cell;
00269 
00270 #ifdef IEEE8021X_EAPOL
00271 
00279         int leap;
00280 
00289         int non_leap;
00290 
00303         unsigned int eap_workaround;
00304 
00305 #endif /* IEEE8021X_EAPOL */
00306 
00329         enum wpas_mode {
00330                 WPAS_MODE_INFRA = 0,
00331                 WPAS_MODE_IBSS = 1,
00332                 WPAS_MODE_AP = 2,
00333                 WPAS_MODE_P2P_GO = 3,
00334                 WPAS_MODE_P2P_GROUP_FORMATION = 4,
00335         } mode;
00336 
00347         int disabled;
00348 
00359         int peerkey;
00360 
00369         char *id_str;
00370 
00371 #ifdef CONFIG_IEEE80211W
00372 
00379         enum mfp_options ieee80211w;
00380 #endif /* CONFIG_IEEE80211W */
00381 
00393         int frequency;
00394 
00402         int wpa_ptk_rekey;
00403 
00413         int *scan_freq;
00414 
00423         char *bgscan;
00424 
00438         int ignore_broadcast_ssid;
00439 
00449         int *freq_list;
00450 
00459         u8 *p2p_client_list;
00460 
00465         size_t num_p2p_clients;
00466 
00471         int p2p_group;
00472 
00477         int p2p_persistent_group;
00478 
00483         int temporary;
00484 
00492         int export_keys;
00493 
00494 #ifdef CONFIG_HT_OVERRIDES
00495 
00502         int disable_ht;
00503 
00511         int disable_ht40;
00512 
00521         int disable_max_amsdu;
00522 
00529         int ampdu_factor;
00530 
00537         int ampdu_density;
00538 
00545         char *ht_mcs;
00546 #endif /* CONFIG_HT_OVERRIDES */
00547 
00555         int ap_max_inactivity;
00556 };
00557 
00558 #endif /* CONFIG_SSID_H */
00559 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines