From def7443e2bf105de2c204d5ee4e6357415c84787 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Fri, 3 Jul 2020 00:18:13 +1000 Subject: [PATCH] wifi-scan: alternate form of channel --- bin/wifi-scan | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/wifi-scan b/bin/wifi-scan index 11bd7d0..9b3b17c 100755 --- a/bin/wifi-scan +++ b/bin/wifi-scan @@ -55,6 +55,9 @@ function formatScanResult(scanResult) { if (line.startsWith('DS Parameter set: channel')) { partial.channel = line.split(':')[1].trim(); } + if (line.startsWith('* primary channel:')) { + partial.channel = 'channel ' + line.split(':')[1].trim(); + } if (line.startsWith('freq: ')) { partial.freq = 'freq ' + line.split(':')[1].trim(); } -- 2.39.2