diff options
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r-- | net/mac80211/debugfs_sta.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 189d0bafa91a..21e8b1c4f64e 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c | |||
@@ -246,15 +246,14 @@ STA_OPS_WR(agg_status); | |||
246 | void ieee80211_sta_debugfs_add(struct sta_info *sta) | 246 | void ieee80211_sta_debugfs_add(struct sta_info *sta) |
247 | { | 247 | { |
248 | struct dentry *stations_dir = sta->local->debugfs.stations; | 248 | struct dentry *stations_dir = sta->local->debugfs.stations; |
249 | DECLARE_MAC_BUF(mbuf); | 249 | u8 mac[3*ETH_ALEN]; |
250 | u8 *mac; | ||
251 | 250 | ||
252 | sta->debugfs.add_has_run = true; | 251 | sta->debugfs.add_has_run = true; |
253 | 252 | ||
254 | if (!stations_dir) | 253 | if (!stations_dir) |
255 | return; | 254 | return; |
256 | 255 | ||
257 | mac = print_mac(mbuf, sta->sta.addr); | 256 | snprintf(mac, sizeof(mac), "%pM", sta->sta.addr); |
258 | 257 | ||
259 | /* | 258 | /* |
260 | * This might fail due to a race condition: | 259 | * This might fail due to a race condition: |