Loading...
Searching...
No Matches

Provides Wi-Fi definitions. More...

Detailed Description

Provides Wi-Fi definitions.

Files

file  wifi.h
 Definitions for Wi-Fi.
 

Data Structures

struct  wifi_security_wpa_psk
 A WPA pre-shared-key. More...
 
struct  wifi_security_wep_psk
 A WEP pre-shared-key. More...
 
struct  wifi_security_wpa_enterprise
 WPA2 Enterprise credentials. More...
 

Macros

#define WIFI_REGION_EUROPE   0
 Wi-Fi region Europe.
 
#define WIFI_REGION_NORTH_AMERICA   1
 Wi-Fi region North America.
 
#define WIFI_REGION_ASIA   2
 Wi-Fi region Asia.
 
#define CONFIG_WIFI_REGION   WIFI_REGION_EUROPE
 Used to select regional Wi-Fi restrictions.
 
#define WIFI_REGION   CONFIG_WIFI_REGION
 Current Wi-Fi region.
 
#define WIFI_2_4_CH_MIN   1
 Lowest Wi-Fi channel.
 
#define WIFI_2_4_CH_MAX   13
 Highest Wi-Fi channel.
 
#define WIFI_2_4_CH_NUMOF   (2 + (WIFI_2_4_CH_MAX - WIFI_2_4_CH_MIN))
 Number of 2.4 GHz channels.
 
#define WIFI_SSID_LEN_MAX   32
 Maximum length of an SSID.
 
#define WIFI_WPA_PSK_LEN_MAX   63
 Maximum length of a WPA key.
 
#define WIFI_WEP_PSK_LEN_MAX   16
 Maximum length of a WEP key.
 
#define WIFI_EAP_USER_LEN_MAX   20
 Maximum username length for WPA2 Enterprise.
 
#define WIFI_EAP_PWD_LEN_MAX   40
 Maximum password length for WPA2 Enterprise.
 

Typedefs

typedef struct wifi_security_wpa_psk wifi_security_wpa_psk_t
 A WPA pre-shared-key.
 
typedef struct wifi_security_wep_psk wifi_security_wep_psk_t
 A WEP pre-shared-key.
 
typedef struct wifi_security_wpa_enterprise wifi_security_wpa_enterprise_t
 WPA2 Enterprise credentials.
 

Enumerations

enum  wifi_2_4_channel_t {
  WIFI_2_4_CH_1 = 1 , WIFI_2_4_CH_2 = 2 , WIFI_2_4_CH_3 = 3 , WIFI_2_4_CH_4 = 4 ,
  WIFI_2_4_CH_5 = 5 , WIFI_2_4_CH_6 = 6 , WIFI_2_4_CH_7 = 7 , WIFI_2_4_CH_8 = 8 ,
  WIFI_2_4_CH_9 = 9 , WIFI_2_4_CH_10 = 10 , WIFI_2_4_CH_11 = 11 , WIFI_2_4_CH_12 = 12 ,
  WIFI_2_4_CH_13 = 13 , WIFI_2_4_CH_14 = 14
}
 2.4 GHz Channels More...
 
enum  wifi_security_mode_t { WIFI_SECURITY_MODE_OPEN , WIFI_SECURITY_MODE_WEP_PSK , WIFI_SECURITY_MODE_WPA2_PERSONAL , WIFI_SECURITY_MODE_WPA2_ENTERPRISE }
 Type to express a Wi-Fi security mode. More...
 

Macro Definition Documentation

◆ CONFIG_WIFI_REGION

#define CONFIG_WIFI_REGION   WIFI_REGION_EUROPE

Used to select regional Wi-Fi restrictions.

Definition at line 49 of file wifi.h.

◆ WIFI_2_4_CH_MAX

#define WIFI_2_4_CH_MAX   13

Highest Wi-Fi channel.

Definition at line 86 of file wifi.h.

◆ WIFI_2_4_CH_MIN

#define WIFI_2_4_CH_MIN   1

Lowest Wi-Fi channel.

Definition at line 81 of file wifi.h.

◆ WIFI_2_4_CH_NUMOF

#define WIFI_2_4_CH_NUMOF   (2 + (WIFI_2_4_CH_MAX - WIFI_2_4_CH_MIN))

Number of 2.4 GHz channels.

Definition at line 100 of file wifi.h.

◆ WIFI_EAP_PWD_LEN_MAX

#define WIFI_EAP_PWD_LEN_MAX   40

Maximum password length for WPA2 Enterprise.

Definition at line 135 of file wifi.h.

◆ WIFI_EAP_USER_LEN_MAX

#define WIFI_EAP_USER_LEN_MAX   20

Maximum username length for WPA2 Enterprise.

Definition at line 130 of file wifi.h.

◆ WIFI_REGION

#define WIFI_REGION   CONFIG_WIFI_REGION

Current Wi-Fi region.

Definition at line 55 of file wifi.h.

◆ WIFI_REGION_ASIA

#define WIFI_REGION_ASIA   2

Wi-Fi region Asia.

Definition at line 43 of file wifi.h.

◆ WIFI_REGION_EUROPE

#define WIFI_REGION_EUROPE   0

Wi-Fi region Europe.

Definition at line 33 of file wifi.h.

◆ WIFI_REGION_NORTH_AMERICA

#define WIFI_REGION_NORTH_AMERICA   1

Wi-Fi region North America.

Definition at line 38 of file wifi.h.

◆ WIFI_SSID_LEN_MAX

#define WIFI_SSID_LEN_MAX   32

Maximum length of an SSID.

Definition at line 115 of file wifi.h.

◆ WIFI_WEP_PSK_LEN_MAX

#define WIFI_WEP_PSK_LEN_MAX   16

Maximum length of a WEP key.

Definition at line 125 of file wifi.h.

◆ WIFI_WPA_PSK_LEN_MAX

#define WIFI_WPA_PSK_LEN_MAX   63

Maximum length of a WPA key.

Definition at line 120 of file wifi.h.

Enumeration Type Documentation

◆ wifi_2_4_channel_t

2.4 GHz Channels

Enumerator
WIFI_2_4_CH_1 

2.4 GHz channel 1

WIFI_2_4_CH_2 

2.4 GHz channel 2

WIFI_2_4_CH_3 

2.4 GHz channel 3

WIFI_2_4_CH_4 

2.4 GHz channel 4

WIFI_2_4_CH_5 

2.4 GHz channel 5

WIFI_2_4_CH_6 

2.4 GHz channel 6

WIFI_2_4_CH_7 

2.4 GHz channel 7

WIFI_2_4_CH_8 

2.4 GHz channel 8

WIFI_2_4_CH_9 

2.4 GHz channel 9

WIFI_2_4_CH_10 

2.4 GHz channel 10

WIFI_2_4_CH_11 

2.4 GHz channel 11

WIFI_2_4_CH_12 

2.4 GHz channel 12

WIFI_2_4_CH_13 

2.4 GHz channel 13

WIFI_2_4_CH_14 

2.4 GHz channel 14

Definition at line 60 of file wifi.h.

◆ wifi_security_mode_t

Type to express a Wi-Fi security mode.

Enumerator
WIFI_SECURITY_MODE_OPEN 

AP is open.

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_WPA2_ENTERPRISE 

AP is protected with WPA2 Enterprise mode.

Definition at line 105 of file wifi.h.