aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/debugfs_sta.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c
index 47db0d4aa433..1a4d2c3775af 100644
--- a/net/mac80211/debugfs_sta.c
+++ b/net/mac80211/debugfs_sta.c
@@ -297,12 +297,13 @@ STA_OPS_WR(agg_status);
297void ieee80211_sta_debugfs_add(struct sta_info *sta) 297void ieee80211_sta_debugfs_add(struct sta_info *sta)
298{ 298{
299 struct dentry *stations_dir = sta->local->debugfs.stations; 299 struct dentry *stations_dir = sta->local->debugfs.stations;
300 DECLARE_MAC_BUF(mac); 300 DECLARE_MAC_BUF(mbuf);
301 u8 *mac;
301 302
302 if (!stations_dir) 303 if (!stations_dir)
303 return; 304 return;
304 305
305 print_mac(mac, sta->addr); 306 mac = print_mac(mbuf, sta->addr);
306 307
307 sta->debugfs.dir = debugfs_create_dir(mac, stations_dir); 308 sta->debugfs.dir = debugfs_create_dir(mac, stations_dir);
308 if (!sta->debugfs.dir) 309 if (!sta->debugfs.dir)