From 50090aecda53dbf73a599d0da56bc96798a84ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aydo=C4=9Fan=20Karag=C3=B6z?= Date: Wed, 11 Sep 2019 16:59:05 +0300 Subject: [PATCH] Update iwlist.js --- lib/iwlist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iwlist.js b/lib/iwlist.js index a8dd1ab..b16708e 100644 --- a/lib/iwlist.js +++ b/lib/iwlist.js @@ -43,8 +43,8 @@ function parseOutput(str, callback) { } // Channel, an ugly thing to get it - else if (_.startsWith(line.trim(), 'Frequency:')) { - network.channel = parseInt(_.trim(line, ' )').split(/Channel/)[1], 10); + else if (_.startsWith(line.trim(), 'Channel:')) { + network.channel = parseInt(_.trim(line, ' )').split(/:/)[1]); } // Another ugly thing, the signal which can have different formats, even worse als