Permalink
Browse files

store encryption mode in results

  • Loading branch information...
1 parent 01fe432 commit 685d01a9e210274e40742905f04374a79da5771e @substack committed Dec 1, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 iw.js
View
3 iw.js
@@ -42,5 +42,8 @@ exports.scan = function (iface, cb) {
if (m = /^\s+ESSID:"(.+)"/.exec(line)) {
current.essid = m[1];
}
+ else if (m = /^\s+Encryption key:(.+)/.exec(line)) {
+ current.encrypted = m[1] !== 'off';
+ }
}
}

0 comments on commit 685d01a

Please sign in to comment.