Update iwlist.js
This commit is contained in:
parent
bc61dc2f02
commit
50090aecda
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user