0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef __KEY_H__
0015 #define __KEY_H__
0016
0017 #include <net/mac80211.h>
0018
0019
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