aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs_sta.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-10-27 18:56:10 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-27 20:06:16 -0400
commit0c68ae2605dbcf67414d8d1f19af93be44b355fb (patch)
tree19175d53668f5358d346929e5db01d8fe41cb2aa /net/mac80211/debugfs_sta.c
parentdd45c9cf687682c9ce256ab14bd8914db77410bb (diff)
mac80211: convert to %pM away from print_mac
Also remove a few stray DECLARE_MAC_BUF that were no longer used at all. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r--net/mac80211/debugfs_sta.c5
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);
246void ieee80211_sta_debugfs_add(struct sta_info *sta) 246void 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: