Commit Graph

61 Commits

Author SHA1 Message Date
Chaitanya Godavarthi
efc52018e5 opensync: Add support for dynamic vlan in custom_options
Add support for dynamic vlan in custom_options:
dynamic_vlan (values 0 1 and 2)
0 - disabled
1 - enabled
2 - enabled and reject if Radius server doesnt have Dynamic VLAN

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-02-09 13:19:40 -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
Nagendrababu
fb04fbbd00 WIFI-1355 Configure MIMO mode
This patch will add fix for MIMO mode configuration issue

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-02-02 22:14:48 -05:00
Nagendrababu
f65c9cd537 WIFI-961: Fix for Command Manager Crash
This patch will reslove command manager crash issue and also add support for deleting the lingering entries in
the command state table

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-02-01 15:36:45 -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
RickSommerville
8cb715cfb4
Merge pull request #131 from Telecominfraproject/staging-channels-rstate
Wifi-886 : Channels field in radio state table populated
2021-01-05 10:58:30 -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
Ammad Rehmat
6ae5a124c2 Wifi-886 : Channels field in radio state table populated
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-12-18 13:42:53 -05:00
Arif Alam
19ea471ff8 opensync: fix passpoint config
- fix potential issue with icon config section name
- remove passpoint related entries in config wireless on delete

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-12-18 18:41:58 +01:00
Rick Sommerville
33a960690b Adjust the dhcp event message to be 3. Channel change uses 2.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-12-18 18:41:22 +01:00
Luka Kudra
d89798e413 opensync: add x_id to DhcpTransaction message
Signed-off-by: Luka Kudra <luka.kudra@netexperience.com>
2020-12-18 15:28:13 +01:00
Luka Kudra
ebb4788eda opensync: fix nameing of dhcp events in opensync_stats.proto
Signed-off-by: Luka Kudra <luka.kudra@netexperience.com>
2020-12-18 15:28:13 +01:00
Luka Kudra
9f2a6809a9 opensync: dhcp events proto update
- group the common data in dhcp events into one message
- add a timestamp in milliseconds in each dhcp event
- aggregate all dhcp events into a single dhcp event

Signed-off-by: Luka Kudra <luka.kudra@netexperience.com>
2020-12-18 15:28:13 +01:00
Luka Kudra
98e35296af opensync: add proto definitions for dhcp events
Signed-off-by: Luka Kudra <luka.kudra@netexperience.com>
2020-12-18 15:28:13 +01:00
Luka Kudra
43880ecfb5 opensync: fix nameing of dhcp events in opensync_stats.proto
Signed-off-by: Luka Kudra <luka.kudra@netexperience.com>
2020-12-18 15:28:13 +01:00
Luka Kudra
0c0c7c678e opensync: dhcp events proto update
- group the common data in dhcp events into one message
- add a timestamp in milliseconds in each dhcp event
- aggregate all dhcp events into a single dhcp event

Signed-off-by: Luka Kudra <luka.kudra@netexperience.com>
2020-12-18 15:28:13 +01:00
Luka Kudra
28149562fa opensync: add proto definitions for dhcp events
Signed-off-by: Luka Kudra <luka.kudra@netexperience.com>
2020-12-18 15:28:13 +01:00
Luka Kudra
97acafeb1c opensync: add dhcp events proto definitions
Signed-off-by: Luka Kudra <luka.kudra@netexperience.com>
2020-12-18 15:28:13 +01:00
Yashvardhan
099feb23ec opensync: Capture dhcp packets in promiscous mode
DHCP_leased_IP table was not getting populated for some of the
associated clients. Enabling capture in promiscous mode allows
capturing of all the dhcp packets.

Fixes: WIFI-1177

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-12-13 18:46:52 +01:00
Yashvardhan
2225953f68 opensync: Support Mesh configuration
- Patch to support basic batman configuraion through ovsdb interface
   in addition to the defaults.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-12-08 08:18:08 +01:00
Nagendrababu
cb8bbc7ac1 WIFI-414: Staging-Captive-Portal-Radius-Users
This Patch add APNOS support for captive portal radius user
authentication
Package: OpenNDS
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2020-12-02 07:31:52 +01:00
Yashvardhan
955ae11f94 opensync: Set beacon and multicast tx rates
- Support to configure fixed beacon and multicast rates
- Modified/Removed unwanted RRM parameters

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-11-23 07:35:48 +01:00
Rick Sommerville
b0a9ddc752 Reject conflicting SSIDs (duplicate if_name or repeated SSID name on a radio) in Wifi_VIF_Config.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-11-23 07:35:13 +01:00
Ammad Rehmat
33712c0843 Wifi-1064 : Client events patches fix
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-11-16 08:40:06 +01:00
Damir Franusic
9dabf56e68 opensync: add timestamp_ms to protobuf and dppline
Signed-off-by: Damir Franusic <damir.franusic@sartura.hr>
Signed-off-by: Luka Kudra <luka.kudra@sartura.hr>
2020-11-16 08:39:22 +01:00
Arif Alam
d82f42d0c2 opensync: passpoint config
- Add support for configuring Passpoint parameters
- Add support for configuring RADIUS accounting parameters

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-11-08 13:04:15 +01:00
Yashvardhan
6ae7f08d90 opensync: Rebased 57c3a1c to fix build errors
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-10-21 23:25:35 +02:00
Rick Sommerville
a8a97efd0e WIFI-621 Allow Control of b-rate modulation
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-10-21 09:05:37 +02:00
Chaitanya Kiran Godavarthi
57c3a1c8cc opensync: Add channel & band info in voicevideo events
Add channel and band (2G 5GL 5GU) in the voice/video detect
protobuf messages.
Add Provider domain and codecs in voice/video detect protobuf

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-10-19 10:58:39 +02:00
Damir Franusic
0610971828 opensync: protobuf update for ClientSession events
* added support for ClientSession events provided
  by hostapd/ubus

