Commit 9446f3efc53512e5ad9e0966539021a2a41fe5a0
Committed by
John W. Linville
1 parent
c3b5003b62
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
mac80211: fix debugfs key->station symlink
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>
Showing 1 changed file with 4 additions and 3 deletions Side-by-side Diff
net/mac80211/debugfs_key.c
... | ... | @@ -225,9 +225,9 @@ |
225 | 225 | key, &key_##name##_ops); |
226 | 226 | |
227 | 227 | void ieee80211_debugfs_key_add(struct ieee80211_key *key) |
228 | - { | |
228 | +{ | |
229 | 229 | static int keycount; |
230 | - char buf[50]; | |
230 | + char buf[100]; | |
231 | 231 | struct sta_info *sta; |
232 | 232 | |
233 | 233 | if (!key->local->debugfs.keys) |
... | ... | @@ -244,7 +244,8 @@ |
244 | 244 | |
245 | 245 | sta = key->sta; |
246 | 246 | if (sta) { |
247 | - sprintf(buf, "../../stations/%pM", sta->sta.addr); | |
247 | + sprintf(buf, "../../netdev:%s/stations/%pM", | |
248 | + sta->sdata->name, sta->sta.addr); | |
248 | 249 | key->debugfs.stalink = |
249 | 250 | debugfs_create_symlink("station", key->debugfs.dir, buf); |
250 | 251 | } |