Make network scan list a bit cleaner.

This commit is contained in:
Dave Hansen 2009-02-05 12:57:57 -08:00
parent e81e16ef8d
commit 468520221a
2 changed files with 6 additions and 4 deletions

View file

@ -336,7 +336,7 @@ char *net_test_state_name(u8 state)
}
const char *net_types[] = {
"No security",
"none",
"WEP",
"WPA",
"unknown1",

View file

@ -70,10 +70,12 @@ void scan_print_nets(void)
printf("Scanned wireless networks:\n");
for (i=0; i < scanned->nr; i++) {
struct scanned_net *net = &scanned->nets[i];
printf("'%s' type(%d): %s, strength: %d\n", net->essid,
net->type,
net_type_name(net->type),
printf("security: ");
if (eyefi_debug_level > 1)
printf("(%d)", net->type);
printf("%4s, strength: %3d ", net_type_name(net->type),
net->strength);
printf("essid: '%s'\n", net->essid);
}
}