Lines Matching refs:key

13 #include "key.h"
22 struct ieee80211_key *key = file->private_data; \
24 format_string, key->prop); \
74 struct ieee80211_key *key = file->private_data;
75 u32 c = key->conf.cipher;
86 struct ieee80211_key *key = file->private_data;
90 switch (key->conf.cipher) {
111 atomic64_set(&key->conf.tx_pn, pn);
124 struct ieee80211_key *key = file->private_data;
126 switch (key->conf.cipher) {
132 pn = atomic64_read(&key->conf.tx_pn);
145 pn = atomic64_read(&key->conf.tx_pn);
160 struct ieee80211_key *key = file->private_data;
165 switch (key->conf.cipher) {
174 key->u.tkip.rx[i].iv32,
175 key->u.tkip.rx[i].iv16);
181 rpn = key->u.ccmp.rx_pn[i];
191 rpn = key->u.aes_cmac.rx_pn;
200 rpn = key->u.aes_gmac.rx_pn;
210 rpn = key->u.gcmp.rx_pn[i];
228 struct ieee80211_key *key = file->private_data;
232 switch (key->conf.cipher) {
235 len = scnprintf(buf, sizeof(buf), "%u\n", key->u.ccmp.replays);
240 key->u.aes_cmac.replays);
245 key->u.aes_gmac.replays);
249 len = scnprintf(buf, sizeof(buf), "%u\n", key->u.gcmp.replays);
261 struct ieee80211_key *key = file->private_data;
265 switch (key->conf.cipher) {
269 key->u.aes_cmac.icverrors);
274 key->u.aes_gmac.icverrors);
286 struct ieee80211_key *key = file->private_data;
290 if (key->conf.cipher != WLAN_CIPHER_SUITE_TKIP)
293 len = scnprintf(buf, sizeof(buf), "%u\n", key->u.tkip.mic_failures);
302 struct ieee80211_key *key = file->private_data;
303 int i, bufsize = 2 * key->conf.keylen + 2;
311 for (i = 0; i < key->conf.keylen; i++)
312 p += scnprintf(p, bufsize + buf - p, "%02x", key->conf.key[i]);
318 KEY_OPS(key);
321 debugfs_create_file(#name, 0400, key->debugfs.dir, \
322 key, &key_##name##_ops)
324 debugfs_create_file(#name, 0600, key->debugfs.dir, \
325 key, &key_##name##_ops);
327 void ieee80211_debugfs_key_add(struct ieee80211_key *key)
333 if (!key->local->debugfs.keys)
337 key->debugfs.cnt = keycount;
339 key->debugfs.dir = debugfs_create_dir(buf,
340 key->local->debugfs.keys);
342 sta = key->sta;
346 key->debugfs.stalink =
347 debugfs_create_symlink("station", key->debugfs.dir, buf);
360 DEBUGFS_ADD(key);
364 void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
366 if (!key)
369 debugfs_remove_recursive(key->debugfs.dir);
370 key->debugfs.dir = NULL;
376 struct ieee80211_key *key;
387 key = wiphy_dereference(sdata->local->hw.wiphy,
389 sprintf(buf, "../keys/%d", key->debugfs.cnt);
399 key = wiphy_dereference(sdata->local->hw.wiphy,
401 sprintf(buf, "../keys/%d", key->debugfs.cnt);
411 struct ieee80211_key *key;
416 key = wiphy_dereference(sdata->local->hw.wiphy,
418 if (key) {
419 sprintf(buf, "../keys/%d", key->debugfs.cnt);
440 struct ieee80211_key *key;
445 key = wiphy_dereference(sdata->local->hw.wiphy,
447 if (key) {
448 sprintf(buf, "../keys/%d", key->debugfs.cnt);
467 void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key,
470 debugfs_remove(key->debugfs.stalink);
471 key->debugfs.stalink = NULL;