luci-mod-admin-full: Add option to set wireless interface name
authorDaniel Dickinson <openwrt@daniel.thecshore.com>
Fri, 25 Mar 2016 07:17:49 +0000 (03:17 -0400)
committerDaniel Dickinson <openwrt@daniel.thecshore.com>
Fri, 25 Mar 2016 07:17:54 +0000 (03:17 -0400)
With mac80211 you can set the wireless interface;
expose this capability.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 9db42e3c4e9c870f75905dbccfc73ae166e53f57..945512e094ac612d2f51035bac69b86c0c0b69f0 100644 (file)
@@ -475,6 +475,9 @@ if hwtype == "mac80211" then
        wmm:depends({mode="ap"})
        wmm:depends({mode="ap-wds"})
        wmm.default = wmm.enabled
+       
+       ifname = s:taboption("advanced", Value, "ifname", translate("Interface name"), translate("Override default interface name"))
+       ifname.optional = true
 end