diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-12-30 17:27:26 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-12-30 17:27:26 +0000 |
commit | 1bd879c93719b69c73ac10b0bf9085cee3f62ef6 (patch) | |
tree | 8acc6380bfc0b04c9dfe40b5f35af020151716ff /sbin/ifconfig | |
parent | 7a7413525ac11dcbfc2f1bee07bbde51d02874af (diff) | |
download | FreeBSD-src-1bd879c93719b69c73ac10b0bf9085cee3f62ef6.zip FreeBSD-src-1bd879c93719b69c73ac10b0bf9085cee3f62ef6.tar.gz |
When printing SSID's in ifconfig(8)'s scan mode, set the width of the
ssid field to 32 characters instead of 14, as long SSID's are quite
common and hard to type in if you can't read them.
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r-- | sbin/ifconfig/ifieee80211.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index 2c6d8a7..5ac0690 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -846,7 +846,7 @@ list_scan(int s) { uint8_t buf[24*1024]; struct ieee80211req ireq; - char ssid[14]; + char ssid[IEEE80211_NWID_LEN+1]; uint8_t *cp; int len; @@ -861,7 +861,7 @@ list_scan(int s) if (len < sizeof(struct ieee80211req_scan_result)) return; - printf("%-14.14s %-17.17s %4s %4s %-5s %3s %4s\n" + printf("%-32.32s %-17.17s %4s %4s %-5s %3s %4s\n" , "SSID" , "BSSID" , "CHAN" @@ -877,7 +877,7 @@ list_scan(int s) sr = (struct ieee80211req_scan_result *) cp; vp = (u_int8_t *)(sr+1); - printf("%-14.*s %s %3d %3dM %2d:%-2d %3d %-4.4s" + printf("%-32.*s %s %3d %3dM %2d:%-2d %3d %-4.4s" , copy_essid(ssid, sizeof(ssid), vp, sr->isr_ssid_len) , ssid , ether_ntoa((const struct ether_addr *) sr->isr_bssid) |