Skip to content

gluon-mesh-batman-adv: move wireless hop_penalty handling from gluon-core - #3810

Open
rotanid wants to merge 1 commit into
freifunk-gluon:mainfrom
rotanid:batadv-relocate
Open

gluon-mesh-batman-adv: move wireless hop_penalty handling from gluon-core#3810
rotanid wants to merge 1 commit into
freifunk-gluon:mainfrom
rotanid:batadv-relocate

Conversation

@rotanid

@rotanid rotanid commented Aug 19, 2026

Copy link
Copy Markdown
Member

The batadv_hop_penalty option for wireless mesh interfaces was read
in gluon-core's 200-wireless, mixing the batman-adv-specific option
name into the generic wireless configurator. Move the read into a new
gluon-mesh-batman-adv upgrade script (305) that runs after
200-wireless has created the mesh_<radio> network interfaces.

Changes

  • New 305-gluon-mesh-batman-adv-hop-penalty: iterates radios,
    reads gluon.band_X.batadv_hop_penalty, and sets hop_penalty on
    existing network.mesh_<radio> sections (skipping radios where mesh
    is not enabled).
  • Removed the batadv_hop_penalty read from 200-wireless
    (gluon-core).
  • Documented the wireless band-scoped batadv_hop_penalty in
    gluon-mesh-batman-adv.rst alongside the existing wired/VPN variants.

Behavior

Preserved. When gluon.band_X.batadv_hop_penalty is set, hop_penalty
is applied to network.mesh_<radio>; when unset, it is left absent and
gluon_bat0.sh defaults it to 0 at runtime — equivalent to the
previous or 0 fallback in 200-wireless.

Background

Introduced in 17f59562 ("gluon-core: add hop_penalty support for mesh
interfaces"), which extended wired/VPN hop_penalty support to wireless
but placed the read in gluon-core. This PR completes the separation
noted by @neocturne in #3601: the batadv string should not appear in
gluon-core.

@github-actions github-actions Bot added 3. topic: docs Topic: Documentation 3. topic: package Topic: Gluon Packages 3. topic: batman-adv labels Aug 19, 2026
…core

The batadv_hop_penalty option for wireless mesh interfaces was read in
gluon-core's 200-wireless, mixing the batman-adv-specific option name
into the generic wireless configurator. Move the read into a new
gluon-mesh-batman-adv upgrade script (305) that runs after 200-wireless
has created the mesh_<radio> network interfaces.

Behavior is preserved: when gluon.band_X.batadv_hop_penalty is set,
hop_penalty is applied to network.mesh_<radio>; when unset, it is left
absent and gluon_bat0.sh defaults it to 0 at runtime (same as the
previous 'or 0' fallback in 200-wireless).

Also document the wireless band-scoped hop_penalty in
gluon-mesh-batman-adv.rst alongside the existing wired/VPN variants.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. topic: batman-adv 3. topic: docs Topic: Documentation 3. topic: package Topic: Gluon Packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant