Loading...
Searching...
No Matches
wifi.h File Reference

Definitions for Wi-Fi. More...

Detailed Description

Definitions for Wi-Fi.

Author
Fabian Hüßler fabia.nosp@m.n.hu.nosp@m.essle.nosp@m.r@ml.nosp@m.-pa.c.nosp@m.om

Definition in file wifi.h.

#include <inttypes.h>
+ Include dependency graph for wifi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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...