Skip to content

Prefer higher-frequency band when a node has multiple simultaneous me…#253

Draft
VA2XJM wants to merge 1 commit into
aredn:mainfrom
VA2XJM:main
Draft

Prefer higher-frequency band when a node has multiple simultaneous me…#253
VA2XJM wants to merge 1 commit into
aredn:mainfrom
VA2XJM:main

Conversation

@VA2XJM

@VA2XJM VA2XJM commented Jul 6, 2026

Copy link
Copy Markdown

Goes with aredn/aredn#2800

mesh radios

On nodes like HaLowLink1 that can run more than one radio in a mesh role at once (e.g. HaLow + 2.4GHz), babeld_wrapper now ranks each mesh wlan interface by band and adds a configurable rxcost_penalty (default 256) to any radio that isn't the highest-frequency band present, so babel prefers the faster/less-congested link and leaves the narrower band's bandwidth free for peers that can only reach the node that way. The penalty is only ever applied relative to another mesh radio on the same node, so nodes with a single mesh radio see no change in behavior.

Band is determined primarily from the mesh radio's configured channel bandwidth (HaLow is the only band using sub-5MHz widths), falling back to iw-reported frequency otherwise, since HaLow interfaces can report a translated/bogus frequency via iw dev info.

…sh radios

On nodes like HaLowLink1 that can run more than one radio in a mesh role at
once (e.g. HaLow + 2.4GHz), babeld_wrapper now ranks each mesh wlan
interface by band and adds a configurable rxcost_penalty (default 256) to
any radio that isn't the highest-frequency band present, so babel prefers
the faster/less-congested link and leaves the narrower band's bandwidth
free for peers that can only reach the node that way. The penalty is only
ever applied relative to another mesh radio on the same node, so nodes
with a single mesh radio see no change in behavior.

Band is determined primarily from the mesh radio's configured channel
bandwidth (HaLow is the only band using sub-5MHz widths), falling back to
iw-reported frequency otherwise, since HaLow interfaces can report a
translated/bogus frequency via iw dev info.
@aanon4 aanon4 marked this pull request as draft July 6, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant