diff --git a/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index e979ecad43..53305ed257 100644 --- a/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -1809,7 +1809,8 @@ return view.extend({ o.placeholder = '201'; o.rmempty = true; - if (not (string.find(uci.get('openmptcprouter','settings','version'), '5.4'))) { + var version_omr = uci.get('openmptcprouter', 'settings', 'version') || ''; + if (!version_omr.includes('5.4')) { if (L.hasSystemFeature('hostapd', 'ocv') || L.hasSystemFeature('wpasupplicant', 'ocv')) { o = ss.taboption('encryption', form.ListValue, 'ocv', _('Operating Channel Validation'), _("Note: Workaround mode allows a STA that claims OCV capability to connect even if the STA doesn't send OCI or negotiate PMF.")); o.value('0', _('Disabled')); diff --git a/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json b/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json index b377f395f0..40ad05bc88 100644 --- a/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json +++ b/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json @@ -17,7 +17,7 @@ "iwinfo": [ "assoclist", "countrylist", "freqlist", "txpowerlist" ], "luci": [ "getSwconfigFeatures", "getSwconfigPortState" ] }, - "uci": [ "dhcp", "firewall", "network", "wireless" ] + "uci": [ "dhcp", "firewall", "network", "wireless", "openmptcprouter" ] }, "write": { "cgi-io": [ "exec" ],