]> git.karo-electronics.de Git - karo-tx-linux.git/commit
batman-adv: send GW_DEL event when the gw client mode is deselected
authorAntonio Quartulli <antonio@open-mesh.com>
Fri, 12 Jul 2013 22:06:00 +0000 (00:06 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 28 Aug 2013 09:33:00 +0000 (11:33 +0200)
commitc6eaa3f067d6f9fa55fd9645e93ed79411bebdaf
treee5d5136abe4c857cae4b04985c22c38ccbeaca71
parentc00a072d3fec446d763e68b50f6f6cfd9e2957e2
batman-adv: send GW_DEL event when the gw client mode is deselected

Whenever the GW client mode is deselected, a DEL event has
to be sent in order to tell userspace that the current
gateway has been lost. Send the uevent on state change only
if a gateway was currently selected.

Reported-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/gateway_client.c
net/batman-adv/gateway_client.h
net/batman-adv/sysfs.c