Commit Graph

8 Commits

Author SHA1 Message Date
Yashvardhan
861c2168ab opensync: Fix events timestamp
- Added milliseconds timestamp precision
- Data type changed to uint64 to hold millisecond timestamp

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-01-14 20:31:19 -05:00
Yashvardhan
c8e4543aed opensync: Major refactoring/bug fixes for client events
- Removed unwanted nested client event structures.
   Doing this not only reduced complexity in the code but also helped get
   rid of multple memory leaks and crashes in SM and datapipeline.
 - Simplified ubus invoke calls. Nested ubus invokes were resulting in some
 - data loss in callbacks
 - Fixed incorrect conversion of session_id data type. This was blocking
   clearing of sessions.
 - Got rid of unnecessary strdups/mallocs. Potential memory leaks.
 - Fixed missing conversion of frequency to band
 - Removed unwanted logging which was filling the syslog buffer.
 - Resolved a race occuring on the shared list between ubus_collector and SM.
 - Relevant changes in datapipeline/protobuf to support the modified interface.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-12-24 08:38:51 -08:00
Mario Senecic
266c631830 hostapd: ClientIpEvent
Signed-off-by: Damir Franusic <damir.franusic@sartura.hr>
Signed-off-by: Mario Senecic <mario.senecic@sartura.hr>
2020-12-02 07:32:53 +01:00
Damir Franusic
bec00936da ubus_collector/hostapd: fixes reverted 81fdc566
* Previous patch caused CI/CD to fail; this fix
  fixes the issue.

Signed-off-by: Mario Senecic <mario.senecic@sartura.hr>
Signed-off-by: Damir Franusic <damir.franusic@sartura.hr>
2020-11-08 13:02:01 +01:00
John Crispin
ffa251f009 Revert "ubus_collector and hostapd bugfix"
This reverts commit 81fdc5663b.

The patch was causing the CI/CD to fail.

Signed-off-by: John Crispin <john@phrozen.org>
2020-11-04 19:01:21 +01:00
Mario Senecic
81fdc5663b ubus_collector and hostapd bugfix
* Bugfix in hostapd: fixed improper increment operator usage in os_realloc
  function that caused a crash on multiple SSIDs

* Bugfix in ubus_collector: fixed the improper usage of blobmsg_for_each_attr
  macro and the misplaced evsched_task_reschedule calls

* Reverted the previous client sessions hostapd patch

Signed-off-by: Mario Senecic <mario.senecic@sartura.hr>
2020-11-04 05:59:55 +01:00
Yashvardhan
c6461046a3 Revert "hostapd: added support for clients sessions"
The commit 6fa3b43cbf is causing the issue reported
in WIFI-972. Thus reverting it for now.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-10-22 23:40:38 +02:00
Damir Franusic
6fa3b43cbf hostapd: added support for clients sessions
* implementation of the following ubus methods:
  1. "get_sessions"
  2. "clear_sessions"
  3. "clear_session"
  4. "get_bss_list"

* tracking of STA sessions and events (AUTH, ASSOC, etc.)
* caching of events is handled by hostapd and resides in
  AVL until it is processed by ubus_collector
* added hard-coded caching limit to prevent memory leaks;
  this should be made configurable at some point in the
  future

Signed-off-by: Damir Franusic <damir.franusic@netexperience.com>
2020-10-16 15:45:21 +02:00