diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_info.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_info.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/net/wireless/hostap/hostap_info.c b/drivers/net/wireless/hostap/hostap_info.c index b6a02a02da74..636f4b2382ea 100644 --- a/drivers/net/wireless/hostap/hostap_info.c +++ b/drivers/net/wireless/hostap/hostap_info.c | |||
@@ -166,6 +166,7 @@ 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); | ||
169 | 170 | ||
170 | if (local->last_join_time && | 171 | if (local->last_join_time && |
171 | time_before(jiffies, local->last_join_time + 10 * HZ)) { | 172 | time_before(jiffies, local->last_join_time + 10 * HZ)) { |
@@ -198,8 +199,9 @@ static void prism2_host_roaming(local_info_t *local) | |||
198 | local->preferred_ap[2] || local->preferred_ap[3] || | 199 | local->preferred_ap[2] || local->preferred_ap[3] || |
199 | local->preferred_ap[4] || local->preferred_ap[5]) { | 200 | local->preferred_ap[4] || local->preferred_ap[5]) { |
200 | /* Try to find preferred AP */ | 201 | /* Try to find preferred AP */ |
201 | PDEBUG(DEBUG_EXTRA, "%s: Preferred AP BSSID " MACSTR "\n", | 202 | PDEBUG(DEBUG_EXTRA, "%s: Preferred AP BSSID " |
202 | dev->name, MAC2STR(local->preferred_ap)); | 203 | "%s\n", |
204 | dev->name, print_mac(mac, local->preferred_ap)); | ||
203 | for (i = 0; i < local->last_scan_results_count; i++) { | 205 | for (i = 0; i < local->last_scan_results_count; i++) { |
204 | entry = &local->last_scan_results[i]; | 206 | entry = &local->last_scan_results[i]; |
205 | if (memcmp(local->preferred_ap, entry->bssid, 6) == 0) | 207 | if (memcmp(local->preferred_ap, entry->bssid, 6) == 0) |
@@ -216,8 +218,9 @@ static void prism2_host_roaming(local_info_t *local) | |||
216 | req.channel = selected->chid; | 218 | req.channel = selected->chid; |
217 | spin_unlock_irqrestore(&local->lock, flags); | 219 | spin_unlock_irqrestore(&local->lock, flags); |
218 | 220 | ||
219 | PDEBUG(DEBUG_EXTRA, "%s: JoinRequest: BSSID=" MACSTR " channel=%d\n", | 221 | PDEBUG(DEBUG_EXTRA, "%s: JoinRequest: BSSID=%s" |
220 | dev->name, MAC2STR(req.bssid), le16_to_cpu(req.channel)); | 222 | " channel=%d\n", |
223 | dev->name, print_mac(mac, req.bssid), le16_to_cpu(req.channel)); | ||
221 | if (local->func->set_rid(dev, HFA384X_RID_JOINREQUEST, &req, | 224 | if (local->func->set_rid(dev, HFA384X_RID_JOINREQUEST, &req, |
222 | sizeof(req))) { | 225 | sizeof(req))) { |
223 | printk(KERN_DEBUG "%s: JoinRequest failed\n", dev->name); | 226 | printk(KERN_DEBUG "%s: JoinRequest failed\n", dev->name); |
@@ -409,6 +412,7 @@ static void handle_info_queue_linkstatus(local_info_t *local) | |||
409 | int val = local->prev_link_status; | 412 | int val = local->prev_link_status; |
410 | int connected; | 413 | int connected; |
411 | union iwreq_data wrqu; | 414 | union iwreq_data wrqu; |
415 | DECLARE_MAC_BUF(mac); | ||
412 | 416 | ||
413 | connected = | 417 | connected = |
414 | val == HFA384X_LINKSTATUS_CONNECTED || | 418 | val == HFA384X_LINKSTATUS_CONNECTED || |
@@ -420,9 +424,10 @@ static void handle_info_queue_linkstatus(local_info_t *local) | |||
420 | printk(KERN_DEBUG "%s: could not read CURRENTBSSID after " | 424 | printk(KERN_DEBUG "%s: could not read CURRENTBSSID after " |
421 | "LinkStatus event\n", local->dev->name); | 425 | "LinkStatus event\n", local->dev->name); |
422 | } else { | 426 | } else { |
423 | PDEBUG(DEBUG_EXTRA, "%s: LinkStatus: BSSID=" MACSTR "\n", | 427 | PDEBUG(DEBUG_EXTRA, "%s: LinkStatus: BSSID=" |
428 | "%s\n", | ||
424 | local->dev->name, | 429 | local->dev->name, |
425 | MAC2STR((unsigned char *) local->bssid)); | 430 | print_mac(mac, (unsigned char *) local->bssid)); |
426 | if (local->wds_type & HOSTAP_WDS_AP_CLIENT) | 431 | if (local->wds_type & HOSTAP_WDS_AP_CLIENT) |
427 | hostap_add_sta(local->ap, local->bssid); | 432 | hostap_add_sta(local->ap, local->bssid); |
428 | } | 433 | } |