File nut/include/dev/wlan.h

* This file is part of the WLAN-Ethernut device driver.
* Copyright (c) 2004 by Michael Fischer. All rights reserved.
* Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met:
* 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the author nor the names of its contributors may * be used to endorse or promote products derived from this software * without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE.
**************************************************************************** * History:
* 27.01.04 mifi First Version


Included Files


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 WLAN_IOCTL

typedef enum {...} WLAN_IOCTL
enum  
   {  
      WLAN_IOCTL_GET_MAC_ADDRESS;  
      WLAN_IOCTL_SET_CONFIG;  
      WLAN_IOCTL_GET_STATUS;  
   }  

Typedef WLAN_MODE

typedef enum {...} WLAN_MODE
enum  
   {  
      WLAN_MODE_STOP;  
      WLAN_MODE_STATION;  
      WLAN_MODE_ADHOC;  
   }  

Typedef WLAN_STATUS_PORT

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 WLAN_WEP

typedef enum {...} WLAN_WEP
enum  
   {  
      WLAN_USE_NO_WEP;  
      WLAN_USE_64BIT_WEP;  
      WLAN_USE_128BIT_WEP;  
   }  

Typedef WLAN_WEP_KEY

typedef struct _wlan_wep_key WLAN_WEP_KEY
struct _wlan_wep_key  
   {  
      u_char KeyLen;  
      u_char Key[16];  
   }  

Typedef WLAN_CONFIG

typedef struct _wlan_config WLAN_CONFIG
struct _wlan_config  
   {  
      u_short Size;  
      WLAN_MODE Mode;  
      char Networkname[32];  
      WLAN_WEP UseWEP;  
      u_char UseWEPTxKey;  
      WLAN_WEP_KEY WEPKey[4];  
   }  

Typedef WLAN_STATUS

typedef struct _wlan_status WLAN_STATUS
struct _wlan_status  
   {  
      u_char Size;  
      WLAN_STATUS_PORT PortStatus;  
      u_char BSSIDAddress[6];  
      u_char Channel;  
      u_char TxRate;  
      u_short Quality;  
      u_short Signal;  
      u_short Noise;  
   }  

External Variables

devWlan
extern NUTDEVICE devWlan
Defined in: nut/arch/avr/dev/wlan.c