diff options
Diffstat (limited to 'drivers/net/wireless/libertas/debugfs.c')
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index b62ebca9ab6d..902b4be19d40 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c | |||
@@ -84,7 +84,8 @@ static ssize_t libertas_getscantable(struct file *file, char __user *userbuf, | |||
84 | iter_bss->cap.spectrummgmt ? 'S' : ' '); | 84 | iter_bss->cap.spectrummgmt ? 'S' : ' '); |
85 | pos += snprintf(buf+pos, len-pos, " %08llx |", iter_bss->networktsf); | 85 | pos += snprintf(buf+pos, len-pos, " %08llx |", iter_bss->networktsf); |
86 | pos += snprintf(buf+pos, len-pos, " %d |", SCAN_RSSI(iter_bss->rssi)); | 86 | pos += snprintf(buf+pos, len-pos, " %d |", SCAN_RSSI(iter_bss->rssi)); |
87 | pos += snprintf(buf+pos, len-pos, " %s\n", iter_bss->ssid.ssid); | 87 | pos += snprintf(buf+pos, len-pos, " %s\n", |
88 | escape_essid(iter_bss->ssid, iter_bss->ssid_len)); | ||
88 | 89 | ||
89 | numscansdone++; | 90 | numscansdone++; |
90 | } | 91 | } |
@@ -174,7 +175,6 @@ static ssize_t libertas_extscan(struct file *file, const char __user *userbuf, | |||
174 | { | 175 | { |
175 | wlan_private *priv = file->private_data; | 176 | wlan_private *priv = file->private_data; |
176 | ssize_t res, buf_size; | 177 | ssize_t res, buf_size; |
177 | struct WLAN_802_11_SSID extscan_ssid; | ||
178 | union iwreq_data wrqu; | 178 | union iwreq_data wrqu; |
179 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 179 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
180 | char *buf = (char *)addr; | 180 | char *buf = (char *)addr; |
@@ -185,10 +185,7 @@ static ssize_t libertas_extscan(struct file *file, const char __user *userbuf, | |||
185 | goto out_unlock; | 185 | goto out_unlock; |
186 | } | 186 | } |
187 | 187 | ||
188 | memcpy(&extscan_ssid.ssid, buf, strlen(buf)-1); | 188 | libertas_send_specific_SSID_scan(priv, buf, strlen(buf)-1, 0); |
189 | extscan_ssid.ssidlength = strlen(buf)-1; | ||
190 | |||
191 | libertas_send_specific_SSID_scan(priv, &extscan_ssid, 0); | ||
192 | 189 | ||
193 | memset(&wrqu, 0, sizeof(union iwreq_data)); | 190 | memset(&wrqu, 0, sizeof(union iwreq_data)); |
194 | wireless_send_event(priv->dev, SIOCGIWSCAN, &wrqu, NULL); | 191 | wireless_send_event(priv->dev, SIOCGIWSCAN, &wrqu, NULL); |