[PATCH] mesh: Make mesh ttl configurable
Jouni Malinen
j at w1.fi
Mon Jul 27 05:48:40 PDT 2026
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