diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_proc.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_proc.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/net/wireless/hostap/hostap_proc.c b/drivers/net/wireless/hostap/hostap_proc.c index b03536008ad9..ae7d3caf3dae 100644 --- a/drivers/net/wireless/hostap/hostap_proc.c +++ b/drivers/net/wireless/hostap/hostap_proc.c | |||
@@ -106,7 +106,6 @@ static int prism2_wds_proc_read(char *page, char **start, off_t off, | |||
106 | local_info_t *local = (local_info_t *) data; | 106 | local_info_t *local = (local_info_t *) data; |
107 | struct list_head *ptr; | 107 | struct list_head *ptr; |
108 | struct hostap_interface *iface; | 108 | struct hostap_interface *iface; |
109 | DECLARE_MAC_BUF(mac); | ||
110 | 109 | ||
111 | if (off > PROC_LIMIT) { | 110 | if (off > PROC_LIMIT) { |
112 | *eof = 1; | 111 | *eof = 1; |
@@ -118,9 +117,9 @@ static int prism2_wds_proc_read(char *page, char **start, off_t off, | |||
118 | iface = list_entry(ptr, struct hostap_interface, list); | 117 | iface = list_entry(ptr, struct hostap_interface, list); |
119 | if (iface->type != HOSTAP_INTERFACE_WDS) | 118 | if (iface->type != HOSTAP_INTERFACE_WDS) |
120 | continue; | 119 | continue; |
121 | p += sprintf(p, "%s\t%s\n", | 120 | p += sprintf(p, "%s\t%pM\n", |
122 | iface->dev->name, | 121 | iface->dev->name, |
123 | print_mac(mac, iface->u.wds.remote_addr)); | 122 | iface->u.wds.remote_addr); |
124 | if ((p - page) > PROC_LIMIT) { | 123 | if ((p - page) > PROC_LIMIT) { |
125 | printk(KERN_DEBUG "%s: wds proc did not fit\n", | 124 | printk(KERN_DEBUG "%s: wds proc did not fit\n", |
126 | local->dev->name); | 125 | local->dev->name); |
@@ -148,7 +147,6 @@ static int prism2_bss_list_proc_read(char *page, char **start, off_t off, | |||
148 | struct list_head *ptr; | 147 | struct list_head *ptr; |
149 | struct hostap_bss_info *bss; | 148 | struct hostap_bss_info *bss; |
150 | int i; | 149 | int i; |
151 | DECLARE_MAC_BUF(mac); | ||
152 | 150 | ||
153 | if (off > PROC_LIMIT) { | 151 | if (off > PROC_LIMIT) { |
154 | *eof = 1; | 152 | *eof = 1; |
@@ -160,8 +158,8 @@ static int prism2_bss_list_proc_read(char *page, char **start, off_t off, | |||
160 | spin_lock_bh(&local->lock); | 158 | spin_lock_bh(&local->lock); |
161 | list_for_each(ptr, &local->bss_list) { | 159 | list_for_each(ptr, &local->bss_list) { |
162 | bss = list_entry(ptr, struct hostap_bss_info, list); | 160 | bss = list_entry(ptr, struct hostap_bss_info, list); |
163 | p += sprintf(p, "%s\t%lu\t%u\t0x%x\t", | 161 | p += sprintf(p, "%pM\t%lu\t%u\t0x%x\t", |
164 | print_mac(mac, bss->bssid), bss->last_update, | 162 | bss->bssid, bss->last_update, |
165 | bss->count, bss->capab_info); | 163 | bss->count, bss->capab_info); |
166 | for (i = 0; i < bss->ssid_len; i++) { | 164 | for (i = 0; i < bss->ssid_len; i++) { |
167 | p += sprintf(p, "%c", | 165 | p += sprintf(p, "%c", |
@@ -314,7 +312,6 @@ static int prism2_scan_results_proc_read(char *page, char **start, off_t off, | |||
314 | int entry, i, len, total = 0; | 312 | int entry, i, len, total = 0; |
315 | struct hfa384x_hostscan_result *scanres; | 313 | struct hfa384x_hostscan_result *scanres; |
316 | u8 *pos; | 314 | u8 *pos; |
317 | DECLARE_MAC_BUF(mac); | ||
318 | 315 | ||
319 | p += sprintf(p, "CHID ANL SL BcnInt Capab Rate BSSID ATIM SupRates " | 316 | p += sprintf(p, "CHID ANL SL BcnInt Capab Rate BSSID ATIM SupRates " |
320 | "SSID\n"); | 317 | "SSID\n"); |
@@ -332,14 +329,14 @@ static int prism2_scan_results_proc_read(char *page, char **start, off_t off, | |||
332 | if ((p - page) > (PAGE_SIZE - 200)) | 329 | if ((p - page) > (PAGE_SIZE - 200)) |
333 | break; | 330 | break; |
334 | 331 | ||
335 | p += sprintf(p, "%d %d %d %d 0x%02x %d %s %d ", | 332 | p += sprintf(p, "%d %d %d %d 0x%02x %d %pM %d ", |
336 | le16_to_cpu(scanres->chid), | 333 | le16_to_cpu(scanres->chid), |
337 | (s16) le16_to_cpu(scanres->anl), | 334 | (s16) le16_to_cpu(scanres->anl), |
338 | (s16) le16_to_cpu(scanres->sl), | 335 | (s16) le16_to_cpu(scanres->sl), |
339 | le16_to_cpu(scanres->beacon_interval), | 336 | le16_to_cpu(scanres->beacon_interval), |
340 | le16_to_cpu(scanres->capability), | 337 | le16_to_cpu(scanres->capability), |
341 | le16_to_cpu(scanres->rate), | 338 | le16_to_cpu(scanres->rate), |
342 | print_mac(mac, scanres->bssid), | 339 | scanres->bssid, |
343 | le16_to_cpu(scanres->atim)); | 340 | le16_to_cpu(scanres->atim)); |
344 | 341 | ||
345 | pos = scanres->sup_rates; | 342 | pos = scanres->sup_rates; |