From 39621b215fa3706ad7663210927eff599b0187ca Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Fri, 10 Jan 2014 11:13:26 +0100 Subject: [PATCH] Small comments and log fixes --- src/main.lua | 4 ++-- src/network/signin.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.lua b/src/main.lua index 4cee85b..36e07a2 100644 --- a/src/main.lua +++ b/src/main.lua @@ -76,9 +76,10 @@ local function setupAutoWifiMode() end -- try to find a known network which is also visible (ordered by known network definitions) + -- when it finds a access point configuration first, it will use that local connectWith = nil for _,kn in ipairs(knownSsids) do - if kn.mode == 'ap' and kn.ssid == apSsid then break end + if kn.mode == 'ap' and kn.ssid == apSsid then break end if findSsidInList(scanList, kn.ssid) then connectWith = kn.ssid break @@ -93,7 +94,6 @@ local function setupAutoWifiMode() return nil, "autowifi: could not associate with ssid '" .. connectWith .. "' (" .. msg .. ")" end elseif netMode ~= 'ap' or netName ~= apSsid then - log:info("falling back to access point mode") local rv,msg = netconf.setupAccessPoint(apSsid) if rv then return true, "autowifi: configured as access point with ssid '" .. apSsid .. "'" diff --git a/src/network/signin.lua b/src/network/signin.lua index 8d0a808..7f20f32 100644 --- a/src/network/signin.lua +++ b/src/network/signin.lua @@ -56,7 +56,7 @@ function M.signin() log:debug("signin attempt "..utils.dump(attempt).."/"..utils.dump(maxAttempts)) local signedin = false local localip = wifi.getLocalIP(); - log:debug(" localip: "..utils.dump(localip)) + --log:debug(" localip: "..utils.dump(localip)) if localip ~= nil then local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))