From 8b4d81a7e77099a739625397dbe6a3f1ae3bcf03 Mon Sep 17 00:00:00 2001 From: Wouter R Date: Tue, 9 Apr 2013 14:37:31 +0200 Subject: [PATCH] Improve logger; set encryption config when creating network from scan info; fix reconfiguration marking; add logging to init script; show encryption in web interface; fixes toward client mode setup; other minor fixes/improvements. --- src/admin/autowifi.js | 5 +- src/autowifi.lua | 21 ++++---- src/ext/autowifi_init | 13 +++-- src/reconf.lua | 113 ++++++++++++++++++++---------------------- src/util.lua | 17 ++++--- src/wifihelper.lua | 18 ++++++- 6 files changed, 105 insertions(+), 82 deletions(-) diff --git a/src/admin/autowifi.js b/src/admin/autowifi.js index ac31df2..c65706d 100644 --- a/src/admin/autowifi.js +++ b/src/admin/autowifi.js @@ -46,6 +46,7 @@ function parseNetLine(line) { r.bssid = line[1]; r.channel = line[2]; r.mode = line[3]; + r.encryption = line[4]; return r; } @@ -76,7 +77,7 @@ function fetchAvailableNetworks() { if (value != "") { var netinf = parseNetLine(value); var ssid = netinf.ssid; - options.append($("