diff --git a/package/gluon-web-private-wifi/luasrc/lib/gluon/web/model/admin/privatewifi.lua b/package/gluon-web-private-wifi/luasrc/lib/gluon/web/model/admin/privatewifi.lua index 5e8095e435acbe377493aefec06cc2e3d7d427b0..731b94ea1aa3540aa55eb0d5e8933b70ed2f8284 100644 --- a/package/gluon-web-private-wifi/luasrc/lib/gluon/web/model/admin/privatewifi.lua +++ b/package/gluon-web-private-wifi/luasrc/lib/gluon/web/model/admin/privatewifi.lua @@ -14,7 +14,7 @@ local s = f:section(Section, nil, translate( )) local enabled = s:option(Flag, "enabled", translate("Enabled")) -enabled.default = (ssid and not uci:get_bool('wireless', primary_iface, "disabled")) +enabled.default = uci:get('wireless', primary_iface) and not uci:get_bool('wireless', primary_iface, "disabled") local ssid = s:option(Value, "ssid", translate("Name (SSID)")) ssid:depends(enabled, true)