1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Fix wireless interface

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-10-21 15:26:28 +02:00
parent cd9f6bc29e
commit fd1c2403a5
2 changed files with 3 additions and 2 deletions

View file

@ -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'));

View file

@ -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" ],