John Crispin
75b5e5a88e
opensync: set default ssid
...
Use Maverick-<eth0 mac> as the ssid.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 19:04:46 +02:00
John Crispin
dab51c9bf0
opensync: more unified target updates
...
convert ap2220 and ea8300 to use the unified package.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 16:35:57 +02:00
John Crispin
9767157b8b
opensync: only set dfs options for 5G and 5GU
...
Previously anything !wifi0 was assumed to be DFS capable.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
322d5130e7
opensync: add ec430 to tip.sh
...
On the ec420, the wifi devices names were not updated yet.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
da2a0dcd31
opensync: set vid to 1 inside the state table
...
we will get a table constraint violation otherwise.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
c0e19653fc
opensync: preserve certificates during sysupgrade
...
Make sure that sysupgrade carries the certificates over to the new firmware.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
Yashvardhan
1f5b46b51e
Opensync: fix sysupgrade
...
The current script was using the wrong upgrade file and incorrectly deleted
$TMPDIR after it was done.
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-07-29 14:17:39 +02:00
Arif Alam
61bb9aee32
opensync: add noise floor reporting
...
- Add noise floor reporting to survey stats
- Fix survey stats
Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-07-29 14:17:39 +02:00
John Crispin
a98b0eac77
ecw5211: make the board use the unified opensync target
...
Drop the vendor specific target. Also fix ct-fwcfg for this board.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
def5a919f0
opensync: disable hapd notifications
...
These were only added to test the ubus API. We dont really need them.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
4f67ca0e4b
opensync: fix license headers
...
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
1b168a811e
opensync: add kernel crash detection
...
This feature makes use of the crashlog driver in the kernel. If we experience
an oops, the kernel will store the stack trace inside /sys/kernel/debug/crashlog.
OpenSync will then add an entry to the Alarms table. The could can then retrieve
the crashlog via the Command_config table.
A crash can be simulated with
echo c > /proc/sysrq-trigger
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
50f26d1b20
opensync: move default cloud keys in wlan-ap-keys
...
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
43405aab0a
opensync: cleanup the unified build target
...
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
43573f67e8
opensync: stop and disable the webserver
...
Once the AP connected to the cloud for the first time we wait 5 minutes.
Once that period is over we stop and disable the webserver. It is only
intended for initial WAN bringup during deployment.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
Yashvardhan
7215d000d9
opensync: Support FW upgrade from a tar package
...
- Added support to upgrade firmware from a URL to a FW tar/tar.gz package
- Checksum validation using sha256sum
- Some error handling
- Added support to share the firmware tar name to the gateway
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-07-24 09:08:32 +02:00
John Crispin
7690787c9f
opensync: add command manager
...
This allows us to trigger remote commands, such as tcpdump.
Also allow configuring NTP and remote syslog.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-23 18:54:03 +02:00
John Crispin
866b4b7eae
wlan-ap-config: move all config/uvi-defaults scripts into the same package
...
When adding a new baord we had to edit files all over the tree. After this patch
they are all located in the same folder.
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-23 17:10:56 +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
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
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
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
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
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
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
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
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