mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-11 15:12:10 -05:00
wifi-scripts: ucode: print unknown ssid as unknown
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:
parent
1756dddb9f
commit
41aceb2de8
@ -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`);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user