This attributes allows configuring mesh to either do only minimum number of discovery attempts (up to MaxPREretries) or always do MaxPREretries number of tries even when getting responses. Signed-off-by: Alexis Green <agreen@xxxxxxxxxxxxx> --- mesh.c | 3 +++ nl80211.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mesh.c b/mesh.c index 97f236b..b828408 100644 --- a/mesh.c +++ b/mesh.c @@ -264,6 +264,9 @@ const static struct mesh_param_descr _mesh_param_descrs[] = _my_nla_put_u16, _parse_u16, _print_u16_in_TUs}, {"mesh_plink_timeout", NL80211_MESHCONF_PLINK_TIMEOUT, _my_nla_put_u32, _parse_u32, _print_u32_in_seconds}, + {"mesh_hwmp_always_max_discoveries", + NL80211_MESHCONF_HWMP_ALWAYS_MAX_DISCOVERIES, + _my_nla_put_u8, _parse_u8_as_bool, _print_u8}, }; static void print_all_mesh_param_descr(void) diff --git a/nl80211.h b/nl80211.h index 56368e9..bb53e8b 100644 --- a/nl80211.h +++ b/nl80211.h @@ -3352,6 +3352,8 @@ enum nl80211_mesh_power_mode { * established peering with for longer than this time (in seconds), then * remove it from the STA's list of peers. You may set this to 0 to disable * the removal of the STA. Default is 30 minutes. + * @NL80211_MESHCONF_HWMP_ALWAYS_MAX_DISCOVERIES: whether to always perform + * number of discovery attempts equal to MaxPREQretries (default is FALSE) * * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use */ @@ -3385,6 +3387,7 @@ enum nl80211_meshconf_params { NL80211_MESHCONF_POWER_MODE, NL80211_MESHCONF_AWAKE_WINDOW, NL80211_MESHCONF_PLINK_TIMEOUT, + NL80211_MESHCONF_HWMP_ALWAYS_MAX_DISCOVERIES, /* keep last */ __NL80211_MESHCONF_ATTR_AFTER_LAST, -- 2.5.0.rc3