From: Andre Heider Date: Thu, 24 Nov 2022 16:37:16 +0000 (+0100) Subject: cli: print the frequency and band on the scan list X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=0172c977592484804a3a8f72781e428fca844cba;p=project%2Fiwinfo.git cli: print the frequency and band on the scan list Provide band and frequency info on scan list dump. Signed-off-by: Andre Heider --- diff --git a/iwinfo_cli.c b/iwinfo_cli.c index 02296ac..c1242bf 100644 --- a/iwinfo_cli.c +++ b/iwinfo_cli.c @@ -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),