Lines Matching refs:key

14 #include "key.h"
23 struct ieee80211_key *key = file->private_data; \
25 format_string, key->prop); \
69 struct ieee80211_key *key = file->private_data;
70 u32 c = key->conf.cipher;
84 struct ieee80211_key *key = file->private_data;
86 switch (key->conf.cipher) {
93 key->u.tkip.tx.iv32,
94 key->u.tkip.tx.iv16);
97 pn = atomic64_read(&key->u.ccmp.tx_pn);
103 pn = atomic64_read(&key->u.aes_cmac.tx_pn);
118 struct ieee80211_key *key = file->private_data;
123 switch (key->conf.cipher) {
132 key->u.tkip.rx[i].iv32,
133 key->u.tkip.rx[i].iv16);
138 rpn = key->u.ccmp.rx_pn[i];
147 rpn = key->u.aes_cmac.rx_pn;
164 struct ieee80211_key *key = file->private_data;
168 switch (key->conf.cipher) {
170 len = scnprintf(buf, sizeof(buf), "%u\n", key->u.ccmp.replays);
174 key->u.aes_cmac.replays);
186 struct ieee80211_key *key = file->private_data;
190 switch (key->conf.cipher) {
193 key->u.aes_cmac.icverrors);
205 struct ieee80211_key *key = file->private_data;
209 if (key->conf.cipher != WLAN_CIPHER_SUITE_TKIP)
212 len = scnprintf(buf, sizeof(buf), "%u\n", key->u.tkip.mic_failures);
221 struct ieee80211_key *key = file->private_data;
222 int i, bufsize = 2 * key->conf.keylen + 2;
230 for (i = 0; i < key->conf.keylen; i++)
231 p += scnprintf(p, bufsize + buf - p, "%02x", key->conf.key[i]);
237 KEY_OPS(key);
240 debugfs_create_file(#name, 0400, key->debugfs.dir, \
241 key, &key_##name##_ops);
243 void ieee80211_debugfs_key_add(struct ieee80211_key *key)
249 if (!key->local->debugfs.keys)
253 key->debugfs.cnt = keycount;
255 key->debugfs.dir = debugfs_create_dir(buf,
256 key->local->debugfs.keys);
258 if (!key->debugfs.dir)
261 sta = key->sta;
265 key->debugfs.stalink =
266 debugfs_create_symlink("station", key->debugfs.dir, buf);
280 DEBUGFS_ADD(key);
284 void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
286 if (!key)
289 debugfs_remove_recursive(key->debugfs.dir);
290 key->debugfs.dir = NULL;
296 struct ieee80211_key *key;
309 key = key_mtx_dereference(sdata->local,
311 sprintf(buf, "../keys/%d", key->debugfs.cnt);
323 key = key_mtx_dereference(sdata->local,
325 sprintf(buf, "../keys/%d", key->debugfs.cnt);
335 struct ieee80211_key *key;
340 key = key_mtx_dereference(sdata->local,
342 if (key) {
343 sprintf(buf, "../keys/%d", key->debugfs.cnt);
360 void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
363 debugfs_remove(key->debugfs.stalink);
364 key->debugfs.stalink = NULL;