wpa2.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
  3. * All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program; if not, write to the Free Software Foundation, Inc.,
  17. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. *
  19. *
  20. * File: wpa2.h
  21. *
  22. * Purpose: Defines the macros, types, and functions for dealing
  23. * with WPA2 informations.
  24. *
  25. * Author: Yiching Chen
  26. *
  27. * Date: Oct. 4, 2004
  28. *
  29. */
  30. #ifndef __WPA2_H__
  31. #define __WPA2_H__
  32. #include "ttype.h"
  33. #include "80211mgr.h"
  34. #include "80211hdr.h"
  35. #include "bssdb.h"
  36. /*--------------------- Export Definitions -------------------------*/
  37. #define MAX_PMKID_CACHE 16
  38. typedef struct tagsPMKIDInfo {
  39. unsigned char abyBSSID[6];
  40. unsigned char abyPMKID[16];
  41. } PMKIDInfo, *PPMKIDInfo;
  42. typedef struct tagSPMKIDCache {
  43. unsigned long BSSIDInfoCount;
  44. PMKIDInfo BSSIDInfo[MAX_PMKID_CACHE];
  45. } SPMKIDCache, *PSPMKIDCache;
  46. /*--------------------- Export Classes ----------------------------*/
  47. /*--------------------- Export Variables --------------------------*/
  48. /*--------------------- Export Types ------------------------------*/
  49. /*--------------------- Export Functions --------------------------*/
  50. void
  51. WPA2_ClearRSN (
  52. PKnownBSS pBSSNode
  53. );
  54. void
  55. WPA2vParseRSN (
  56. PKnownBSS pBSSNode,
  57. PWLAN_IE_RSN pRSN
  58. );
  59. unsigned int
  60. WPA2uSetIEs(
  61. void *pMgmtHandle,
  62. PWLAN_IE_RSN pRSNIEs
  63. );
  64. #endif // __WPA2_H__