Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ocjojo/node-wifi into ocj…
Browse files Browse the repository at this point in the history
…ojo-master
  • Loading branch information
Thibault Friedrich committed May 13, 2018
2 parents 16e5f37 + e4bd8e4 commit 6e03a4a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@
* add disconnection feature on windows (issue #16)
* add new fields in scan results (bssid equals to mac, channel, security_flags)
* improve stability of linux scan

# Version 2.0.1

* improve stability of windows scan and current connection

# Version 2.0.2

* correct bug #24
2 changes: 2 additions & 0 deletions src/mac-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function connectToWifi(config, ap, callback) {
//console.log(stderr, resp);
if (resp && resp.indexOf('Failed to join network') >= 0) {
callback && callback(resp);
} else if (resp && resp.indexOf('Could not find network') >= 0) {
callback && callback(resp);
} else {
callback && callback(err);
}
Expand Down

0 comments on commit 6e03a4a

Please sign in to comment.