Signed-off-by: Damir Franusic <damir.franusic@netexperience.com>
2020-10-16 15:45:10 +02:00
Damir Franusic
518721589b opensync: add "event" stats_type support for SM
* oveschema update included in this commit

Signed-off-by: Damir Franusic <damir.franusic@netexperience.com>
2020-10-16 15:44:51 +02:00
Damir Franusic
be01395414 ubus_collector: hostapd data collector
* collect hostapd client session data via
  ubus and expose it to StatsManager (SM)

Signed-off-by: Damir Franusic <damir.franusic@netexperience.com>
2020-10-16 15:44:20 +02:00
Nagendrababu
22317ae623 opensync: Support for Captive Portal Phase2
This patch will support captive portal username and password
Package:openNDS

Fixes: WIFI-413
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2020-10-13 16:14:15 +02:00
Felix Fietkau
f417061a3e opensync: significantly reduce package size
Use -Wl,--gc-sections and drop -rdynamic in order to allow the linker to
leave out unused functions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2020-10-09 14:35:02 +02:00
Arif Alam
c178797a46 opensync: ovsdb schema for passpoint
Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-10-06 16:02:30 +02:00
Yashvardhan
6bb9d00899 opensync: Add support to report inactive firmware version
- Inactive firmware image version is stored over upgrade
   and is reported in AWLAN_Node table.
 - Rename FW_IMAGE_NAME to FW_IMAGE_ACTIVE

FIXES: WIFI-609

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-09-30 19:37:41 +02:00
Damir Franusic
29a2821659 opensync: build system update
* opensync_stats.proto gets compiled during the build
  process. The pre-compiled files (opensync_stats.pb-c.*)
  should not be patched any longer; I have also updated
  some older patches for all of this this to work. OpenWrt
  creates a temporary proto-c package for the host ARCH and
  generates source and header files for the target platform.
  This happens after all the patches have been applied and just
  before the opensync compilation process.

Signed-off-by: Damir Franusic <damir.franusic@netexperience.com>
2020-09-30 19:37:41 +02:00
Rick Sommerville
9c1847ea86 Wifi--617 and WIFI-619: Add custom-options for RTS-CTS threshold and DTIM period
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-09-23 08:39:25 +02:00
Chaitanya Kiran Godavarthi
786151047e opensync: Fix SM schema add video-voice
Add video_voice string in the Wifi_Stats_Config schema

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-09-21 13:18:46 +02:00
Chaitanya Kiran Godavarthi
0196cbbf4a opensync: Add timestamp for videovoicereport
Add time stamp for videovoicedetect report
2020-09-16 10:01:37 +02:00
Yashvardhan
61ad8756b3 opensync: Added support for local dhcp fingerprint decoding
- Support to decode dhcp fingerprint using a locally stored fingerbank database

Fixes: WIFI-433

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-09-15 14:43:10 +02:00
Yashvardhan
9934f93701 opensync: Additional client DHCP attributes in ovsdb
- Added support to report client DHCP attributes such as
   subnetmask, gateway, dhcp server, primary and secondary dns

Fixes: WIFI-432

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-09-15 14:42:56 +02:00
Chaitanya Kiran Godavarthi
0c3064e437 opensync: Add video/voice detect
- Add kernel module which detects voice/video by
  analysing the traffic.
- Add new report to the stats manager in opensync.
- Generates a report each time a voice call is
  detected, indicats callstart, callstop and callreport.

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-09-15 14:41:07 +02:00
Ammad Rehmat
7aa405d4e1 opensync: Command_State now reflects command string as well
Fixes: WIFI-729
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-09-11 09:31:39 +02:00
Ammad Rehmat
efb5e4a9aa WIFI-442 : Support for synthetic radius client added
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-09-07 11:47:28 +02:00
Nagendrababu
88e8163410 package:openNDS
Implement a per-SSID embedded Captive Portal making use of OpenNDS
Authentication type:None
Fix for WIFI-596
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2020-09-07 11:38:33 +02:00
Ammad Rehmat
5d9ea412e5 opensync: DHCP synthetic client support added
- synthetic dhcp client checks if the dhcp server is responsive and
  reports back to cloud

Fixes: WIFI-441
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-18 07:59:47 +02:00
Arif Alam
16c5d2931d opensync: rrm support
- Add rrm manager
- Add rrm config params to schema

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-08-06 07:06:02 +02:00
Ammad Rehmat
9883d6b9dc opensync : synthetic client - bug fix
-timestamp corrected for dns client

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-02 11:54:41 +02:00
Ammad Rehmat
0eed477b9c opensync: synthetic client added
-plumbing to initialize network probe in SM

-DNS client to check access to dns server added

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-01 10:19:34 +02:00