public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: only store changed gw_bandwidth values
@ 2012-05-11  8:10 Marek Lindner
  2012-05-11 19:56 ` Marek Lindner
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Lindner @ 2012-05-11  8:10 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Marek Lindner

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
 gateway_common.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gateway_common.c b/gateway_common.c
index ca57ac7..6e3b052 100644
--- a/gateway_common.c
+++ b/gateway_common.c
@@ -162,6 +162,9 @@ ssize_t gw_bandwidth_set(struct net_device *net_dev, char *buff, size_t count)
 	 **/
 	gw_bandwidth_to_kbit((uint8_t)gw_bandwidth_tmp, &down, &up);
 
+	if (atomic_read(&bat_priv->gw_bandwidth) == gw_bandwidth_tmp)
+		return count;
+
 	gw_deselect(bat_priv);
 	bat_info(net_dev,
 		 "Changing gateway bandwidth from: '%i' to: '%ld' (propagating: %d%s/%d%s)\n",
-- 
1.7.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: only store changed gw_bandwidth values
  2012-05-11  8:10 [B.A.T.M.A.N.] [PATCH] batman-adv: only store changed gw_bandwidth values Marek Lindner
@ 2012-05-11 19:56 ` Marek Lindner
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2012-05-11 19:56 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Friday, May 11, 2012 16:10:50 Marek Lindner wrote:
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> ---
>  gateway_common.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Applied in revision cbe9711.

Regards,
Marek

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-11 19:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-11  8:10 [B.A.T.M.A.N.] [PATCH] batman-adv: only store changed gw_bandwidth values Marek Lindner
2012-05-11 19:56 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox