Commit Graph

151 Commits

Author SHA1 Message Date
John Crispin
764aedd53e wlan-ap-config: enable lldp on switch devices by default
Signed-off-by: John Crispin <john@phrozen.org>
2020-12-02 09:48:18 +01:00
John Crispin
146f8be155 opensync: code cleanup
captive.c had some string format security issues that a more recent compiler
complained about.

Signed-off-by: John Crispin <john@phrozen.org>
2020-12-02 09:48:18 +01:00
John Crispin
1010eed519 opensync: clean up the Makefile
The host dependencies were not defined correctly, also drop some stale sections.

Signed-off-by: John Crispin <john@phrozen.org>
2020-12-02 09:48:18 +01:00
John Crispin
7f57677798 nf_uccdetect: currently fails to build on v5.4+ kernel
add a @!LINUX5_4 dependency untilt he build issues are fixed.

Signed-off-by: John Crispin <john@phrozen.org>
2020-12-02 09:48:18 +01:00
John Crispin
d5f271428f feed/package: move the package backport to their own folder
This is in preparation for supporting a newer version of OpenWrt.

Signed-off-by: John Crispin <john@phrozen.org>
2020-12-02 09:48:18 +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
Rick Sommerville
3ac08440fa WIFI-1063 Repair VIF configuration
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-12-02 07:28:59 +01:00
Arif Alam
430ca86150 opensync: add support for passpoint icon config
- Add support for passpoint icon config

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-11-23 07:36:15 +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
Chaitanya Godavarthi
334176b28d interap: fix compilation error
fix compilation error in interapcommlib

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2020-11-17 19:52:15 +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
Chaitanya Godavarthi
f3618adf7f apc: Add Access Point coordinator choosing algorithm
Add algorithm which chooses a APC and
backup APC among the APs in a subnet.

This APC can be used to perform few functions
on behalf of the APs on the subnet. For example,
the APC AP will be used as a radius proxy for
the APs in the subnet.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2020-11-16 08:38:47 +01:00
Yashvardhan
f95bb56272 opensync: Support for probe response and client disconnect thresholds
Added support to configure probe response and client disconnect thresholds
via ovsdb.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-11-16 08:35:44 +01:00
Arif Alam
c4ff514de7 opensync: fix radius accounting config
Add a check to see if radius accounting params are present before
trying to read them.

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-11-11 15:45:24 +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
Rick Sommerville
94b29e058c Wifi-1002 correct VIF deletion function. Report VIF state for all wifi-iface in UCI. Report operational state as up or down. Use ifname not UCI section name for VIF deletion.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-11-08 13:02:01 +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
John Crispin
b877ff3968 opensync: fix maverick ssid
OpenSync uses a non monotomic timer. If ntp sets time during boot, the 10
minute time will get interrupted and maverick comes up after ~30s. Fix
this by using a monotomic clock.

Signed-off-by: John Crispin <john@phrozen.org>
2020-11-04 14:12:19 +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
Chaitanya Kiran Godavarthi
67f77308d7 Add interAP communication
Add interAP communication API
Add interAP communicaton for video-voice detect

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-10-30 17:15:48 +01:00
Rick Sommerville
dafcf692f6 opensync: Align AP VLAN implementation with cloud
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-10-30 13:04:55 +01:00
John Crispin
111844d200 opensync: make ubus_collector.c 64 bit safe
make the code use PRIi64. compile was stumbling over this on 64bit targets.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-28 15:39:26 +01:00
John Crispin
71b72914e4 luci-mod-simple: fix certificate upload
It was only possible to upload the certificates, but they were not getting applied.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-28 14:39:02 +01:00
John Crispin
37fdc39e35 opensync: add the wifi maverick ssid
The unit shall bring up the Maverick SSID if it fails to on-board with the cloud
within the first 10 minutes of its live.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-28 10:06:41 +01:00
Rick Sommerville
c1ba70d6a0 Align opensync manager start order with reference design. Shut-down new managers in init.d
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-10-24 12:33:52 +02:00
Rick Sommerville
cebe525681 Report VIF as if_type = vif in Wifi_Inet_State. Do not put invalid if_type vif in /etc/config/network.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-10-24 12:33:23 +02: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
1cd70c111d WIFI-956 Report the VIF radius secret correctly in Wifi_VIF_State
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-10-21 09:06:57 +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
Sasikantha Babu
4016a3f116 opensync: Added support for gre tunneling
WIFI-762

Signed-off-by: Sasikantha Babu <sbabu@benunets.com>
2020-10-16 15:42:10 +02:00
Ammad Rehmat
bd2412f02e opensync: Remote ssh session feature
The feature provides ability to create a remote ssh session.

libwebsocket is a modified version of library hence included as a package.

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-10-15 07:58:56 +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
John Crispin
80df28835e nf_uccdetect: disable log spam
disable what appears to be a dbg message in the kernel module.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-08 11:50:40 +02:00
Ben Greear
fbf2e1753a ath10k-ct: Don't override regulatory domain.
A painfully slow bug hunt lead to the fact that edge-core 5410-L EU
variant has radios that hang when the driver sets the regulatory domain
to USA.

So, stop overriding regulatory domain by default.  If a user wants to
do this on a platform, it can be changed on their specific platform.

While at it, increase tx buffers for 9984 a bit since we have some
extra RAM to spare.  This will help scale high tx speed with lots of
stations associated since there is more buffer space to build larger ampdus.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2020-10-07 20:28:17 +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
John Crispin
d0cecdecef opensync: make phy detection work on AX
The AX silicon uses multi phy devices. The path matching code
needs an update to be able to detect this.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-25 09:15:43 +02:00
John Crispin
b4fc797b2b wlan-ap-config: make the default tip-data work like it does on ec420
If the board does not have a special way to read the serial/model, use the
same method as EC420 does as a default.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-23 17:57:36 +02:00
John Crispin
e7e18a8e2a opensync: fix stack corruption on 64bit
This code worked on 32bit as sizeof(struct blob_attr) == 4, same as a
pointer. On 64bit a pointer requires 8 bytes however.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-23 15:01:30 +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
Nagendrababu
49fc316655 opennds: Fix for Session Timeout Reporting
This patch will resolve the issue:VIF State captive_portal/session_timeout reports 0 value when not set

Fixes: WIFI-790
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2020-09-22 16:42:19 +02:00