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 "device.h"
0018 
0019 #define MAX_KEY_TABLE       11
0020 
0021 #define KEY_CTL_WEP         0x00
0022 #define KEY_CTL_NONE        0x01
0023 #define KEY_CTL_TKIP        0x02
0024 #define KEY_CTL_CCMP        0x03
0025 
0026 #define VNT_KEY_ONFLY_ALL   0x4000
0027 #define VNT_KEY_ONFLY       0x8000
0028 #define VNT_KEY_ALLGROUP    0x04
0029 #define VNT_KEY_GROUP       0x40
0030 #define VNT_KEY_PAIRWISE    VNT_KEY_ONFLY
0031 #define VNT_KEY_GROUP_ADDRESS   (VNT_KEY_ALLGROUP | VNT_KEY_GROUP)
0032 #define VNT_KEY_DEFAULTKEY  (VNT_KEY_GROUP_ADDRESS | VNT_KEY_ONFLY |\
0033                 VNT_KEY_ONFLY_ALL)
0034 
0035 int vnt_key_init_table(struct vnt_private *priv);
0036 
0037 int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
0038          struct ieee80211_vif *vif, struct ieee80211_key_conf *key);
0039 
0040 #endif /* __KEY_H__ */