Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9446f3ef authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

mac80211: fix debugfs key->station symlink



Since stations moved into a virtual interface
subdirectory, this link has been broken. Fix it.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c3b5003b
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -227,7 +227,7 @@ KEY_OPS(key);
void ieee80211_debugfs_key_add(struct ieee80211_key *key)
void ieee80211_debugfs_key_add(struct ieee80211_key *key)
{
{
	static int keycount;
	static int keycount;
	char buf[50];
	char buf[100];
	struct sta_info *sta;
	struct sta_info *sta;


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


	sta = key->sta;
	sta = key->sta;
	if (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 =
		key->debugfs.stalink =
			debugfs_create_symlink("station", key->debugfs.dir, buf);
			debugfs_create_symlink("station", key->debugfs.dir, buf);
	}
	}