* [PATCH] mac80211: fix key debugfs default_key link
@ 2008-04-08 11:07 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2008-04-08 11:07 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
The default_key symlink points to the key index rather than
they key counter, fix it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/debugfs_key.c | 3 ++-
net/mac80211/ieee80211_key.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
--- everything.orig/net/mac80211/debugfs_key.c 2008-04-08 11:20:39.000000000 +0200
+++ everything/net/mac80211/debugfs_key.c 2008-04-08 11:20:43.000000000 +0200
@@ -194,6 +194,7 @@ void ieee80211_debugfs_key_add(struct ie
return;
sprintf(buf, "%d", keycount);
+ key->debugfs.cnt = keycount;
keycount++;
key->debugfs.dir = debugfs_create_dir(buf,
local->debugfs.keys);
@@ -246,7 +247,7 @@ void ieee80211_debugfs_key_add_default(s
if (!sdata->debugfsdir)
return;
- sprintf(buf, "../keys/%d", sdata->default_key->conf.keyidx);
+ sprintf(buf, "../keys/%d", sdata->default_key->debugfs.cnt);
sdata->debugfs.default_key =
debugfs_create_symlink("default_key", sdata->debugfsdir, buf);
}
--- everything.orig/net/mac80211/ieee80211_key.h 2008-04-08 11:20:39.000000000 +0200
+++ everything/net/mac80211/ieee80211_key.h 2008-04-08 11:20:43.000000000 +0200
@@ -115,6 +115,7 @@ struct ieee80211_key {
struct dentry *replays;
struct dentry *key;
struct dentry *ifindex;
+ int cnt;
} debugfs;
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-08 14:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08 11:07 [PATCH] mac80211: fix key debugfs default_key link Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox