Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef _INC_WLANTYPES
      7 #define _INC_WLANTYPES
      8 
      9 #ifdef __cplusplus
     10 extern "C" {
     11 #endif
     12 
     13 #define DOT11_SSID_MAX_LENGTH 32
     14 
     15 typedef enum _DOT11_AUTH_ALGORITHM {
     16   DOT11_AUTH_ALGO_80211_OPEN         = 1,
     17   DOT11_AUTH_ALGO_80211_SHARED_KEY   = 2,
     18   DOT11_AUTH_ALGO_WPA                = 3,
     19   DOT11_AUTH_ALGO_WPA_PSK            = 4,
     20   DOT11_AUTH_ALGO_WPA_NONE           = 5,
     21   DOT11_AUTH_ALGO_RSNA               = 6,
     22   DOT11_AUTH_ALGO_RSNA_PSK           = 7,
     23   DOT11_AUTH_ALGO_IHV_START          = 0x80000000,
     24   DOT11_AUTH_ALGO_IHV_END            = 0xffffffff
     25 } DOT11_AUTH_ALGORITHM, *PDOT11_AUTH_ALGORITHM;
     26 
     27 typedef enum _DOT11_CIPHER_ALGORITHM {
     28   DOT11_CIPHER_ALGO_NONE            = 0x00,
     29   DOT11_CIPHER_ALGO_WEP40           = 0x01,
     30   DOT11_CIPHER_ALGO_TKIP            = 0x02,
     31   DOT11_CIPHER_ALGO_CCMP            = 0x04,
     32   DOT11_CIPHER_ALGO_WEP104          = 0x05,
     33   DOT11_CIPHER_ALGO_WPA_USE_GROUP   = 0x100,
     34   DOT11_CIPHER_ALGO_RSN_USE_GROUP   = 0x100,
     35   DOT11_CIPHER_ALGO_WEP             = 0x101,
     36   DOT11_CIPHER_ALGO_IHV_START       = 0x80000000,
     37   DOT11_CIPHER_ALGO_IHV_END         = 0xffffffff
     38 } DOT11_CIPHER_ALGORITHM, *PDOT11_CIPHER_ALGORITHM;
     39 
     40 typedef enum _DOT11_BSS_TYPE {
     41   dot11_BSS_type_infrastructure   = 1,
     42   dot11_BSS_type_independent      = 2,
     43   dot11_BSS_type_any              = 3
     44 } DOT11_BSS_TYPE, *PDOT11_BSS_TYPE;
     45 
     46 typedef struct _DOT11_AUTH_CIPHER_PAIR {
     47   DOT11_AUTH_ALGORITHM   AuthAlgoId;
     48   DOT11_CIPHER_ALGORITHM CipherAlgoId;
     49 } DOT11_AUTH_CIPHER_PAIR, *PDOT11_AUTH_CIPHER_PAIR;
     50 
     51 typedef struct _DOT11_SSID {
     52   ULONG uSSIDLength;
     53   UCHAR ucSSID[DOT11_SSID_MAX_LENGTH];
     54 } DOT11_SSID, *PDOT11_SSID;
     55 
     56 #ifdef __cplusplus
     57 }
     58 #endif
     59 
     60 #endif /*_INC_WLANTYPES*/
     61