Commit Graph

36 Commits

Author SHA1 Message Date
Owen Anderson
d3f8a54de5 WIFI-2059: Removed if statement that blocked some ip updates
Signed-off-by: Owen Anderson <owenthomasanderson@gmail.com>
2021-08-04 11:38:18 -04:00
Arthur Su
de16ed3a49 wifi-2984: tplink device mount manufacturing data and certificates
The TP-Link device mounts the production_info partition, and apnos will
access the manufacturing data and copy the certificate to its use when
it is first booted.

Signed-off-by: Arthur Su <arthur.su@tp-link.com>

wifi-2984: tplink device mount manufacturing data and certificates

The EX227 and EX447 devices are added ath11k_generate_macs method.

Signed-off-by: Arthur Su <arthur.su@tp-link.com>
2021-07-21 09:54:45 -04:00
Owen Anderson
bab7b18724 WIFI-2594: Added functionality to close lan ssh port in deployment
Signed-off-by: Owen Anderson <owenthomasanderson@gmail.com>
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-06-29 22:16:35 -04:00
ravi vaishnav
463f903992 Wifi-2635. Correcting the Model name format
When the manufacturer block does not contain the model info,
it is then extracted from /tmp/sysinfo/board_name, stripped
off the manufacturer name and converted for all upper case string.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-06-11 21:06:17 -04:00
ravi vaishnav
c0cb6baa89 Wifi-2542. Fix for populating correct ID in AWLAN_Node
This fix applies to EA8300, WF194c and EAP102. For these APs,
the br-wan is mapped to eth1 instead of eth0. Adding fix to
use the mac address from eth1 as ID for these particular APs.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-06-07 19:38:47 -04:00
Rick Sommerville
aea505ddf9 WIFI-2059 Handle br-wan/br-lan ip address conflict
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-05-27 14:03:26 -04:00
ravi vaishnav
7ec23942a0 WiFi-2072. Populate the right fw version in the AWLAN_Node
Populating the fw version from FW_IMAGE_ACTIVE in the
AWLAN_Node.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-04-28 14:54:11 -04:00
ravi vaishnav
655d284a8f WiFi-2071. Read model info from manufacturing block
Reading model info from flash. If no info present in flash,
then read it from /tmp/sysinfo/boardname.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-04-27 15:00:31 -04:00
ravi vaishnav
315e953110 Wifi-2040. ManufacturingRecord: Populate device mac in qr code.
Adding code to fall-back and read eth0 address incase the
manufacturing data is not present for the id/mac_address field.
The same is also populated in the qr code field of AWLAN_Node.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-04-20 14:52:23 -04:00
ravi vaishnav
5d8ce34973 Wifi-2028. WF194C Serial number changes with every upgrade
This commit will fix changing serial-number on every sysupgrade.
2021-04-19 20:01:53 -04:00
ravi vaishnav
45dcf6a878 Adding manufacturing data to the AWLAN_Node entry.
Tested on ECW5211, EA8300, EC420, and WF188n.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-04-17 17:43:19 +02:00
John Crispin
2f71c9c367 wlan-ap-config: fix hostname detection on qcom/ax units
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-18 08:03:29 +01:00
John Crispin
3392cec348 wlan-ap-config: properly detect the cig wf-194c serial
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-18 08:03:29 +01:00
John Crispin
db9507bcc1 wlan-ap-config: move oom reboot trigger to the right location
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-18 08:03:29 +01:00
John Crispin
fcc2f78c33 wlan-ap-config: force system reboot upon OOM
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-12 11:52:50 +01:00
John Crispin
764aedd53e wlan-ap-config: enable lldp on switch devices by default
Signed-off-by: John Crispin <john@phrozen.org>
2020-12-02 09:48:18 +01: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
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
Ben Greear
42283ba1ff ath10k-ct: Fix ipq4019 fwcfg file.
Rick noticed I had a typo in previous commit, which caused 16 vdevs
to be allocated instead of 8.  Fix this to be back to 8 as intended,
and now we can increase stations-per-radio to 147 again.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2020-09-14 07:35:33 +02:00
Ben Greear
b9e1d36e00 ath10k-ct: Update to latest firmware.
This rebalances the 4019 firmware memory usage so it can support
more TIDs.  This should fix the crash seen in CICD stress tests
of the ea3800 platform.  Bug would have shown on other 4019 radio
testbeds as well if tested to same level as we test ea8300.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2020-09-11 09:24:53 +02:00
John Crispin
a6348d3fe7 wlan-ap-config: fix fwcfg files on ec420
the pci fwcfg file was not setup properly on ec420.

Fixes: WIFI-731
Signed-off-by: John Crispin <john@phrozen.org>
2020-09-09 09:58:00 +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
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
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
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
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
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
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
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
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
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
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