diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /net/ieee80211/softmac/ieee80211softmac_assoc.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff) |
[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>
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_assoc.c')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_assoc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_assoc.c b/net/ieee80211/softmac/ieee80211softmac_assoc.c index e475f2e1be13..4c0feb2dacd8 100644 --- a/net/ieee80211/softmac/ieee80211softmac_assoc.c +++ b/net/ieee80211/softmac/ieee80211softmac_assoc.c | |||
@@ -372,6 +372,7 @@ ieee80211softmac_handle_assoc_response(struct net_device * dev, | |||
372 | u16 status = le16_to_cpup(&resp->status); | 372 | u16 status = le16_to_cpup(&resp->status); |
373 | struct ieee80211softmac_network *network = NULL; | 373 | struct ieee80211softmac_network *network = NULL; |
374 | unsigned long flags; | 374 | unsigned long flags; |
375 | DECLARE_MAC_BUF(mac2); | ||
375 | 376 | ||
376 | if (unlikely(!mac->running)) | 377 | if (unlikely(!mac->running)) |
377 | return -ENODEV; | 378 | return -ENODEV; |
@@ -388,7 +389,8 @@ ieee80211softmac_handle_assoc_response(struct net_device * dev, | |||
388 | 389 | ||
389 | /* someone sending us things without us knowing him? Ignore. */ | 390 | /* someone sending us things without us knowing him? Ignore. */ |
390 | if (!network) { | 391 | if (!network) { |
391 | dprintk(KERN_INFO PFX "Received unrequested assocation response from " MAC_FMT "\n", MAC_ARG(resp->header.addr3)); | 392 | dprintk(KERN_INFO PFX "Received unrequested assocation response from %s\n", |
393 | print_mac(mac2, resp->header.addr3)); | ||
392 | spin_unlock_irqrestore(&mac->lock, flags); | 394 | spin_unlock_irqrestore(&mac->lock, flags); |
393 | return 0; | 395 | return 0; |
394 | } | 396 | } |