mac80211: convert to %pM away from print_mac
[deliverable/linux.git] / net / mac80211 / debugfs_sta.c
index 189d0bafa91ae0f274c2813f912012679f53903d..21e8b1c4f64e7dd24a5ad01d973a57723805778f 100644 (file)
@@ -246,15 +246,14 @@ STA_OPS_WR(agg_status);
 void ieee80211_sta_debugfs_add(struct sta_info *sta)
 {
        struct dentry *stations_dir = sta->local->debugfs.stations;
-       DECLARE_MAC_BUF(mbuf);
-       u8 *mac;
+       u8 mac[3*ETH_ALEN];
 
        sta->debugfs.add_has_run = true;
 
        if (!stations_dir)
                return;
 
-       mac = print_mac(mbuf, sta->sta.addr);
+       snprintf(mac, sizeof(mac), "%pM", sta->sta.addr);
 
        /*
         * This might fail due to a race condition:
This page took 0.024767 seconds and 5 git commands to generate.