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