[commits] r1639 - trunk/batman-adv-kernelland

postmaster at open-mesh.net postmaster at open-mesh.net
Tue Apr 20 14:47:30 CEST 2010


Author: marek
Date: 2010-04-20 14:46:57 +0200 (Tue, 20 Apr 2010)
New Revision: 1639

Modified:
   trunk/batman-adv-kernelland/gateway_common.c
Log:
batman-adv: reset selected gw variable after switching to gateway mode

If a node was in client mode and chose a gateway this choice was not
unset after switching to gateway mode.

Signed-off-by: Marek Lindner <lindner_marek at yahoo.de>

Modified: trunk/batman-adv-kernelland/gateway_common.c
===================================================================
--- trunk/batman-adv-kernelland/gateway_common.c	2010-04-19 21:14:19 UTC (rev 1638)
+++ trunk/batman-adv-kernelland/gateway_common.c	2010-04-20 12:46:57 UTC (rev 1639)
@@ -255,6 +255,7 @@
 		gw_srv_class_to_kbit((uint8_t)gw_class_tmp,
 				     (int *)&down, (int *)&up);
 
+		gw_deselect();
 		printk(KERN_INFO
 			  "batman-adv: Changing gateway mode from: '%s' to: '%s' (gw_class: %ld -> propagating: %ld%s/%ld%s)\n",
 			  gw_mode_curr_str, gw_mode_tmp_str, gw_class_tmp,



More information about the commits mailing list