Commit Graph

495 Commits

Author SHA1 Message Date
John Crispin
d33b6face5 wlan-ap-config: add ath10k fwcfg files
These files get loaded by the FW and allow us to tweak the internal settings.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-23 17:10:56 +02:00
John Crispin
63dd655ea4 tplkin/ec420: add board support
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00
Arif Alam
f237d4104e opensync: add interface name mappings for ECW5410, ECW5211, and AP2220
Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-07-22 14:58:04 +02:00
John Crispin
d03fe7228a opensync: fixed rate-limit
The current code was reporting invalid state back to the cloud incase
rate-limit was not actually enabled.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00
Ammad Rehmat
49b7d42203 opensync: enable 802.11v provisioning
This patch enables the required hapd options based on the btm column.

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-07-22 14:58:04 +02:00
John Crispin
1bab63de00 opensync: add command manager
This adds 2 new tables
* CommandConfig
* CommandState

This allows us to remotely trigger, tcpdump, remote syslog, ...

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00
John Crispin
43444774f0 opensync: extend ubus API
We need to be able to pass a different ev_loop context.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00
John Crispin
bd28d088fc lldpd: select package and configure it
This patch makes sure lldpd is installed and comes up with the correct
configuration.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00
Chaitanya Kiran Godavarthi
fb4c7dc852 nft-ssid-ratelimit: Add new package nft-ssid-ratelimit
Add new package which has scripts for ssid client ratelimiting.
Adds rules for ssid ratelimiting and client ratimiting based on
'wireless' config file options 'drate'(ssid dl), 'urate'(ssid ul),
'cdrate'(client dl), and 'curate' (client ul).

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-07-22 14:58:04 +02:00
Chaitanya Kiran Godavarthi
f7e637467f opensync: Addd hotplug script for ratelimiting
Add hotplug script for rate limiting to occur
when a wifi interface comes up.

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-07-22 14:58:04 +02:00
Chaitanya Kiran Godavarthi
b103acbf6e opensync: Add ssid client rate limiting
-Add custom options row in Wifi_VIF_Config/State
-Add ssid-ratelimiting parameters:
	ssid_ratelimit_en: Enable/disable ssid rate limiting
	ssid_ul_limit: ssid upload limit in kbytes/sec
	ssid_dl_limit: ssid download limit in kbytes/sec
	client_ul_limit: client upload limit in kbytes/sec
	client_dl_limit: client download limit in kbytes/sec

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-07-22 14:58:04 +02:00
John Crispin
22f43634f3 opensync: add a unified build target
With this patch applied we do not need build variants anymore.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00
John Crispin
56c199f589 opensync: dont use the @wan syntax
The @ syntax reference the L3 device. This means a child interface will not
be brought up if the underlying parent is still pending.

This can be seen if we have br-wan and br-wan.100. Both have proto dhcp.
The vlan interface wont come up until the wan interface has an IP.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-20 13:04:43 +02:00
John Crispin
61c71fb7a3 opensync: only update vif state when the vap is up
Check of the vap exists before updating it. Reading life data will
otherwise fail.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-20 13:04:33 +02:00
John Crispin
0e6ce72ac7 opensync: fix wan6
With wan having become a bridge we need to update the wan6 ifname to @wan.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-16 19:30:44 +02:00
Nagendrababu Bonkuri
93ed4b9532 opensync: Resolving radios turn-off problem when supplying the maclist for allow/deny
Signed-off-by: Nagendrababu Bonkuri <nagendrababu.bonkuri@connectus.ai>
2020-07-16 16:18:34 +02:00
John Crispin
55f5fb7232 opensync: make factory reset and reboot work
We can now trigger remote reboot and factory reset using the firmware
upgrade code. Simply sending the URL "reboot" or "factory" is enough.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
Nagendrababu Bonkuri
dfa02dbdde opensync: add maclist support
Allow sending down macfilters from the cloud.

