wifi-scripts: ucode: print unknown ssid as unknown
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run

Currently it is printed as "null" (including quotes). Display it the same
as old iwinfo as unknown (no quotes).

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
This commit is contained in:
Oldřich Jedlička 2025-08-01 22:38:10 +02:00 committed by Felix Fietkau
parent 1756dddb9f
commit 41aceb2de8

View file

@ -44,7 +44,7 @@ function print_info(list) {
let padding = ' ';
for (let bss in list) {
printf(`${bss.iface} ESSID: "${bss.ssid}"\n`);
printf(`${bss.iface} ESSID: ${bss.ssid === null ? 'unknown' : '"' + bss.ssid + '"'}\n`);
printf(`${padding}Access Point: ${bss.mac}\n`);
printf(`${padding}Mode: ${bss.mode} Channel: ${bss.channel} (${bss.freq} GHz) HT Mode: ${bss.htmode}\n`);
printf(`${padding}Center Channel 1: ${bss.center_freq1} 2: ${bss.center_freq2}\n`);