Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
0004  * All rights reserved.
0005  *
0006  * Purpose: Implement functions for 802.11i Key management
0007  *
0008  * Author: Jerry Chen
0009  *
0010  * Date: May 29, 2003
0011  *
0012  */
0013 
0014 #ifndef __KEY_H__
0015 #define __KEY_H__
0016 
0017 #include <net/mac80211.h>
0018 
0019 /*---------------------  Export Definitions -------------------------*/
0020 #define MAX_GROUP_KEY       4
0021 #define MAX_KEY_TABLE       11
0022 #define MAX_KEY_LEN         32
0023 #define AES_KEY_LEN         16
0024 
0025 #define AUTHENTICATOR_KEY   0x10000000
0026 #define USE_KEYRSC          0x20000000
0027 #define PAIRWISE_KEY        0x40000000
0028 #define TRANSMIT_KEY        0x80000000
0029 
0030 #define GROUP_KEY           0x00000000
0031 
0032 #define KEY_CTL_WEP         0x00
0033 #define KEY_CTL_NONE        0x01
0034 #define KEY_CTL_TKIP        0x02
0035 #define KEY_CTL_CCMP        0x03
0036 #define KEY_CTL_INVALID     0xFF
0037 
0038 #define VNT_KEY_DEFAULTKEY  0x1
0039 #define VNT_KEY_GROUP_ADDRESS   0x2
0040 #define VNT_KEY_ALLGROUP    0x4
0041 #define VNT_KEY_GROUP       0x40
0042 #define VNT_KEY_PAIRWISE    0x00
0043 #define VNT_KEY_ONFLY       0x8000
0044 #define VNT_KEY_ONFLY_ALL   0x4000
0045 
0046 struct vnt_private;
0047 
0048 int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
0049          struct ieee80211_vif *vif, struct ieee80211_key_conf *key);
0050 
0051 #endif /* __KEY_H__ */