diff options
Diffstat (limited to 'net/mac80211/ieee80211_key.h')
-rw-r--r-- | net/mac80211/ieee80211_key.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/net/mac80211/ieee80211_key.h b/net/mac80211/ieee80211_key.h index c33384912782..1b5e539c678f 100644 --- a/net/mac80211/ieee80211_key.h +++ b/net/mac80211/ieee80211_key.h | |||
@@ -44,8 +44,6 @@ | |||
44 | struct ieee80211_key { | 44 | struct ieee80211_key { |
45 | struct kref kref; | 45 | struct kref kref; |
46 | 46 | ||
47 | int hw_key_idx; /* filled and used by low-level driver */ | ||
48 | ieee80211_key_alg alg; | ||
49 | union { | 47 | union { |
50 | struct { | 48 | struct { |
51 | /* last used TSC */ | 49 | /* last used TSC */ |
@@ -73,22 +71,16 @@ struct ieee80211_key { | |||
73 | u8 rx_crypto_buf[6 * AES_BLOCK_LEN]; | 71 | u8 rx_crypto_buf[6 * AES_BLOCK_LEN]; |
74 | } ccmp; | 72 | } ccmp; |
75 | } u; | 73 | } u; |
76 | int tx_rx_count; /* number of times this key has been used */ | ||
77 | int keylen; | ||
78 | 74 | ||
79 | /* if the low level driver can provide hardware acceleration it should | 75 | /* number of times this key has been used */ |
80 | * clear this flag */ | 76 | int tx_rx_count; |
81 | unsigned int force_sw_encrypt:1; | ||
82 | unsigned int default_tx_key:1; /* This key is the new default TX key | ||
83 | * (used only for broadcast keys). */ | ||
84 | s8 keyidx; /* WEP key index */ | ||
85 | 77 | ||
86 | #ifdef CONFIG_MAC80211_DEBUGFS | 78 | #ifdef CONFIG_MAC80211_DEBUGFS |
87 | struct { | 79 | struct { |
88 | struct dentry *stalink; | 80 | struct dentry *stalink; |
89 | struct dentry *dir; | 81 | struct dentry *dir; |
90 | struct dentry *keylen; | 82 | struct dentry *keylen; |
91 | struct dentry *force_sw_encrypt; | 83 | struct dentry *flags; |
92 | struct dentry *keyidx; | 84 | struct dentry *keyidx; |
93 | struct dentry *hw_key_idx; | 85 | struct dentry *hw_key_idx; |
94 | struct dentry *tx_rx_count; | 86 | struct dentry *tx_rx_count; |
@@ -100,7 +92,11 @@ struct ieee80211_key { | |||
100 | } debugfs; | 92 | } debugfs; |
101 | #endif | 93 | #endif |
102 | 94 | ||
103 | u8 key[0]; | 95 | /* |
96 | * key config, must be last because it contains key | ||
97 | * material as variable length member | ||
98 | */ | ||
99 | struct ieee80211_key_conf conf; | ||
104 | }; | 100 | }; |
105 | 101 | ||
106 | #endif /* IEEE80211_KEY_H */ | 102 | #endif /* IEEE80211_KEY_H */ |