Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 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 | |
| 31 | #ifndef __WPA2_H__ |
| 32 | #define __WPA2_H__ |
| 33 | |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 34 | #include "ttype.h" |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 35 | #include "80211mgr.h" |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 36 | #include "80211hdr.h" |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 37 | #include "bssdb.h" |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 38 | |
| 39 | /*--------------------- Export Definitions -------------------------*/ |
| 40 | #define MAX_PMKID_CACHE 16 |
| 41 | |
| 42 | typedef struct tagsPMKIDInfo { |
| 43 | BYTE abyBSSID[6]; |
| 44 | BYTE abyPMKID[16]; |
| 45 | } PMKIDInfo, *PPMKIDInfo; |
| 46 | |
| 47 | typedef struct tagSPMKIDCache { |
Andres More | cc856e6 | 2010-05-17 21:34:01 -0300 | [diff] [blame] | 48 | unsigned long BSSIDInfoCount; |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 49 | PMKIDInfo BSSIDInfo[MAX_PMKID_CACHE]; |
| 50 | } SPMKIDCache, *PSPMKIDCache; |
| 51 | |
| 52 | |
| 53 | /*--------------------- Export Classes ----------------------------*/ |
| 54 | |
| 55 | /*--------------------- Export Variables --------------------------*/ |
| 56 | |
| 57 | /*--------------------- Export Types ------------------------------*/ |
| 58 | |
| 59 | /*--------------------- Export Functions --------------------------*/ |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 60 | |
Andres More | d9d1ccb | 2010-05-26 20:00:36 -0300 | [diff] [blame] | 61 | void WPA2_ClearRSN(PKnownBSS pBSSNode); |
| 62 | void WPA2vParseRSN(PKnownBSS pBSSNode, PWLAN_IE_RSN pRSN); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 63 | |
Andres More | d9d1ccb | 2010-05-26 20:00:36 -0300 | [diff] [blame] | 64 | unsigned int WPA2uSetIEs(void *pMgmtHandle, PWLAN_IE_RSN pRSNIEs); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 65 | |
Andres More | e7b07d1 | 2010-05-01 19:12:26 -0300 | [diff] [blame] | 66 | #endif /* __WPA2_H__ */ |