diff options
Diffstat (limited to 'drivers/net/wireless/libertas/debugfs.c')
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index 715cbdaa1d4b..e5cbfa8d6e3f 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c | |||
@@ -70,18 +70,18 @@ static ssize_t libertas_getscantable(struct file *file, char __user *userbuf, | |||
70 | 70 | ||
71 | mutex_lock(&priv->adapter->lock); | 71 | mutex_lock(&priv->adapter->lock); |
72 | list_for_each_entry (iter_bss, &priv->adapter->network_list, list) { | 72 | list_for_each_entry (iter_bss, &priv->adapter->network_list, list) { |
73 | u16 cap; | 73 | u16 ibss = (iter_bss->capability & WLAN_CAPABILITY_IBSS); |
74 | u16 privacy = (iter_bss->capability & WLAN_CAPABILITY_PRIVACY); | ||
75 | u16 spectrum_mgmt = (iter_bss->capability & WLAN_CAPABILITY_SPECTRUM_MGMT); | ||
74 | 76 | ||
75 | memcpy(&cap, &iter_bss->cap, sizeof(cap)); | ||
76 | pos += snprintf(buf+pos, len-pos, | 77 | pos += snprintf(buf+pos, len-pos, |
77 | "%02u| %03d | %03ld | " MAC_FMT " |", | 78 | "%02u| %03d | %03ld | " MAC_FMT " |", |
78 | numscansdone, iter_bss->channel, iter_bss->rssi, | 79 | numscansdone, iter_bss->channel, iter_bss->rssi, |
79 | MAC_ARG(iter_bss->bssid)); | 80 | MAC_ARG(iter_bss->bssid)); |
80 | pos += snprintf(buf+pos, len-pos, " %04x-", cap); | 81 | pos += snprintf(buf+pos, len-pos, " %04x-", iter_bss->capability); |
81 | pos += snprintf(buf+pos, len-pos, "%c%c%c |", | 82 | pos += snprintf(buf+pos, len-pos, "%c%c%c |", |
82 | iter_bss->cap.ibss ? 'A' : 'I', | 83 | ibss ? 'A' : 'I', privacy ? 'P' : ' ', |
83 | iter_bss->cap.privacy ? 'P' : ' ', | 84 | spectrum_mgmt ? '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", | 87 | pos += snprintf(buf+pos, len-pos, " %s\n", |