Skip to content

Commit

Permalink
Fix wireless interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Oct 21, 2024
1 parent cd9f6bc commit fd1c240
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" ],
Expand Down

0 comments on commit fd1c240

Please sign in to comment.