Commit Graph

84 Commits

Author SHA1 Message Date
John Crispin
a2187f5a8c base-files: default passwd
ttylogin was open when hitting enter really early in the boot.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 11:54:21 +02:00
John Crispin
ed379f94f2 opensync: more network manager fixes
This patch will get folded into the main patch when we push to trunk.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 11:53:07 +02:00
John Crispin
f2ad970ed9 base-files: update banner
Use OpenWiFi as the banner text.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-01 10:19:34 +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
Ammad Rehmat
8454cdb271 opensync: client events supported
-assoc/disassoc type client events now supported

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-01 10:17:08 +02:00
Ammad Rehmat
b3d692100c opensync: protobuf definitions updated
-protobuf definitions now support client events and synthetic client

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-01 10:17:05 +02:00
Nagendrababu
3601f9cad6 openNDS: add package
Add openNDS package to enable captive portal at bridge level added customized
configurations to make it work as required Package:openNDS

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2020-08-01 10:11:53 +02:00
John Crispin
09a67e40f1 opensync: move vif deletion into its own context
Deleteing entries from ucis internal state while looping of it was causing
issues related as the ordering of the list is not deterministic.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-31 14:12:18 +02:00
John Crispin
ef59c4c6e4 opensync: add netifd manager
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-31 14:12:11 +02:00
John Crispin
082c895c34 base-files: set default password to "openwifi"
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-30 16:52:01 +02:00
John Crispin
d9bf09d3c2 opensync: add wifi tcpdump support
This patch will bring up a monitor interface on a named phy and start a scan.
Once completed, the resulting pcap will be uploaded to a http server.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-30 15:55:30 +02:00
John Crispin
76e52a2fb7 luci-mod-simple: add tip bringup webui
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-30 10:54:49 +02:00
Rick Sommerville
6a6cb55ff0 opensync: Support Multi-SSID per radio. Support radioX -> wlanX-Y naming convention.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-07-30 07:55:38 +02:00
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
dbcae12a79 opensync: add ct-fwcfg and tip-data for tplink APs
* make sure the correct fwcfg is present
* set the correct tip data in /etc/config/system

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
John Crispin
d75651171f batman: backport latest version
the 19.07 version of batman breaks with v5.7 backports.

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
239a8a756b workflow: add ec420
Make sure that images for the ec420 get built.

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
9a61ca270a profiles: disable failsafe
Set the .config options to disable failsafe mode.

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
John Crispin
5801193ec0 wlan-ap-config: set hostname
Use OpenAp-${eth0_mac:6} as default hostname.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-24 09:43:28 +02:00
Yashvardhan
2c24af6819 Workflow: Update loads to the trunk folder
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-07-24 09:09:22 +02:00
Yashvardhan
906de33dc9 opensync: Update dev builds workflow 2020-07-24 09:08:53 +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
3affbc1cad QualComm/AX: add Hawkeye and Cypress support
This series is based on
* 2020-07-10 ipq6018-ilq-11-0_qca_oem-034672b0676c37b1f4519e5720e18e95fe6236ef

Add support for
* qsdk kernel/v4.4
* qsdk ethernet subsystem
* v5.7 ath11k backport + QualComm staging patches (wlan_ap_1.0)
* ath11k-firmware
* hostapd/iw/...

Feature support
* full boot, system detection
* sysupgrade to nand
* HE support via latest hostapd
* driver support for usb, crypto, hwmon, cpufreq, ...

Missing
* NSS/HW flow offloading - FW blob is not redistributable

Using the qsdk v4.4 is an intermediate solution while the vanilla is being
tested. Vanilla kernel is almost on feature par. Work has already started
to upstream the ethernet and switch drivers. Once complete the target will
be fully upstream.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-23 18:54:03 +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
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