iw: Add support for NL80211_MESHCONF_HWMP_ALWAYS_MAX_DISCOVERIES netlink attribute
PATCH 1/1 iw: Add support for NL80211_MESHCONF_HWMP_ALWAYS_MAX_DISCOVERIES netlink attribute
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 <[email protected]>
--- mesh.c | 3 +++ nl80211.h | 3 +++ 2 files changed, 6 insertions(+)
mesh.c +3 -0
@@ -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 )
nl80211.h +3 -0
@@ -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,
Signature · 1 line
2.5.0.rc3