Forest Bond | 5449c68 | 2009-04-25 10:30:44 -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: wpa.h |
| 21 | * |
| 22 | * Purpose: Defines the macros, types, and functions for dealing |
| 23 | * with WPA informations. |
| 24 | * |
| 25 | * Author: Kyle Hsu |
| 26 | * |
| 27 | * Date: Jul 14, 2003 |
| 28 | * |
| 29 | */ |
| 30 | |
| 31 | #ifndef __WPA_H__ |
| 32 | #define __WPA_H__ |
| 33 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 34 | #include "ttype.h" |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 35 | #include "80211hdr.h" |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 36 | |
| 37 | /*--------------------- Export Definitions -------------------------*/ |
| 38 | |
| 39 | #define WPA_NONE 0 |
| 40 | #define WPA_WEP40 1 |
| 41 | #define WPA_TKIP 2 |
| 42 | #define WPA_AESWRAP 3 |
| 43 | #define WPA_AESCCMP 4 |
| 44 | #define WPA_WEP104 5 |
| 45 | #define WPA_AUTH_IEEE802_1X 1 |
| 46 | #define WPA_AUTH_PSK 2 |
| 47 | |
| 48 | #define WPA_GROUPFLAG 0x02 |
| 49 | #define WPA_REPLAYBITSSHIFT 2 |
| 50 | #define WPA_REPLAYBITS 0x03 |
| 51 | |
| 52 | /*--------------------- Export Classes ----------------------------*/ |
| 53 | |
| 54 | /*--------------------- Export Variables --------------------------*/ |
| 55 | |
| 56 | /*--------------------- Export Types ------------------------------*/ |
| 57 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 58 | /*--------------------- Export Functions --------------------------*/ |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 59 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 60 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 61 | WPA_ClearRSN( |
Joe Perches | f0c3523 | 2013-03-18 10:45:12 -0700 | [diff] [blame] | 62 | PKnownBSS pBSSList |
| 63 | ); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 64 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 65 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 66 | WPA_ParseRSN( |
Joe Perches | f0c3523 | 2013-03-18 10:45:12 -0700 | [diff] [blame] | 67 | PKnownBSS pBSSList, |
| 68 | PWLAN_IE_RSN_EXT pRSN |
| 69 | ); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 70 | |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 71 | bool |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 72 | WPA_SearchRSN( |
Joe Perches | f0c3523 | 2013-03-18 10:45:12 -0700 | [diff] [blame] | 73 | unsigned char byCmd, |
| 74 | unsigned char byEncrypt, |
| 75 | PKnownBSS pBSSList |
| 76 | ); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 77 | |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 78 | bool |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 79 | WPAb_Is_RSN( |
Joe Perches | f0c3523 | 2013-03-18 10:45:12 -0700 | [diff] [blame] | 80 | PWLAN_IE_RSN_EXT pRSN |
| 81 | ); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 82 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 83 | #endif // __WPA_H__ |