luci-base: check support for hostapd wps
authorAnsuel Smith <ansuelsmth@gmail.com>
Sat, 10 Oct 2020 23:29:24 +0000 (01:29 +0200)
committerAnsuel Smith <ansuelsmth@gmail.com>
Sat, 10 Oct 2020 23:32:21 +0000 (01:32 +0200)
Check if hostapd supports wps pushbutton features.
(wps is now supported by ubus instead of using hostapd_cli)

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
modules/luci-base/root/usr/libexec/rpcd/luci

index 1d46ad276c808b18c0093544fcc27121a289727c..8ac661670746915eac725baa5c3d10dbb2bf7db3 100755 (executable)
@@ -219,7 +219,7 @@ local methods = {
                        rv.cabundle      = fs.access("/etc/ssl/certs/ca-certificates.crt")
                        rv.relayd        = fs.access("/usr/sbin/relayd")
 
-                       local wifi_features = { "eap", "11n", "11ac", "11r", "11w", "acs", "sae", "owe", "suiteb192", "wep" }
+                       local wifi_features = { "eap", "11n", "11ac", "11r", "11w", "acs", "sae", "owe", "suiteb192", "wep", "wps }
 
                        if fs.access("/usr/sbin/hostapd") then
                                rv.hostapd = { cli = fs.access("/usr/sbin/hostapd_cli") }