diff options
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 | } |