diff options
author | Enrique Giraldo <enrique.giraldo@galgus.net> | 2018-09-18 13:43:01 +0200 |
---|---|---|
committer | Enrique Giraldo <hgiraldos@gmail.com> | 2019-05-02 08:47:06 +0200 |
commit | 4518c0629089eccfc7d2e88a79409cb2df226306 (patch) | |
tree | 5151e1d915ac5eb907f600689c1c992534903c0c /modules/luci-mod-network/luasrc | |
parent | 3b379f01b52ec1150662f707864608e3e0f51c3f (diff) |
luci-mod-admin-full: add dependency for channel auto
Do not show 'auto' channel option if hostapd is
not compiled with CONFIG_ACS
Signed-off-by: Enrique Giraldo <hgiraldos@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/luasrc')
-rw-r--r-- | modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua index 7b7fc0ffcf..6cf4bdd244 100644 --- a/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/luci-mod-network/luasrc/model/cbi/admin_network/wifi.lua @@ -177,6 +177,7 @@ if found_sta then else ch = s:taboption("general", Value, "_mode_freq", '<br />'..translate("Operating frequency")) ch.iwinfo = iw + ch.hostapd_acs = (os.execute("hostapd -vacs >/dev/null 2>/dev/null") == 0) ch.template = "cbi/wireless_modefreq" function ch.cfgvalue(self, section) |