batman-adv: mcast: fix mcast packet type counter on timeouted nodes
authorLinus Lüssing <linus.luessing@c0d3.blue>
Tue, 9 Jan 2024 21:58:59 +0000 (22:58 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 27 Jan 2024 08:13:39 +0000 (09:13 +0100)
commit59f7ea703c38abc3f239068d49cc8897740e4c54
treea5f9086343dd753a2ed726ebcf1826211445cfa1
parent6613476e225e090cc9aad49be7fa504e290dd33d
batman-adv: mcast: fix mcast packet type counter on timeouted nodes

When a node which does not have the new batman-adv multicast packet type
capability vanishes then the according, global counter erroneously would
not be reduced in response on other nodes. Which in turn leads to the mesh
never switching back to sending with the new multicast packet type.

Fix this by reducing the according counter when such a node times out.

Fixes: 90039133221e ("batman-adv: mcast: implement multicast packet generation")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/multicast.c