luci-mod-network: remove uciname validation from wireless interface
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 15 Jan 2023 08:09:30 +0000 (10:09 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 15 Jan 2023 08:09:30 +0000 (10:09 +0200)
Remove the 'uciname' validation rule, as it prevents using '-' that
is a valid character.

Fixes: 0c1be9ae5 luci-mod-network: Add length restriction to wireless
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index de3eacff237100c4a191bc7c5cf80a6b4a65889c..bdeaecf8a9442aab0fe76b3c2b58d880948c20c6 100644 (file)
@@ -1159,7 +1159,7 @@ return view.extend({
 
                                        o = ss.taboption('advanced', form.Value, 'ifname', _('Interface name'), _('Override default interface name'));
                                        o.optional = true;
-                                       o.datatype = 'and(uciname,maxlength(15))';
+                                       o.datatype = 'maxlength(15)';
                                        o.placeholder = radioNet.getIfname();
                                        if (/^radio\d+\.network/.test(o.placeholder))
                                                o.placeholder = '';