a modular framework for creating OpenWrt-based firmwares for wireless mesh nodes
Go to file
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
.github/ISSUE_TEMPLATE meta: add template for bug reports (#1637) 2019-02-05 01:22:55 +01:00
contrib contrib: update ECDSA utils link 2019-02-16 19:25:49 +01:00
docs ar71xx: add support for D-Link DAP-1330 (#1672) 2019-03-15 23:35:35 +01:00
package gluon-mesh-batman-adv: Only use local TT to count non-wifi clients (#1676) 2019-03-16 13:37:49 +01:00
patches patches/openwrt: refresh 0006-generic-vxlan-backport-support-for-VXLAN-over-link-local-IPv6-to-4.9.patch (#1663) 2019-03-09 11:06:15 +01:00
scripts gluon-scheduled-domain-switch: add package (#1555) 2019-02-12 11:00:29 +01:00
targets ar71xx: add support for D-Link DAP-1330 (#1672) 2019-03-15 23:35:35 +01:00
.gitignore Switch to OpenWrt 18.06 branch 2018-07-10 22:57:40 +02:00
CONTRIBUTING.md docs: update some old urls (#1598) 2018-12-07 21:40:55 +01:00
LICENSE Switch to OpenWrt 18.06 branch 2018-07-10 22:57:40 +02:00
Makefile Switch to OpenWrt 18.06 branch 2018-07-10 22:57:40 +02:00
modules modules: update OpenWrt 2019-03-07 22:40:47 +01:00
README.md docs: add v2018.2.1 release notes 2019-03-15 22:53:01 +01:00

Documentation (incomplete at this time, contribute if you can!) may be found at https://gluon.readthedocs.io/.

If you're new to Gluon and ready to get your feet wet, have a look at the Getting Started Guide.

Gluon's developers frequent an IRC chatroom at #gluon on hackint. There is also a webchat that allows for access from within your browser.

Issues & Feature requests

Before opening an issue, make sure to check whether any existing issues (open or closed) match. If you're suggesting a new feature, drop by on IRC or our mailinglist to discuss it first.

We maintain a Roadmap for the future development of Gluon.

Use a release!

Please refrain from using the master branch for anything else but development purposes! Use the most recent release instead. You can list all releases by running git tag and switch to one by running git checkout v2018.2.1 && make update.

If you're using the autoupdater, do not autoupdate nodes with anything but releases. If you upgrade using random master commits the nodes will break eventually.

Mailinglist

To subscribe to the list, send a message to:

gluon+subscribe@luebeck.freifunk.net

To remove your address from the list, just send a message to the address in the List-Unsubscribe header of any list message. If you haven't changed addresses since subscribing, you can also send a message to:

gluon+unsubscribe@luebeck.freifunk.net