cli: print the frequency and band on the scan list
authorAndre Heider <a.heider@gmail.com>
Thu, 24 Nov 2022 16:37:16 +0000 (17:37 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 20 Jan 2023 16:26:58 +0000 (17:26 +0100)
Provide band and frequency info on scan list dump.

Signed-off-by: Andre Heider <a.heider@gmail.com>
iwinfo_cli.c

index 02296acd1b1a6a4e0a51ca76bfcb1b28656aca50..c1242bf9cd8566474c81322aa7f9025c0b34dea7 100644 (file)
@@ -659,8 +659,10 @@ static void print_scanlist(const struct iwinfo_ops *iw, const char *ifname)
                        format_bssid(e->mac));
                printf("          ESSID: %s\n",
                        format_ssid(e->ssid));
-               printf("          Mode: %s  Channel: %s\n",
+               printf("          Mode: %s  Frequency: %s  Band: %s  Channel: %s\n",
                        IWINFO_OPMODE_NAMES[e->mode],
+                       format_frequency(e->mhz),
+                       format_band(e->band),
                        format_channel(e->channel));
                printf("          Signal: %s  Quality: %s/%s\n",
                        format_signal(e->signal - 0x100),