Commit Graph

15 Commits

Author SHA1 Message Date
Ammad Rehmat
79a65c2985 Wifi-1623 : Any event coming from hostapd with 5G frequency will be treated as coming from 5G radio not 5gU/5gL
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2021-02-24 19:17:33 -05:00
John Crispin
65cdb70c3b hostapd: add per phy max sta count
Normally max_num_sta is per BSS. This patch allows setting a pre IFACE max.

Signed-off-by: John Crispin <john@phrozen.org>
2021-02-22 13:54:42 -05:00
Ammad Rehmat
fd35b98e61 Wifi-888 : Channel switch events due to high interference and DFS
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2021-02-04 22:01:17 -05:00
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
97ebe9d588 hostapd: Disconnect client when rssi is low
Disconnect client in case rssi drops below the set threshold level

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-10-30 17:16:08 +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
John Crispin
d210eb480b hostapd: update to latest owrt HEAD
Signed-off-by: John Crispin <john@phrozen.org>
2020-09-16 12:05:00 +02:00
John Crispin
7ba671cb1c hostapd: add rssi_ignore_probe_request option
We can now put "option rssi_ignore_probe_request -40" into uci. Probe requests
with a rssi worse then -40 will not be replied to.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-08 14:28:10 +02:00
John Crispin
7aa5c2e7d9 backport/wifi: backport wifi stack from OpenWrt HEAD
This makes the v5.7 based wifi feature set from OpenWrt HEAD work inside
19.07.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-01 21:20:35 +02:00