Skip to content
Snippets Groups Projects
  1. Mar 18, 2019
  2. Mar 16, 2019
    • Sven Eckelmann's avatar
      gluon-mesh-batman-adv: Only use local TT to count non-wifi clients (#1676) · b850fff7
      Sven Eckelmann authored
      
      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: 89a9d813 ("gluon-mesh-batman-adv-core: Announce client count by frequency")
      Reported-by: default avatarPascal Wettin <p.wettin@gmx.de>
      b850fff7
  3. Feb 25, 2019
  4. Feb 17, 2019
  5. Feb 16, 2019
  6. Feb 12, 2019
  7. Feb 11, 2019
    • David Bauer's avatar
      gluon-core: assert WiFi driver provides 4 MAC-addresses (#1626) · 387a9b4f
      David Bauer authored
      Gluon has multiple ways to obtain unique MAC-addresses. They are either
      provided by the WiFi driver or derived from the primary MAC-address.
      
      Quoting the same file:
      
      > It's necessary that the first 45 bits of the MAC address don't
      > vary on a single hardware interface, since some chips are using
      > a hardware MAC filter. (e.g 'rt305x')
      
      This currently fails in case the rt35xx based chips mac address differs
      from the primary MAC. In this case, the MAC address for the client0 radio
      (vif 1) comes from the WiFi driver. As there is only a single
      MAC-address provided by '/sys/class/ieee80211/phyX/addresses' but the
      MAC-address for mesh 0 (vif 2) is derived from the Node-ID, resulting in
      different first 45 bits. The WiFi won't come up altogether in this case.
      
      This commit verifies at least 4 MAC-Addresses are provided by the WiFi
      driver. If this is not the case, all MAC-addresses are derived from the
      primary MAC. This way, affected radios are working correctly.
      387a9b4f
  8. Jan 25, 2019
  9. Jan 17, 2019
  10. Jan 03, 2019
  11. Dec 29, 2018
  12. Dec 07, 2018
  13. Dec 04, 2018
  14. Dec 02, 2018
  15. Nov 29, 2018
  16. Nov 27, 2018
  17. Nov 26, 2018
  18. Nov 24, 2018
  19. Nov 21, 2018
  20. Nov 18, 2018
  21. Nov 17, 2018
  22. Nov 16, 2018
  23. Oct 14, 2018
  24. Oct 11, 2018
  25. Sep 29, 2018
  26. Sep 15, 2018
  27. Sep 05, 2018
Loading