diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-27 18:59:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-27 20:06:18 -0400 |
commit | e174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch) | |
tree | e8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/net/wireless/hostap/hostap_info.c | |
parent | 0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff) |
net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were
a few things that had conflicts which I have just dropped for
now, no harm done.
I've built an allyesconfig with this and looked at the files
that weren't built very carefully, but it's a huge patch.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_info.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_info.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/net/wireless/hostap/hostap_info.c b/drivers/net/wireless/hostap/hostap_info.c index 7cd3fb79230e..99b4cf41edf2 100644 --- a/drivers/net/wireless/hostap/hostap_info.c +++ b/drivers/net/wireless/hostap/hostap_info.c | |||
@@ -166,7 +166,6 @@ static void prism2_host_roaming(local_info_t *local) | |||
166 | struct hfa384x_hostscan_result *selected, *entry; | 166 | struct hfa384x_hostscan_result *selected, *entry; |
167 | int i; | 167 | int i; |
168 | unsigned long flags; | 168 | unsigned long flags; |
169 | DECLARE_MAC_BUF(mac); | ||
170 | 169 | ||
171 | if (local->last_join_time && | 170 | if (local->last_join_time && |
172 | time_before(jiffies, local->last_join_time + 10 * HZ)) { | 171 | time_before(jiffies, local->last_join_time + 10 * HZ)) { |
@@ -199,9 +198,8 @@ static void prism2_host_roaming(local_info_t *local) | |||
199 | local->preferred_ap[2] || local->preferred_ap[3] || | 198 | local->preferred_ap[2] || local->preferred_ap[3] || |
200 | local->preferred_ap[4] || local->preferred_ap[5]) { | 199 | local->preferred_ap[4] || local->preferred_ap[5]) { |
201 | /* Try to find preferred AP */ | 200 | /* Try to find preferred AP */ |
202 | PDEBUG(DEBUG_EXTRA, "%s: Preferred AP BSSID " | 201 | PDEBUG(DEBUG_EXTRA, "%s: Preferred AP BSSID %pM\n", |
203 | "%s\n", | 202 | dev->name, local->preferred_ap); |
204 | dev->name, print_mac(mac, local->preferred_ap)); | ||
205 | for (i = 0; i < local->last_scan_results_count; i++) { | 203 | for (i = 0; i < local->last_scan_results_count; i++) { |
206 | entry = &local->last_scan_results[i]; | 204 | entry = &local->last_scan_results[i]; |
207 | if (memcmp(local->preferred_ap, entry->bssid, 6) == 0) | 205 | if (memcmp(local->preferred_ap, entry->bssid, 6) == 0) |
@@ -218,9 +216,9 @@ static void prism2_host_roaming(local_info_t *local) | |||
218 | req.channel = selected->chid; | 216 | req.channel = selected->chid; |
219 | spin_unlock_irqrestore(&local->lock, flags); | 217 | spin_unlock_irqrestore(&local->lock, flags); |
220 | 218 | ||
221 | PDEBUG(DEBUG_EXTRA, "%s: JoinRequest: BSSID=%s" | 219 | PDEBUG(DEBUG_EXTRA, "%s: JoinRequest: BSSID=%pM" |
222 | " channel=%d\n", | 220 | " channel=%d\n", |
223 | dev->name, print_mac(mac, req.bssid), le16_to_cpu(req.channel)); | 221 | dev->name, req.bssid, le16_to_cpu(req.channel)); |
224 | if (local->func->set_rid(dev, HFA384X_RID_JOINREQUEST, &req, | 222 | if (local->func->set_rid(dev, HFA384X_RID_JOINREQUEST, &req, |
225 | sizeof(req))) { | 223 | sizeof(req))) { |
226 | printk(KERN_DEBUG "%s: JoinRequest failed\n", dev->name); | 224 | printk(KERN_DEBUG "%s: JoinRequest failed\n", dev->name); |
@@ -413,7 +411,6 @@ static void handle_info_queue_linkstatus(local_info_t *local) | |||
413 | int val = local->prev_link_status; | 411 | int val = local->prev_link_status; |
414 | int connected; | 412 | int connected; |
415 | union iwreq_data wrqu; | 413 | union iwreq_data wrqu; |
416 | DECLARE_MAC_BUF(mac); | ||
417 | 414 | ||
418 | connected = | 415 | connected = |
419 | val == HFA384X_LINKSTATUS_CONNECTED || | 416 | val == HFA384X_LINKSTATUS_CONNECTED || |
@@ -425,10 +422,9 @@ static void handle_info_queue_linkstatus(local_info_t *local) | |||
425 | printk(KERN_DEBUG "%s: could not read CURRENTBSSID after " | 422 | printk(KERN_DEBUG "%s: could not read CURRENTBSSID after " |
426 | "LinkStatus event\n", local->dev->name); | 423 | "LinkStatus event\n", local->dev->name); |
427 | } else { | 424 | } else { |
428 | PDEBUG(DEBUG_EXTRA, "%s: LinkStatus: BSSID=" | 425 | PDEBUG(DEBUG_EXTRA, "%s: LinkStatus: BSSID=%pM\n", |
429 | "%s\n", | ||
430 | local->dev->name, | 426 | local->dev->name, |
431 | print_mac(mac, (unsigned char *) local->bssid)); | 427 | (unsigned char *) local->bssid); |
432 | if (local->wds_type & HOSTAP_WDS_AP_CLIENT) | 428 | if (local->wds_type & HOSTAP_WDS_AP_CLIENT) |
433 | hostap_add_sta(local->ap, local->bssid); | 429 | hostap_add_sta(local->ap, local->bssid); |
434 | } | 430 | } |