33#define WIFI_REGION_EUROPE 0
38#define WIFI_REGION_NORTH_AMERICA 1
43#define WIFI_REGION_ASIA 2
45#if !defined(CONFIG_WIFI_REGION) || defined(DOXYGEN)
49#define CONFIG_WIFI_REGION WIFI_REGION_EUROPE
55#define WIFI_REGION CONFIG_WIFI_REGION
77#if WIFI_REGION == WIFI_REGION_EUROPE
81#define WIFI_2_4_CH_MIN 1
86#define WIFI_2_4_CH_MAX 13
87#elif WIFI_REGION == WIFI_REGION_NORTH_AMERICA
88#define WIFI_2_4_CH_MIN 1
89#define WIFI_2_4_CH_MAX 11
90#elif WIFI_REGION == WIFI_REGION_ASIA
91#define WIFI_2_4_CH_MIN 1
92#define WIFI_2_4_CH_MAX 14
94#error "WIFI_REGION undefined"
100#define WIFI_2_4_CH_NUMOF (2 + (WIFI_2_4_CH_MAX - WIFI_2_4_CH_MIN))
115#define WIFI_SSID_LEN_MAX 32
120#define WIFI_WPA_PSK_LEN_MAX 63
125#define WIFI_WEP_PSK_LEN_MAX 16
130#define WIFI_EAP_USER_LEN_MAX 20
135#define WIFI_EAP_PWD_LEN_MAX 40
struct wifi_security_wpa_psk wifi_security_wpa_psk_t
A WPA pre-shared-key.
wifi_security_mode_t
Type to express a Wi-Fi security mode.
struct wifi_security_wpa_enterprise wifi_security_wpa_enterprise_t
WPA2 Enterprise credentials.
#define WIFI_WEP_PSK_LEN_MAX
Maximum length of a WEP key.
struct wifi_security_wep_psk wifi_security_wep_psk_t
A WEP pre-shared-key.
wifi_2_4_channel_t
2.4 GHz Channels
#define WIFI_EAP_PWD_LEN_MAX
Maximum password length for WPA2 Enterprise.
#define WIFI_EAP_USER_LEN_MAX
Maximum username length for WPA2 Enterprise.
#define WIFI_WPA_PSK_LEN_MAX
Maximum length of a WPA key.
@ WIFI_SECURITY_MODE_WPA2_ENTERPRISE
AP is protected with WPA2 Enterprise mode.
@ WIFI_SECURITY_MODE_WEP_PSK
AP is protected with WEP.
@ WIFI_SECURITY_MODE_WPA2_PERSONAL
AP is protected with WPA2 Personal mode.
@ WIFI_SECURITY_MODE_OPEN
AP is open.
@ WIFI_2_4_CH_9
2.4 GHz channel 9
@ WIFI_2_4_CH_6
2.4 GHz channel 6
@ WIFI_2_4_CH_5
2.4 GHz channel 5
@ WIFI_2_4_CH_8
2.4 GHz channel 8
@ WIFI_2_4_CH_1
2.4 GHz channel 1
@ WIFI_2_4_CH_2
2.4 GHz channel 2
@ WIFI_2_4_CH_10
2.4 GHz channel 10
@ WIFI_2_4_CH_13
2.4 GHz channel 13
@ WIFI_2_4_CH_14
2.4 GHz channel 14
@ WIFI_2_4_CH_7
2.4 GHz channel 7
@ WIFI_2_4_CH_4
2.4 GHz channel 4
@ WIFI_2_4_CH_3
2.4 GHz channel 3
@ WIFI_2_4_CH_12
2.4 GHz channel 12
@ WIFI_2_4_CH_11
2.4 GHz channel 11
Adds include for missing inttype definitions.
char psk[WIFI_WEP_PSK_LEN_MAX+1]
Key data.
wifi_security_mode_t sec
WIFI_SECURITY_MODE_WEP_PSK
WPA2 Enterprise credentials.
char user[WIFI_EAP_USER_LEN_MAX+1]
Username.
wifi_security_mode_t sec
WIFI_SECURITY_MODE_WPA2_ENTERPRISE
char pwd[WIFI_EAP_PWD_LEN_MAX+1]
Password.
char psk[WIFI_WPA_PSK_LEN_MAX+1]
Key data.
wifi_security_mode_t sec
WIFI_SECURITY_MODE_WPA2_PERSONAL