aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/debugfs_key.c4
-rw-r--r--net/mac80211/ieee80211_key.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/debugfs_key.c b/net/mac80211/debugfs_key.c
index 36e7812da556..8e4a1bcd16ea 100644
--- a/net/mac80211/debugfs_key.c
+++ b/net/mac80211/debugfs_key.c
@@ -56,6 +56,8 @@ KEY_CONF_FILE(keyidx, D);
56KEY_CONF_FILE(hw_key_idx, D); 56KEY_CONF_FILE(hw_key_idx, D);
57KEY_FILE(flags, X); 57KEY_FILE(flags, X);
58KEY_FILE(tx_rx_count, D); 58KEY_FILE(tx_rx_count, D);
59KEY_READ(ifindex, sdata->dev->ifindex, 20, "%d\n");
60KEY_OPS(ifindex);
59 61
60static ssize_t key_algorithm_read(struct file *file, 62static ssize_t key_algorithm_read(struct file *file,
61 char __user *userbuf, 63 char __user *userbuf,
@@ -209,6 +211,7 @@ void ieee80211_debugfs_key_add(struct ieee80211_local *local,
209 DEBUGFS_ADD(rx_spec); 211 DEBUGFS_ADD(rx_spec);
210 DEBUGFS_ADD(replays); 212 DEBUGFS_ADD(replays);
211 DEBUGFS_ADD(key); 213 DEBUGFS_ADD(key);
214 DEBUGFS_ADD(ifindex);
212}; 215};
213 216
214#define DEBUGFS_DEL(name) \ 217#define DEBUGFS_DEL(name) \
@@ -229,6 +232,7 @@ void ieee80211_debugfs_key_remove(struct ieee80211_key *key)
229 DEBUGFS_DEL(rx_spec); 232 DEBUGFS_DEL(rx_spec);
230 DEBUGFS_DEL(replays); 233 DEBUGFS_DEL(replays);
231 DEBUGFS_DEL(key); 234 DEBUGFS_DEL(key);
235 DEBUGFS_DEL(ifindex);
232 236
233 debugfs_remove(key->debugfs.stalink); 237 debugfs_remove(key->debugfs.stalink);
234 key->debugfs.stalink = NULL; 238 key->debugfs.stalink = NULL;
diff --git a/net/mac80211/ieee80211_key.h b/net/mac80211/ieee80211_key.h
index a4e5fbbe045c..ae49418f18b4 100644
--- a/net/mac80211/ieee80211_key.h
+++ b/net/mac80211/ieee80211_key.h
@@ -101,6 +101,7 @@ struct ieee80211_key {
101 struct dentry *rx_spec; 101 struct dentry *rx_spec;
102 struct dentry *replays; 102 struct dentry *replays;
103 struct dentry *key; 103 struct dentry *key;
104 struct dentry *ifindex;
104 } debugfs; 105 } debugfs;
105#endif 106#endif
106 107