]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: deselect current GW on client mode switch off
authorAntonio Quartulli <antonio@open-mesh.com>
Mon, 4 Nov 2013 19:59:40 +0000 (20:59 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 8 Jan 2014 19:49:40 +0000 (20:49 +0100)
commitd494c6a51d33348c15826ba301feb4fb7fb21eb9
treee53a9df449acf710a11a8fcaeb5804ddf6fd062e
parentee7093baaf2910b2c966655a30e56dc9866775ba
batman-adv: deselect current GW on client mode switch off

When switching from gw_mode client to either off or server
the current selected gateway has to be deselected.
In this way when client mode is enabled again a gateway
re-election is forced and a GW_ADD event is consequently
sent.

The current behaviour instead is to keep the current gateway
leading to no GW_ADD event when gw_mode client is selected
for a second time

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/gateway_client.c
net/batman-adv/sysfs.c