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 /drivers/net/wireless/hostap/hostap_ioctl.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 'drivers/net/wireless/hostap/hostap_ioctl.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_ioctl.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index 730b3541e325..7036ecff5ec1 100644 --- a/drivers/net/wireless/hostap/hostap_ioctl.c +++ b/drivers/net/wireless/hostap/hostap_ioctl.c | |||
@@ -664,6 +664,7 @@ static int hostap_join_ap(struct net_device *dev) | |||
664 | unsigned long flags; | 664 | unsigned long flags; |
665 | int i; | 665 | int i; |
666 | struct hfa384x_hostscan_result *entry; | 666 | struct hfa384x_hostscan_result *entry; |
667 | DECLARE_MAC_BUF(mac); | ||
667 | 668 | ||
668 | iface = netdev_priv(dev); | 669 | iface = netdev_priv(dev); |
669 | local = iface->local; | 670 | local = iface->local; |
@@ -685,14 +686,14 @@ static int hostap_join_ap(struct net_device *dev) | |||
685 | 686 | ||
686 | if (local->func->set_rid(dev, HFA384X_RID_JOINREQUEST, &req, | 687 | if (local->func->set_rid(dev, HFA384X_RID_JOINREQUEST, &req, |
687 | sizeof(req))) { | 688 | sizeof(req))) { |
688 | printk(KERN_DEBUG "%s: JoinRequest " MACSTR | 689 | printk(KERN_DEBUG "%s: JoinRequest %s" |
689 | " failed\n", | 690 | " failed\n", |
690 | dev->name, MAC2STR(local->preferred_ap)); | 691 | dev->name, print_mac(mac, local->preferred_ap)); |
691 | return -1; | 692 | return -1; |
692 | } | 693 | } |
693 | 694 | ||
694 | printk(KERN_DEBUG "%s: Trying to join BSSID " MACSTR "\n", | 695 | printk(KERN_DEBUG "%s: Trying to join BSSID %s\n", |
695 | dev->name, MAC2STR(local->preferred_ap)); | 696 | dev->name, print_mac(mac, local->preferred_ap)); |
696 | 697 | ||
697 | return 0; | 698 | return 0; |
698 | } | 699 | } |
@@ -3697,8 +3698,10 @@ static int prism2_ioctl_set_assoc_ap_addr(local_info_t *local, | |||
3697 | struct prism2_hostapd_param *param, | 3698 | struct prism2_hostapd_param *param, |
3698 | int param_len) | 3699 | int param_len) |
3699 | { | 3700 | { |
3700 | printk(KERN_DEBUG "%ssta: associated as client with AP " MACSTR "\n", | 3701 | DECLARE_MAC_BUF(mac); |
3701 | local->dev->name, MAC2STR(param->sta_addr)); | 3702 | printk(KERN_DEBUG "%ssta: associated as client with AP " |
3703 | "%s\n", | ||
3704 | local->dev->name, print_mac(mac, param->sta_addr)); | ||
3702 | memcpy(local->assoc_ap_addr, param->sta_addr, ETH_ALEN); | 3705 | memcpy(local->assoc_ap_addr, param->sta_addr, ETH_ALEN); |
3703 | return 0; | 3706 | return 0; |
3704 | } | 3707 | } |