Commit Graph

126 Commits

Author SHA1 Message Date
Ben Greear
7766193c0b setup: Allow cloning openwrt with --reference
This helps speed up a clone, especially on slow networks.

python3 setup.py --setup --reference ~/git/tip/wlan-ap-wallaby/openwrt/

Signed-off-by: Ben Greear <greearb@candelatech.com>
2020-08-29 07:45:42 +02:00
Ben Greear
9e457cd352 ath10k-ct: Update to latest driver.
Will support firmware binary crashdumps through debugfs.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2020-08-29 07:45:15 +02:00
Rick Sommerville
ae2d0ae077 opensync: Add SSID to client stats
Fixes: WIFI-527
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-08-29 07:44:08 +02:00
Linus Lüssing
97f6cd8203 profiles: adding batman-adv packages
Adding the batman-adv kernel module and the batctl userspace
configuration tool to the wlan-ap profile.

Signed-off-by: Linus Lüssing <ll@simonwunderlich.de>
2020-08-29 07:42:11 +02:00
John Crispin
34897d13e1 Revert "opensync: populate Wifi_Route_State"
This reverts commit 42fc1965cd.

The commit was causing issues when updating NM2 state.

Fixes: WIFI-702
Signed-off-by: John Crispin <john@phrozen.org>
2020-08-29 07:40:19 +02:00
Chaitanya Kiran Godavarthi
0dbbfe8c58 opensync: Bug fix for ssid-client-rate-limit
Client ratelimit doesnt get updated when client
roams between ssids in the Access Point.

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-08-23 20:01:27 -04:00
Ammad Rehmat
5d9ea412e5 opensync: DHCP synthetic client support added
- synthetic dhcp client checks if the dhcp server is responsive and
  reports back to cloud

Fixes: WIFI-441
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-18 07:59:47 +02:00
Ammad Rehmat
ff9357ae43 opensync: 802.11r settings bug
- FT over DS was set to 0 which wasnt taking effect due to missing
  declarations in the policy

Fixes: WIFI-560
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-18 07:58:15 +02:00
Rick Sommerville
d178036d1d opensync: Adjust wlan naming convention.
Replace dashes with underscores to simplify operation with UCI.

Fixes: WIFI-628
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-08-18 07:56:52 +02:00
John Crispin
175558bd46 wlan-ap-config: fix board name sanitisation
the code was not stripping the vendor prefix correctly. Fix this by
using .* syntax.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-18 07:55:01 +02:00
John Crispin
1660f1b45c opensync: capitalize the board name and remove the vendor prefix
The dts compat string is used as the board name. Strip the vendor prefix
and capitalize the remainder.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-17 06:22:16 +02:00
John Crispin
f6daf894a3 README.md: add AX instructions
Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
42e9d44311 ipq807x: add board2.bin on hk01
This makes sure the bdf file is installed on the reference board.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
b6b5999a4a ipq807x: add thermald
This adds the thermal mitigation daemon.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
378d88554c scripts/ubinize-image.sh: allow setting the rootfs name
This patch allows us to use a different rootfs name. Some QCA boards will
require the in ubi rfs to be called ubi_rootfs.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
07e8acfdf1 ipq807x: move ath11k to the openwrt ax staging tree
Use the ath11k feed from github where OpenWrt keeps the latest version.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
aae666ca1d wlan-ap-config: add more default cloud addresses
Allow setting the 3 dns entries for local development.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
42fc1965cd opensync: populate Wifi_Route_State
This populates the ipv4 routes.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
f11c74f1aa ipq40xx: fix oap-110 mdio
The board support patch was missing the pinctrl for the mdio bus.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:16:29 +02:00
John Crispin
96416e59a5 ipq40xx: fix oap-110 bootargs
The board support patch was missing the boortargs-append line in the dts.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 15:36:08 +02:00
Rick Sommerville
51d0928a4f WIFI-526 EC420 5 GHz radio is not initialized.
The radio is a qca9984 not a qca9888.  Apply the correct firmware configuration.
The change also appplies to the AP2220 (obsolete).

Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-08-11 14:20:59 +02:00
John Crispin
fdf5bb6e96 opensync: add average STA RSSI tracking
Track the average RSSI of associated stations. This information can be
used to deauth stations if their rssi gets too low.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-09 16:28:55 +02:00
Yashvardhan
24a3c6e6e7 opensync: Support to apply and preserve redirector address
- Added helper script to apply redirector address
 - Added support to preserve the same
 - Changed the default fqdn

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-08-09 09:18:08 +02:00
John Crispin
6bbb48022e opensync: enable KRACK countermeasures
This patch will always turn off eapol key retry.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-08 17:30:55 +02:00
John Crispin
7ba671cb1c hostapd: add rssi_ignore_probe_request option
We can now put "option rssi_ignore_probe_request -40" into uci. Probe requests
with a rssi worse then -40 will not be replied to.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-08 14:28:10 +02:00
John Crispin
0c49d4ec3e ipq40xx: add edgecore OAP100
flashing the unit
* first update to latest edcore FW as per the PDF instructions
* boot the initramfs
  - tftpboot 0x88000000 openwrt-ipq40xx-generic-edgecore_oap100-initramfs-fit-uImage.itb; bootm
