gluon/package/gluon-mesh-batman-adv
Sven Eckelmann b850fff7e4 gluon-mesh-batman-adv: Only use local TT to count non-wifi clients (#1676)
The amount of local wifi clients is currently counted by two different
ways:

* asking the kernel wifi layer for the number of of clients on 2.4GHz and
  5GHz band
* asking batman-adv for the number of non-timed out entries in the local
  translation table with WiFi flag

The number of wifi24+wifi5 and the number of TT wifi client counts are
reported via respondd to various consumers. The ffrgb meshviewer is
displaying these values as:

* 2,4 GHz: wifi24
* 5 GHz: wifi5
* other: (TT local wifi+non-wifi clients) - (wifi24 + wifi5)

But the local translation table is holding entries much longer than the
wifi layer. It can therefore easily happen that a wifi client disappears in
the kernel wifi layer and batman-adv still has the entry stored in the
local TT.

The ffrgb meshviewer would then show this count in the category "other".
This often results in confusions because "other" is usually for ethernet
clients. And nodes with a frequently disappearing larger group of clients
(near bus stations or larger intersections) often show most clients under
the group "other" even when this devices doesn't have a LAN ethernet port.

It is better for presentation to calculate the number of total wifi clients
by summing up wifi24 + wifi5. And getting the number of total clients (non
wifi + wifi) by adding the result of the previous calculation to the sum of
non-wifi client in the local batman-adv translation table.

Fixes: 89a9d8138c ("gluon-mesh-batman-adv-core: Announce client count by frequency")
Reported-by: Pascal Wettin <p.wettin@gmx.de>
2019-03-16 13:37:49 +01:00
..
files gluon-mesh-batman-adv: Drop IPv4 anycast related packets from/to bat0 2018-07-22 16:42:41 +02:00
luasrc/lib/gluon gluon-client-bridge: Revert "move IPv4 local subnet route to br-client (#1312)" 2018-07-22 16:42:41 +02:00
src gluon-mesh-batman-adv: Only use local TT to count non-wifi clients (#1676) 2019-03-16 13:37:49 +01:00
check_site.lua gluon-core: set VXLAN/legacy mode in site config 2018-04-27 18:05:50 +02:00
Makefile treewide: automatically set SECTION and CATEGORY for Gluon packages 2018-04-14 00:01:04 +02:00