[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
95ea36275f
commit
0795af5729
@@ -2883,6 +2883,7 @@ static int b43_dev_set_key(struct ieee80211_hw *hw,
|
||||
u8 algorithm;
|
||||
u8 index;
|
||||
int err = -EINVAL;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
if (modparam_nohwcrypt)
|
||||
return -ENOSPC; /* User disabled HW-crypto */
|
||||
@@ -2969,9 +2970,9 @@ out_unlock:
|
||||
out:
|
||||
if (!err) {
|
||||
b43dbg(wl, "%s hardware based encryption for keyidx: %d, "
|
||||
"mac: " MAC_FMT "\n",
|
||||
"mac: %s\n",
|
||||
cmd == SET_KEY ? "Using" : "Disabling", key->keyidx,
|
||||
MAC_ARG(addr));
|
||||
print_mac(mac, addr));
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user