From 13f9f6f010decfd0016beb659978b4b8d4895a1c Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Mon, 3 Nov 2025 22:32:33 +0100 Subject: [PATCH] luci-mod-network: implement checks for mesh capabilities 802.11s i.e. mesh mode value is now gated behind a check for the capability. Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/network/wireless.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index 708a4f510b..1bd192b325 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -951,6 +951,7 @@ return view.extend({ s.addModalOptions = function(s) { return network.getWifiNetwork(s.section).then(function(radioNet) { const hwtype = uci.get('wireless', radioNet.getWifiDeviceName(), 'type'); + const have_mesh = L.hasSystemFeature('hostapd', 'mesh') || L.hasSystemFeature('wpasupplicant', 'mesh'); let o, ss; o = s.option(form.SectionValue, '_device', form.NamedSection, radioNet.getWifiDeviceName(), 'wifi-device', _('Device Configuration')); @@ -1119,7 +1120,7 @@ return view.extend({ const mode = ss.children[0]; const bssid = ss.children[5]; - mode.value('mesh', '802.11s'); + if (have_mesh) mode.value('mesh', '802.11s'); mode.value('ahdemo', _('Pseudo Ad-Hoc (ahdemo)')); mode.value('monitor', _('Monitor')); -- 2.30.2