* [PATCH] iw: Add support for mesh peer link expiration.
@ 2013-07-08 17:04 Colleen Twitty
2013-07-08 18:14 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Colleen Twitty @ 2013-07-08 17:04 UTC (permalink / raw)
To: linux-wirelss; +Cc: Johannes Berg, open80211s
User can configure the peer link expiration time with a
new mesh parameter, mesh_plink_timeout. This parameter
sets the expiration time, in seconds, for peer links.
After this time, the peer link is expired. This means the
inactive STA is removed from the list of peers and is not
considered a peer again unless it re-peers.
Signed-off-by: Colleen Twitty <colleen@cozybit.com>
---
mesh.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/mesh.c b/mesh.c
index 5a09b62..ca065bf 100644
--- a/mesh.c
+++ b/mesh.c
@@ -157,6 +157,11 @@ static void _print_u32_timeout(struct nlattr *a)
printf("%u milliseconds", nla_get_u32(a));
}
+static void _print_u32_in_seconds(struct nlattr *a)
+{
+ printf("%d seconds", nla_get_u32(a));
+}
+
static void _print_u32_in_TUs(struct nlattr *a)
{
printf("%d TUs", nla_get_u32(a));
@@ -258,6 +263,8 @@ const static struct mesh_param_descr _mesh_param_descrs[] =
_my_nla_put_u32, _parse_u32_power_mode, _print_u32_power_mode},
{"mesh_awake_window", NL80211_MESHCONF_AWAKE_WINDOW,
_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},
};
static void print_all_mesh_param_descr(void)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iw: Add support for mesh peer link expiration.
2013-07-08 17:04 [PATCH] iw: Add support for mesh peer link expiration Colleen Twitty
@ 2013-07-08 18:14 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2013-07-08 18:14 UTC (permalink / raw)
To: Colleen Twitty; +Cc: linux-wirelss, open80211s
On Mon, 2013-07-08 at 10:04 -0700, Colleen Twitty wrote:
> User can configure the peer link expiration time with a
> new mesh parameter, mesh_plink_timeout. This parameter
> sets the expiration time, in seconds, for peer links.
> After this time, the peer link is expired. This means the
> inactive STA is removed from the list of peers and is not
> considered a peer again unless it re-peers.
Applied.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-08 18:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-08 17:04 [PATCH] iw: Add support for mesh peer link expiration Colleen Twitty
2013-07-08 18:14 ` Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.