Commit Graph

207 Commits

Author SHA1 Message Date
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
John Crispin
8a1e4e87ea ipq807x: add edgecore eap101 support
Signed-off-by: John Crispin <john@phrozen.org>
2020-10-24 12:36:11 +02:00
Rick Sommerville
0c6183210e Apply EC420 11-ath10k-caldata changes supplied by TP-Link
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-10-24 12:34:22 +02: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
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
John Crispin
6ae6a1ac3e ipq40xx: add ec420 ubi images
Add code to generate ubi images for tplink ec420

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-22 10:16:56 +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
Ben Greear
e609a6fe05 mac80211: Limit number of pending skbs
Signed-off-by: Ben Greear <greearb@candelatech.com>
2020-10-19 09:07:02 +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
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
30f337c519 wlan-ap: changed docker PATH to docker to speed up compilation.
Otherwise docker build is sending around 12G-16GB to docker daemon.
Since we are binding the wlan-ap code in the docker we do not have  to
send entire code to docker daemon.

Signed-off-by: Sasikantha Babu <sbabu@benunets.com>
2020-10-16 15:42:21 +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
Sasikantha Babu
1c62e846ca gre: enable GRE package and kernel modules for gre & tunneling
WIFI-762

Signed-off-by: Sasikantha Babu <sbabu@benunets.com>
2020-10-16 15:41:57 +02:00
John Crispin
0b13cb3171 ipq807x: add edgecore eap-102 support
Signed-off-by: John Crispin <john@phrozen.org>
2020-10-16 04:28:51 +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
Sven Eckelmann
0cb7073abb ipq807x: Add batman-adv for wifi-ax's mac80211
The batman-adv source code in openwrt-routing for OpenWrt 19.07 is
expecting the backports' compat code from OpenWrt 19.07. But the mac80211
package in wifi-ax is providing the ABI (and API) from a much newer kernel.

To work around this problem, a fork of the batman-adv package from OpenWrt
19.07 without the patches 0001-0004 can be used to switch to the new
netlink policy structure from newer kernel versions.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-10-13 16:14:29 +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
John Crispin
64bc01c7ea wlan-ap: make use of the initial bringup webui
The default Luci module is now the TIP onboarding one. Ut gets disabled
when the AP makes first contact with the cloud.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-08 11:17:44 +02:00
John Crispin
b9aa316179 profiles: drop wf188.yml
We will be using the wf188n version so we can drop the profile for the unit
used during bringup.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-08 10:00:41 +02:00
Ben Greear
f92d250141 ath10k-ct-fw: Update to latest firmware.
This pulls in latest firmware.  Not much change from last time, qcache builds
are slightly less broken, but still broken none the less, so don't use those
for general use.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2020-10-07 20:28:38 +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
John Crispin
cb9d5f9bdc dnsmasq: turn the base uci section into a named one
Handling this section from opensync is complicated if it is unnamed.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-06 16:40:37 +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
John Crispin
04f6078da6 ipq807x: update AX support
Signed-off-by: John Crispin <john@phrozen.org>
2020-10-04 14:28:57 +02:00
John Crispin
e79901dde7 setup.py: drop the local cloud-sdk support
The persistent cloud is now available so we no longer require this in the
tree.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-04 14:28:56 +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
Sven Eckelmann
215be21272 ipq807x: Fix dtc host build with GCC 10
The dtc binary has to be compiled using the host GCC and not the target
cross compiler GCC. And GCC 10 is using by default -fno-common which
inhibits the merging of tentative definitions by the linker.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-09-30 19:37:41 +02:00
John Crispin
133a959b3c ipq40xx: fix latest nand patch
Thgis was not in git format, causing local builds to fail.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-30 09:43:46 +02:00
cbuschfb
8d83a22159 Patch W25M02GV NAND support EdgeCore ECW5211
Signed-off-by: cbuschfb <chrisbusch@fb.com>
2020-09-29 13:44:23 +00: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
fdb3af3d2b ipq807x: add wallaby LED support
Add the led netdev trigger setup code making lan/wan leds work.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-23 17:37:28 +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
John Crispin
9cb690f14e ec420: add the 2 missing wifi board files
Signed-off-by: John Crispin <john@phrozen.org>
2020-09-23 08:38:28 +02:00
John Crispin
2837dc61e6 patches: move all patches into a single folder
This allows easier managing of updated patches.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-22 18:20:11 +02:00
John Crispin
35bdbb920b profiles: move profiles into a dedicated folder
Tracking these as patches has been causing problems.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-22 18:09:24 +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