2 LuCI - Lua Development Framework
4 Copyright 2009 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
15 local require = require
16 module "luci.controller.niu.wireless"
19 if not fs.access("/etc/config/wireless") then
24 local toniu = {on_success_to={"niu"}}
26 local e = entry({"niu", "wireless"}, alias("niu"), i18n.translate("Wireless"), 20)
27 --e.niu_dbtemplate = "niu/wireless"
29 e.niu_dbicon = "icons32/network-wireless.png"
31 entry({"niu", "wireless", "ap"},
32 cbi("niu/wireless/ap", toniu), i18n.translate("Configure Private Access Point"), 1)
35 uci.inst:foreach("wireless", "wifi-device", function(s)
36 if not bridge and (s.type == "mac80211" or s.type == "atheros") then
37 entry({"niu", "wireless", "bridge"},
38 cbi("niu/wireless/bridge", toniu), i18n.translate("Join a local WDS network"), 2)