luci-mod-network: wireless.js: expose wifi-iface macaddr option
authorJo-Philipp Wich <jo@mein.io>
Tue, 21 Jun 2022 06:52:50 +0000 (08:52 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 21 Jun 2022 06:52:50 +0000 (08:52 +0200)
Fixes: #5845
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index a81228543d6e0730afe1197ae4ff07d4ac2c664b..f392c94392061c09d2117e7c5b8eafca4cb55abc 100644 (file)
@@ -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;