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/libertas/wext.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/libertas/wext.c')
-rw-r--r-- | drivers/net/wireless/libertas/wext.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c index f8036efd7294..0b2103e0af57 100644 --- a/drivers/net/wireless/libertas/wext.c +++ b/drivers/net/wireless/libertas/wext.c | |||
@@ -1160,7 +1160,7 @@ static int wlan_get_encode(struct net_device *dev, | |||
1160 | 1160 | ||
1161 | dwrq->flags |= IW_ENCODE_NOKEY; | 1161 | dwrq->flags |= IW_ENCODE_NOKEY; |
1162 | 1162 | ||
1163 | lbs_deb_wext("key: " MAC_FMT ", keylen %d\n", | 1163 | lbs_deb_wext("key: %02x:%02x:%02x:%02x:%02x:%02x, keylen %d\n", |
1164 | extra[0], extra[1], extra[2], | 1164 | extra[0], extra[1], extra[2], |
1165 | extra[3], extra[4], extra[5], dwrq->length); | 1165 | extra[3], extra[4], extra[5], dwrq->length); |
1166 | 1166 | ||
@@ -1980,13 +1980,14 @@ static int wlan_set_wap(struct net_device *dev, struct iw_request_info *info, | |||
1980 | wlan_adapter *adapter = priv->adapter; | 1980 | wlan_adapter *adapter = priv->adapter; |
1981 | struct assoc_request * assoc_req; | 1981 | struct assoc_request * assoc_req; |
1982 | int ret = 0; | 1982 | int ret = 0; |
1983 | DECLARE_MAC_BUF(mac); | ||
1983 | 1984 | ||
1984 | lbs_deb_enter(LBS_DEB_WEXT); | 1985 | lbs_deb_enter(LBS_DEB_WEXT); |
1985 | 1986 | ||
1986 | if (awrq->sa_family != ARPHRD_ETHER) | 1987 | if (awrq->sa_family != ARPHRD_ETHER) |
1987 | return -EINVAL; | 1988 | return -EINVAL; |
1988 | 1989 | ||
1989 | lbs_deb_wext("ASSOC: WAP: sa_data " MAC_FMT "\n", MAC_ARG(awrq->sa_data)); | 1990 | lbs_deb_wext("ASSOC: WAP: sa_data %s\n", print_mac(mac, awrq->sa_data)); |
1990 | 1991 | ||
1991 | mutex_lock(&adapter->lock); | 1992 | mutex_lock(&adapter->lock); |
1992 | 1993 | ||