From f039069ac52e0da00ce9f3486926fbddd29a6ea0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 21 Jun 2022 08:52:50 +0200 Subject: luci-mod-network: wireless.js: expose wifi-iface macaddr option Fixes: #5845 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/network/wireless.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index a81228543d..f392c94392 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -1156,6 +1156,11 @@ return view.extend({ if (/^radio\d+\.network/.test(o.placeholder)) o.placeholder = ''; + o = ss.taboption('advanced', form.Value, 'macaddr', _('MAC address'), _('Override default MAC address - the range of usable addresses might limited by the driver')); + o.optional = true; + o.placeholder = radioNet.getActiveBSSID(); + o.datatype = 'macaddr'; + o = ss.taboption('advanced', form.Flag, 'short_preamble', _('Short Preamble')); o.default = o.enabled; -- cgit v1.2.3