Included Files
- #include <nut/include/dev/netbuf.h>
- #include <nut/include/net/if_var.h>
Preprocessor definitions
#define __WLAN_H__
#define DEV_ETHER devWlan
#define WLAN_NETWORK_NAME_MAX_LEN 32
#define WLAN_WEP_MAX_KEY_COUNT 4
#define WLAN_WEP_MAX_KEY_SIZE 16
typedef enum {...} WLAN_IOCTL
enum
|
|
{
|
|
WLAN_IOCTL_GET_MAC_ADDRESS;
|
|
WLAN_IOCTL_SET_CONFIG;
|
|
WLAN_IOCTL_GET_STATUS;
|
|
}
|
|
typedef enum {...} WLAN_MODE
enum
|
|
{
|
|
WLAN_MODE_STOP;
|
|
WLAN_MODE_STATION;
|
|
WLAN_MODE_ADHOC;
|
|
}
|
|
typedef enum {...} WLAN_STATUS_PORT
enum
|
|
{
|
|
WLAN_STATUS_PORT_DISABLE;
|
|
WLAN_STATUS_PORT_SEARCHING;
|
|
WLAN_STATUS_PORT_CONN_IBSS;
|
|
WLAN_STATUS_PORT_CONN_ESS;
|
|
WLAN_STATUS_PORT_OOR_ESS;
|
|
}
|
|
typedef enum {...} WLAN_WEP
enum
|
|
{
|
|
WLAN_USE_NO_WEP;
|
|
WLAN_USE_64BIT_WEP;
|
|
WLAN_USE_128BIT_WEP;
|
|
}
|
|
typedef struct _wlan_wep_key WLAN_WEP_KEY
struct _wlan_wep_key
|
|
{
|
|
uint8_t KeyLen;
|
|
uint8_t Key[16];
|
|
}
|
|
typedef struct _wlan_config WLAN_CONFIG
struct _wlan_config
|
|
{
|
|
uint16_t Size;
|
|
WLAN_MODE Mode;
|
|
char Networkname[32];
|
|
WLAN_WEP UseWEP;
|
|
uint8_t UseWEPTxKey;
|
|
WLAN_WEP_KEY WEPKey[4];
|
|
}
|
|
typedef struct _wlan_status WLAN_STATUS
struct _wlan_status
|
|
{
|
|
uint8_t Size;
|
|
WLAN_STATUS_PORT PortStatus;
|
|
uint8_t BSSIDAddress[6];
|
|
uint8_t Channel;
|
|
uint8_t TxRate;
|
|
uint16_t Quality;
|
|
uint16_t Signal;
|
|
uint16_t Noise;
|
|
}
|
|
External Variables
devWlan
extern NUTDEVICE devWlan