2 LuCI - Lua Configuration Interface
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
14 local niulib = require "luci.niulib"
16 m = Map("wireless", translate("Join a local WDS network"))
17 s = m:section(NamedSection, "bridge", "wifi-iface", translate("Wireless Radio Device"),
19 "Select the wireless radio device that should be used to run the interface."..
20 " Note that wireless radios will not show up here if you already use"..
21 " them for other wireless services and are not capable of being used by"..
22 " more than one service simultaneously or run this specific service at all."))
26 l = s:option(ListValue, "device", translate("Wireless Device"))
28 for _, wifi in ipairs(niulib.wifi_get_available("bridge", {atheros = true, mac80211 = true})) do
29 l:value(wifi, translate("WLAN-Adapter (%s)") % wifi)
31 l:value("none", translate("Disable Bridge"))