wlantypes.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. #ifndef _INC_WLANTYPES
  6. #define _INC_WLANTYPES
  7. #include <winapifamily.h>
  8. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #define DOT11_SSID_MAX_LENGTH 32
  13. #define DOT11_AUTH_ALGORITHM_OPEN_SYSTEM DOT11_AUTH_ALGO_80211_OPEN
  14. #define DOT11_AUTH_ALGORITHM_SHARED_KEY DOT11_AUTH_ALGO_80211_SHARED_KEY
  15. #define DOT11_AUTH_ALGORITHM_WPA DOT11_AUTH_ALGO_WPA
  16. #define DOT11_AUTH_ALGORITHM_WPA_PSK DOT11_AUTH_ALGO_WPA_PSK
  17. #define DOT11_AUTH_ALGORITHM_WPA_NONE DOT11_AUTH_ALGO_WPA_NONE
  18. #define DOT11_AUTH_ALGORITHM_RSNA DOT11_AUTH_ALGO_RSNA
  19. #define DOT11_AUTH_ALGORITHM_RSNA_PSK DOT11_AUTH_ALGO_RSNA_PSK
  20. #ifdef __WIDL__
  21. typedef [v1_enum] enum _DOT11_AUTH_ALGORITHM {
  22. #else
  23. typedef enum _DOT11_AUTH_ALGORITHM {
  24. #endif
  25. DOT11_AUTH_ALGO_80211_OPEN = 1,
  26. DOT11_AUTH_ALGO_80211_SHARED_KEY = 2,
  27. DOT11_AUTH_ALGO_WPA = 3,
  28. DOT11_AUTH_ALGO_WPA_PSK = 4,
  29. DOT11_AUTH_ALGO_WPA_NONE = 5,
  30. DOT11_AUTH_ALGO_RSNA = 6,
  31. DOT11_AUTH_ALGO_RSNA_PSK = 7,
  32. DOT11_AUTH_ALGO_IHV_START = 0x80000000,
  33. DOT11_AUTH_ALGO_IHV_END = 0xffffffff
  34. } DOT11_AUTH_ALGORITHM;
  35. typedef DOT11_AUTH_ALGORITHM *PDOT11_AUTH_ALGORITHM;
  36. #ifdef __WIDL__
  37. typedef [v1_enum] enum _DOT11_CIPHER_ALGORITHM {
  38. #else
  39. typedef enum _DOT11_CIPHER_ALGORITHM {
  40. #endif
  41. DOT11_CIPHER_ALGO_NONE = 0x00,
  42. DOT11_CIPHER_ALGO_WEP40 = 0x01,
  43. DOT11_CIPHER_ALGO_TKIP = 0x02,
  44. DOT11_CIPHER_ALGO_CCMP = 0x04,
  45. DOT11_CIPHER_ALGO_WEP104 = 0x05,
  46. DOT11_CIPHER_ALGO_WPA_USE_GROUP = 0x100,
  47. DOT11_CIPHER_ALGO_RSN_USE_GROUP = 0x100,
  48. DOT11_CIPHER_ALGO_WEP = 0x101,
  49. DOT11_CIPHER_ALGO_IHV_START = 0x80000000,
  50. DOT11_CIPHER_ALGO_IHV_END = 0xffffffff
  51. } DOT11_CIPHER_ALGORITHM;
  52. typedef DOT11_CIPHER_ALGORITHM *PDOT11_CIPHER_ALGORITHM;
  53. typedef enum _DOT11_BSS_TYPE {
  54. dot11_BSS_type_infrastructure = 1,
  55. dot11_BSS_type_independent = 2,
  56. dot11_BSS_type_any = 3
  57. } DOT11_BSS_TYPE, *PDOT11_BSS_TYPE;
  58. typedef struct _DOT11_AUTH_CIPHER_PAIR {
  59. DOT11_AUTH_ALGORITHM AuthAlgoId;
  60. DOT11_CIPHER_ALGORITHM CipherAlgoId;
  61. } DOT11_AUTH_CIPHER_PAIR, *PDOT11_AUTH_CIPHER_PAIR;
  62. typedef struct _DOT11_SSID {
  63. ULONG uSSIDLength;
  64. UCHAR ucSSID[DOT11_SSID_MAX_LENGTH];
  65. } DOT11_SSID, *PDOT11_SSID;
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif
  70. #endif /*_INC_WLANTYPES*/