]> git.baikalelectronics.ru Git - kernel.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)
commit8a0d1f893cdeba89334150729e64599cc3e9faf3
treee5d5136abe4c857cae4b04985c22c38ccbeaca71
parent2dfb62f3c56b3ad28ccaa5f85046915ef624a6cf
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