* inside the initramfs call the following commiands
  - ubiattach -p /dev/mtd0
  - ubirmvol /dev/ubi0 -n0
  - ubirmvol /dev/ubi0 -n1
  - ubirmvol /dev/ubi0 -n2
* scp the sysupgrade image to the board and call
  - sysupgrade -n openwrt-ipq40xx-generic-edgecore_oap100-squashfs-nand-sysupgrade.bin

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-08 12:37:10 +02:00
John Crispin
e51b350d43 ipq807x: fix sercomm wallaby support
The board is named wallaby and not kiwi. The previous rename was missing
some changes.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-07 16:35:36 +02:00
Arif Alam
a9b3afd2b0 netifd: remove beacon_rate param
beacon_rate config was introduced as part of rrm commit. Some
drivers don't support this.  Removing this config from
hostapd config.

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-08-06 20:53:53 +02:00
Arif Alam
16c5d2931d opensync: rrm support
- Add rrm manager
- Add rrm config params to schema

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-08-06 07:06:02 +02:00
Arif Alam
2b74a687a9 wlan-ap-config: Fix ECW5410/ECW5211 serial and model config
- Use eth0 mac address for serial number
- Fix model format

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-08-05 17:21:37 +02:00
Arif Alam
829cee7632 wlan-ap-config: Use qca9984 fw image for ecw5410
Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-08-05 16:31:04 +02:00
John Crispin
38e2d08b0f opensync: re-enable DM manager wdt
the last nm2 patch incorrectly contained a chunk that disabled the process
watchdog for nm and wm. revert this change.
this patch shall be folded into the other nm2 patches when we move to trunk.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-03 18:56:41 +02:00
Rick Sommerville
0730ba955f Stabilize the WIFI_VIF_State by correcting state reporting and setting errors.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-08-03 18:30:32 +02:00
John Crispin
1d5447c8b8 workflow: fix ecw5410 builds
this needs to be folded into the latest unified target patch when we push to trunk

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 18:15:41 +02:00
John Crispin
045bb2e9b5 ipq807x: improve image building code
We can now flash using qsdk style images to convert qsdk->OpenAp.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:49:29 +02:00
John Crispin
1cbf1015c0 ipq807x: enable gpio-leds
The initial port was missing this kernel config.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:49:29 +02:00
John Crispin
8ab79219fb ipq807x: add Sercomm Wallaby support
This patch adds support for the Sercomm Kiwi AP.

Specification:
- SoC: Qualcomm Atheros IPQ807x ARM64 quad core
- RAM: 1GB
- NAND Flash: 256MB
- Ethernet: 1 x 2G
- WLAN: 2x Titan AX

Installation instructions:

1) scp openwrt-ipq807x-sercomm_kiwi-squashfs-nand-factory.bin into the preflashed qsdk image
2) ssh into the unit and call sysupgrade -n openwrt-ipq807x-sercomm_kiwi-squashfs-nand-factory.bin

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:49:29 +02:00
John Crispin
d53a31e59e ipq807x: add CIG WF188 support
This patch adds support for the Cigtech WF188 AP.

Specification:
- SoC: Qualcomm Atheros IPQ6018 ARM64 quad core
- RAM: 512MB
- NOR Flash: 32MB SPI NOR
- Ethernet: 1 x 1G
- WLAN: 2x IPQ60xx AX

Installation instructions:

1) enter uboot console
- setenv bootargs mtdparts=spi32766.0:6144k@3712k(0:HLOS),20608k@9856k(rootfs) console=ttyMSM0,115200n8
- tftpboot 0x44000000 wf188-initramfs
- bootm
2) inside the in ramfs, scp the sysupgrade image to the device and run sysupgrade.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:49:29 +02:00
John Crispin
03783d76cd ipq807x: tweak the AX wifi support
Fix some issues that showed up during testing. Wifi now also works
properly on cypress.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:49:29 +02:00
John Crispin
0a31c9f692 opensync: convert the last board to the unified package
There is no a single opensync package that reads the board data from uci.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:11:56 +02:00
John Crispin
e61f6a038e wlan-ap-config: move cf-fw-cfg to hotplug
Doing the symlinking in uci-defaults was racey and on first boot the cfg
was not always present when the driver loads.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:11:52 +02:00
Ammad Rehmat
9883d6b9dc opensync : synthetic client - bug fix
-timestamp corrected for dns client

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-02 11:54:41 +02:00
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