diff options
author | Steven Barth <steven@midlink.org> | 2009-11-29 13:46:04 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-29 13:46:04 +0000 |
commit | e822874a710a00ee8b6de988ece12ba76e193236 (patch) | |
tree | 3d58aa56031e0cebbbe2749485cda9e7241f7f76 /modules/niu/luasrc/controller | |
parent | 2aa4534db4c01851fa38293766f326cf4089c032 (diff) |
NIU:
Add WDS bridge client mode
Extending / repeating WDS network in AP wizard
Better 802.11s support
Diffstat (limited to 'modules/niu/luasrc/controller')
-rw-r--r-- | modules/niu/luasrc/controller/niu/wireless.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/niu/luasrc/controller/niu/wireless.lua b/modules/niu/luasrc/controller/niu/wireless.lua index 4781426292..ee402bc490 100644 --- a/modules/niu/luasrc/controller/niu/wireless.lua +++ b/modules/niu/luasrc/controller/niu/wireless.lua @@ -23,11 +23,20 @@ function index() local toniu = {on_success_to={"niu"}} - local e = entry({"niu", "wireless"}, alias("niu"), "Wireless", 20) + local e = entry({"niu", "wireless"}, alias("niu"), i18n.translate("Wireless"), 20) --e.niu_dbtemplate = "niu/wireless" e.niu_dbtasks = true e.niu_dbicon = "icons32/network-wireless.png" entry({"niu", "wireless", "ap"}, - cbi("niu/wireless/ap", toniu), "Configure Private Access Point", 1) + cbi("niu/wireless/ap", toniu), i18n.translate("Configure Private Access Point"), 1) + + local bridge = false + uci.inst:foreach("wireless", "wifi-device", function(s) + if not bridge and (s.type == "mac80211" or s.type == "atheros") then + entry({"niu", "wireless", "bridge"}, + cbi("niu/wireless/bridge", toniu), i18n.translate("Join a local WDS network"), 2) + bridge = true + end + end) end
\ No newline at end of file |