luci-mod-network: check directly if hostapd supports wps
authorAnsuel Smith <[email protected]>
Sat, 10 Oct 2020 23:32:07 +0000 (01:32 +0200)
committerAnsuel Smith <[email protected]>
Sat, 10 Oct 2020 23:32:21 +0000 (01:32 +0200)
Wps Push Button feature is now supported directly from ubus instead of using hostapd_cli.

Signed-off-by: Ansuel Smith <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index dc75c9509fdc1b23eff545086388770df2caec21..fff9862fbaa2f76875829956d4fd2efe75cac420 100644 (file)
@@ -1634,7 +1634,7 @@ return view.extend({
                                                o = ss.taboption('encryption', form.Flag, 'wpa_disable_eapol_key_retries', _('Enable key reinstallation (KRACK) countermeasures'), _('Complicates key reinstallation attacks on the client side by disabling retransmission of EAPOL-Key frames that are used to install keys. This workaround might cause interoperability issues and reduced robustness of key negotiation especially in environments with heavy traffic load.'));
                                                add_dependency_permutations(o, { mode: ['ap', 'ap-wds'], encryption: ['psk2', 'psk-mixed', 'sae', 'sae-mixed', 'wpa2', 'wpa3', 'wpa3-mixed'] });
 
-                                               if (L.hasSystemFeature('hostapd', 'cli') && L.hasSystemFeature('wpasupplicant')) {
+                                               if (L.hasSystemFeature('hostapd', 'wps') && L.hasSystemFeature('wpasupplicant')) {
                                                        o = ss.taboption('encryption', form.Flag, 'wps_pushbutton', _('Enable WPS pushbutton, requires WPA(2)-PSK/WPA3-SAE'))
                                                        o.enabled = '1';
                                                        o.disabled = '0';