--- /usr/src/usr.sbin/wicontrol/wicontrol.c.orig Sun Jan 18 00:26:09 2004 +++ /usr/src/usr.sbin/wicontrol/wicontrol.c Sun Jan 18 01:11:05 2004 @@ -608,14 +608,14 @@ if (!quiet) { int nstations = ((wreq.wi_len * 2) - i) / len; printf("%d station%s:\n", nstations, nstations == 1 ? "" : "s"); - printf("%-16.16s BSSID Chan SN S N Intrvl Capinfo\n", "SSID"); + printf("%-32.32s BSSID Chan SN S N Intrvl Capinfo\n", "SSID"); } for (; i < (wreq.wi_len * 2) - len; i += len) { res = (struct wi_scan_res *)((char *)wreq.wi_val + i); res->wi_ssid[res->wi_ssid_len] = '\0'; - printf("%-16.16s [ %02x:%02x:%02x:%02x:%02x:%02x ] [ %-2d ] " + printf("%-32.32s [ %02x:%02x:%02x:%02x:%02x:%02x ] [ %-2d ] " "[ %2d %2d %2d ] %3d ", res->wi_ssid, res->wi_bssid[0], res->wi_bssid[1], res->wi_bssid[2], res->wi_bssid[3], res->wi_bssid[4], res->wi_bssid[5], @@ -1099,7 +1099,7 @@ opterr = 1; while((ch = getopt(argc, argv, - "a:c:d:e:E:f:hi:k:lm:n:op:q:r:s:t:v:CF:LP:QS:T:Z")) != -1) { + "a:c:d:e:E:f:hi:k:lm:n:op:q:r:s:t:v:CF:LP:QS:T:Z:b")) != -1) { switch(ch) { case 'Z': #ifdef WICACHE @@ -1222,6 +1222,10 @@ modifier = atoi(optarg); modifier--; break; + case 'b': + wi_printaplist(iface); + exit(0); + break; case 'h': default: usage(p);