From 57652e795cb3cb3f506fb8ed7e7204cd46e2b2b9 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Fri, 10 Nov 2017 17:06:04 -0500 Subject: [PATCH] nwfnet-go: move to modern wifi configuration --- net/nwfnet-go.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nwfnet-go.lua b/net/nwfnet-go.lua index c073e40..d89d2b7 100644 --- a/net/nwfnet-go.lua +++ b/net/nwfnet-go.lua @@ -14,7 +14,7 @@ if file.open("nwfnet.conf","r") then local conf = sjson.decode(file.read() or "") if type(conf) == "table" then local essid = conf["sta_essid"]; local pw = conf["sta_pw"] - if essid ~= nil and pw ~= nil then wifi.sta.config(essid,pw,0) end + if essid ~= nil and pw ~= nil then wifi.sta.config({['ssid'] = essid, ['pwd'] = pw, save=true}) end if conf["ap"] ~= nil then pcall(wifi.ap.config,conf["ap"]) end -- 2.50.1