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 13, 2024
1 parent b827984 commit ef954ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ 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
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 ef954ac

Please sign in to comment.