Skip to content

Commit

Permalink
gluon-web-wifi-config: disable mesh checkbox if channel is unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Dec 22, 2024
1 parent 4b54551 commit 6d521a2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ uci:foreach('wireless', 'wifi-device', function(config)
vif_option('client', {'client', 'owe'}, translate('Enable client network (access point)'))

local mesh_vif = vif_option('mesh', {'mesh'}, translate("Enable mesh network (802.11s)"))
if not wireless.supports_channel(radio, config.channel()) then
mesh_vif.disabled = true
end

if is_5ghz then
table.insert(mesh_vifs_5ghz, mesh_vif)
end
Expand Down

0 comments on commit 6d521a2

Please sign in to comment.