From: Johannes Berg <johannes@sipsolutions.net>
To: John Linville <linville@tuxdriver.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: [PATCH] mac80211: fix key debugfs default_key link
Date: Tue, 08 Apr 2008 13:07:50 +0200 [thread overview]
Message-ID: <1207652870.14253.2.camel@johannes.berg> (raw)
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
reply other threads:[~2008-04-08 14:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1207652870.14253.2.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox