I hate to assume, but I'm going to assume that if one wants to scan for ap's for their wifi interface to connect to they don't care about anything else. I also removed what to me is one too many tabs.

Index: ifconfig.c
===================================================================
RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v
retrieving revision 1.362
diff -u -p -u -r1.362 ifconfig.c
--- ifconfig.c    27 Feb 2018 22:32:26 -0000    1.362
+++ ifconfig.c    9 Aug 2018 23:16:59 -0000
@@ -772,6 +772,11 @@ main(int argc, char *argv[])
             return bridge_rule(argc, argv, -1);
         }
 #endif
+        if (strcmp(p->c_name, "scan") == 0) {
+            ieee80211_listnodes();
+            return 0;
+        }
+
         if (p->c_name == 0 && setaddr)
             for (i = setaddr; i > 0; i--) {
                 p++;
@@ -2288,7 +2293,7 @@ ieee80211_listnodes(void)
         qsort(nr, na.na_nodes, sizeof(*nr), rssicmp);

     for (i = 0; i < na.na_nodes; i++) {
-        printf("\t\t");
+        printf("\t");
         ieee80211_printnode(&nr[i]);
         putchar('\n');
     }


Reply via email to