Skip to content

Commit

Permalink
mac80211: fix debugfs key->station symlink
Browse files Browse the repository at this point in the history
Since stations moved into a virtual interface
subdirectory, this link has been broken. Fix it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jan 18, 2012
1 parent c3b5003 commit 9446f3e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions net/mac80211/debugfs_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ KEY_OPS(key);
key, &key_##name##_ops);

void ieee80211_debugfs_key_add(struct ieee80211_key *key)
{
{
static int keycount;
char buf[50];
char buf[100];
struct sta_info *sta;

if (!key->local->debugfs.keys)
Expand All @@ -244,7 +244,8 @@ void ieee80211_debugfs_key_add(struct ieee80211_key *key)

sta = key->sta;
if (sta) {
sprintf(buf, "../../stations/%pM", sta->sta.addr);
sprintf(buf, "../../netdev:%s/stations/%pM",
sta->sdata->name, sta->sta.addr);
key->debugfs.stalink =
debugfs_create_symlink("station", key->debugfs.dir, buf);
}
Expand Down

0 comments on commit 9446f3e

Please sign in to comment.