[PATCH] mesh: Make mesh ttl configurable
Thiyagarajan Pandiyan
thiyagarajan at aerlync.com
Mon Jul 27 10:51:12 PDT 2026
Hi Jouni,
Thank you for the review. Addressed the nla attribute type in v2
by changing it to nla_get_u8().
Regarding the default value of 31, this matches the IEEE 802.11s
standard recommended default value for mesh TTL.
Regards,
Thiyagarajan
Thiyagarajan
On Mon, Jul 27, 2026 at 6:18 PM Jouni Malinen <j at w1.fi> wrote:
>
> On Tue, Apr 21, 2026 at 11:53:36AM +0530, Thiyagarajan Pandiyan wrote:
> > Allow mesh_ttl (dot11MeshTTL) to be configurable, pass that to the
> > driver (only nl80211 implemented).
>
> > diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
> > @@ -12803,6 +12803,9 @@ static int nl80211_put_mesh_config(struct nl_msg *msg,
> > + ((params->flags & WPA_DRIVER_MESH_CONF_FLAG_TTL) &&
> > + nla_put_u32(msg, NL80211_MESHCONF_TTL,
> > + params->mesh_ttl)) ||
>
> While nl80211.h does not document this explicitly, the kernel
> implementation in cfg80211 seems to use nla_get_u8() to fetch this
> attribute. As such, nla_put_u32() here seems wrong and would likely
> break functionality at least on big endian systems.
>
> > diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
> > @@ -19,6 +19,7 @@
> > +#define DEFAULT_MESH_TTL 31
>
> It would be good to explain where this default value comes from.
>
> --
> Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list