Signed-off-by: Nagendrababu Bonkuri <nagendrababu.bonkuri@connectus.ai>
2020-07-15 18:03:17 +02:00
John Crispin
a34d844742 opensync: add vlan support
When we bring up a VLAN we need to add several sections to make openwrt
aware of the new vlan network.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
John Crispin
2255d34fe2 opensync: turn wan into a bridge and enable vlan_filtering
We want wan and lan to be a bridge with vlan_filtering enabled.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
John Crispin
54546f51ba opensync: extend the uci helper
The VLAN support requires us to create and delete sections.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
John Crispin
1b0e3728df netifd: backport vlan support
For AP VLANs to work, we need to backport the corresponding netifd patches.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
John Crispin
bf054a6485 wpad-basic: disable wpad-basic
Explicitly turn of the package inside the wlan-ap profile.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
John Crispin
0ed40af0ff opensync: sysupgrade should preserve configuration
The plume code passed the -n option which does not preserve config over
sysupgrade to the new system.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
Nagendrababu Bonkuri
6592530ab1 opensync: enhance/fix client stats support
* add missing fields
* send delta and not absolute values

Signed-off-by: Nagendrababu Bonkuri <nagendrababu.bonkuri@netexperience.com>
2020-07-15 18:03:17 +02:00
John Crispin
8dd5935707 hostapd: disable wpad-mini/basic
We require the eap version of the package. Default_packages was leaking in
the the wrong variant. Rather than patching every target we just make the
variant non available.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-14 09:19:27 +02:00
John Crispin
4345d8f69f opensync: add statistics elements to header files
These missing declarations were breaking the stats module.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 15:02:19 +02:00
John Crispin
7831ce8899 ath10k-ct-firmware: update to latest .19 builds
Update names and hashes to latest version 19.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 11:57:22 +02:00
John Crispin
289760f62e opensync: add support for writing list options
Extend the blob_to_uci helper to allow writing lists to uci files.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 11:57:22 +02:00
John Crispin
6a401b74ab mac80211: disable dynamic wifi reload
This is a new feature from OpenWrt HEAD that breaks when using APVLAN.
Disable it while we test.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 11:57:22 +02:00
John Crispin
d8091386bf opensync: update to 2.0.5.0
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 11:57:22 +02:00
John Crispin
a46024e64e python3-markupsafe: add package
This package is required by opensync-2.0.5.0

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 11:57:21 +02:00
John Crispin
808dc952f2 python3-jinja2: add package
This package is required by opensync-2.0.5.0

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 11:57:18 +02:00
John Crispin
7f8b15eb03 cloud: add tooling for starting a local cloud-sdk instance
This patch adds a script to configure and start a local instance
of the cloud-sdk.
The script also allows you to generate the device specific config json.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 09:45:27 +02:00
John Crispin
6646f0ea20 opensync: dont install keys if wlan-ap-keys is enabled
The package wlan-ap-keys will copy the keys from our local cloud-sdk
instance into the image. If it is enabled we do not want to ship the
existing keys.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 09:45:27 +02:00
John Crispin
9583748b07 wlan-ap-keys: include cloud keys in the image
This package will automatically include the cloud keys in the image.
- /usr/plume/certs/ca.pem
- /usr/plume/certs/client.pem
- /usr/plume/certs/client_dec.key

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 09:45:27 +02:00
John Crispin
6b2cb5ec17 wlan-pki-cert-scripts: automatically generate a key set
The keys are expected to be located under ${TOPDIR}/keys. If they do not
exist we clone the generation script and generate them.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 09:45:27 +02:00
John Crispin
50d107b07c github/worflow: enable on pending and staging-* branches
Enable the github build workflow on the pending and staging branches.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 09:45:27 +02:00
Eugene Taranov
ef502b8a18 staticanalysis: add the github CI config for static code analysis
This patch adds support for static code analysis with cppcheck inside the github CI.

Signed-off-by: Eugene Taranov <eugene@opsfleet.com>
2020-07-10 09:45:27 +02:00
John Crispin
40b64c83b4 opensync: fix a memleak
This patch fixes a memlaek in the code reading out the chainmask.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 09:45:27 +02:00
John Crispin
d48b0c015d build.sh: add the wifi feed to default builds
This patch selects the wifi feed when building images in CI.
This has the effect, that backports, haps, wpas, iw, ath10k-ct will the
v5.7 version from current OpenWrt HEAD.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-08 18:01:33 +02:00
Chris Busch
4b4974dbc0 LICENSE.md: add file
Add TIP standard license file.

Signed-off-by: Chris Busch <chrisbusch@fb.com>
2020-07-07 08:23:17 +02:00
John Crispin
0190fc78e0 backport/wifi: ath10k-ct: update to v5.7
Update the git hash and enable the v5.7 driver.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-01 21:21:05 +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
John Crispin
ae51caf8a5 wlan-ap: initial import
based on the develop branch -> 6af07cd39cfa06ec8eb4d6182c7d7923236c2dbf

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