Skip to content

Commit

Permalink
use radio.band instead of hwmode
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Oct 14, 2024
1 parent 1560aeb commit 3d64220
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ if not sysconfig.gluon_version and has_client_radio then

local name = 'client_' .. radio_name

if wireless.supports_channel(radio, config.channel()) and (radio.hwmode == '11a' or radio.hwmode == '11na') then
-- disable client radio on the 5GHz band which supports the mesh channel
if wireless.supports_channel(radio, config.channel()) and radio.band == '5g' then
uci:set('wireless', name, 'disabled', true)
end
end)
Expand Down

0 comments on commit 3d64220

Please sign in to comment.