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'));
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'));