Commit Graph

109 Commits

Author SHA1 Message Date
Owen Anderson
e3cb261515 WIFI-2844: Added patch from openwrt commits 2021-08-31 09:07:16 -04:00
Nagendrababu
f4e483f7b4 WIFI-3244-WF610D-Config-Reset-Over-Sysupgrade
This patch will fix configuration restore problem over sysupgrade
on WF610D
Even though there is a configuration data in the /dev/mtdblock12, it is getting erased while reading it beacuse of JFFS2 empty bitmask code. So I added a condition to check whether the datatype available is JFFS2 or not, and making sure it is not empty before returning the JFFS2 flag to restore the configuration.

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-08-16 23:46:52 -04:00
Chaitanya Godavarthi
3531b884c1 wifi-3258: Fix bridge client traffic on same wifi interface
Allow bridging broadcast and multicast traffic within same
bridge port if hairpinmode is enabled for that port.
This fixes the ARP packet between clients on same wifi interface
being dropped.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-08-09 18:39:54 -04:00
Owen Anderson
80bfd39857 WIFI-3306: Updated the LLDP description with firmware version info and br-wan IP
Signed-off-by: Owen Anderson <owenthomasanderson@gmail.com>
2021-08-05 12:38:44 -04:00
Arif Alam
36b10b5048 WIFI-3023: fix mac assign on ath11k
Port over mac assign fix from v2.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-07-31 08:19:42 -04:00
John Crispin
8d09f695a2 ipq807x: fix the reset buttons on the CIG units
Signed-off-by: John Crispin <john@phrozen.org>
2021-07-29 16:43:17 -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
f49c70d864 WIFI-3063: Changed the way that we fetch the interface name so the interface doesn't need to be online
Signed-off-by: Owen Anderson <owenthomasanderson@gmail.com>
2021-07-20 09:44:55 -04:00
Nagendrababu
9796b90bf3 WiFi-1997-LEDs-Incorrect-Service-State
This Patch fixes leds incorrect service state issue, and correct the
label names for all wifi6 APs

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-07-13 19:39:30 -04:00
Nagendrababu
bf5fac9d97 WiFi5-APs-LED-label-Name-Change
This patch will change the ecw5410, ecw5211, and wf610D's LED label name

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-07-13 19:34:02 -04:00
Arthur Su
95f43d6da0 WIFI-2978 - Fix EC420 reset button
The EC420 reset button don't work, so it cannot be restarted or restored
to factory settings. The reset button is fixed to gpio18.

Signed-off-by: Arthur Su <arthur.su@tp-link.com>
2021-07-13 19:15:16 -04:00
ravi vaishnav
0546954693 Wifi-2690. ipq807x:Enable bridge-mgr to control port mac address learning
Merging from uCentral-trunk.
The switch in the IPQ807x/IPQ60xx devices will automatically learn the mac
addresses behind a port. But it will not unlearn this entry when some mac
switches from the ethernet port to the CPU port. This will for example
happens when a device roams from on AP to another AP. At least when both
are APs are bridging the wifi traffic directly or indirectly (mesh) to the
same ethernet broadcast domain.

As result, the roaming device can no longer receive any ethernet packets
which the AP is expected to receive on the ethernet port. This state will
be kept for a couple of minutes until the entry in the FDB is dropped
automatically. But it is still possible for the wifi device to send data
via the ethernet during this whole time.

One solution is to just disable learning on all ports. The other option
would be to enable the qca bridge-mgr which takes care of gathering the
events from the bridge and forwards it to the qca-ssdk (to manipulate the
state of the switch). The latter option was chosen to follow the approach
which QCA is also using in their QSDK.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-06-25 15:20:35 -04:00
Nagendrababu
80f67521f8 WIFI-1933-Blink-APs-LED
This patch will change the label names for WiFi6 APs to follow common naming convention

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-06-04 13:08:00 -04:00
Rick Sommerville
e71df5ebe4 WIFI-2427 Preserve certs and redirector over factory-reset
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-05-25 11:28:41 -04:00
John Crispin
5a5bdac405 ipq807x: fix eap101 leds
The LEDs defined in the dts did not match what UCI expected.

Signed-off-by: John Crispin <john@phrozen.org>
2021-05-19 13:18:22 -04:00
John Crispin
327b85b44a ipq807x: add support for the new eap102 version
* import the patch provided by edgecore.

Signed-off-by: John Crispin <john@phrozen.org>
2021-05-16 15:20:17 -04:00
Arif Alam
b0a660ba31 netifd: Add WPA3 Enterprise modes
Add configuration options for:
- WPA3 Enterprise Only mode
- WPA3 Enterprise Transition mode

Fixes: WIFI-1940

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-04-30 14:31:10 -04:00
ravi vaishnav
b4e20e6289 WiFi-1921. Fix for hostapd error logs when configuring 16 SSID
When configuring 16 VLAN, we see hostapd complaining
about no buffer space available while handling receive
events. Hence, increasing the socket buffer memory size
to 512KB.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-04-22 20:05:17 -04:00
Chaitanya Godavarthi
b717b1361d netifd: Dont renew dhcp on bridge topo change
Do not renew the dhcp on bridge topology change
as this causes some of the dhcp servers to fail.
This occurs when many interfaces are added on to
a bridge and for every interface there is a dhcp
renew. The server considers receiving renew many
times in a quick succession as a DOS attack. So for
now we disable dhcp lease renew when a new interface
is added.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-04-19 17:34:16 -04:00
Chaitanya Godavarthi
077009a263 Fix ssid ratelimiting in wifi6 AP
This patch backports some fixes in netfilter
ratelimiting kernel module for wifi6 (linux v4.4.60).
These fixes are ported from until following commit id
6e323887565fe8a23c6c85faf9e395a24affd05c in
the mainline kernel.
Also, fix bugs in client ratelimiting.
Per Client Ratelimiting will be used henceforth
instead of Per ssid Ratelimiting.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-04-08 09:49:42 -04:00
Chaitanya Godavarthi
5feaee3327 Add ESMT Nand support and ubi imgs
Add ESMT Nand support, required for ex227/ex447
Add ubi images for ex227, ex447

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-04-06 09:09:26 -04:00
Chaitanya Godavarthi
9cb289b605 openwrt: Revert UBUS pending list iteration method
This commit partially reverts the earlier patch:
"workaround possibly false positive uses of memory after it is freed"

This fixed the crash while freeing a list item in
ubus_process_pending_msg due to a double free.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-03-30 16:09:42 +02:00
Chaitanya Godavarthi
a9665a0d32 openwrt: Remove NOR factory image for tplink-ex447/ex227
Remove NOR factory image for tplink-ex447/ex227 as now its
switched to nand based image.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-03-22 12:11:42 -04:00
Chaitanya Godavarthi
2cc526b379 openwrt: Nand images for tp-link EX447 and EX227
Generate factory nand images for tp-link ex447 and ex227.
This image is used to flash for migrating from stock qsdk
image to tip openwrt image using the nand flash.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-03-16 10:49:34 -04:00
John Crispin
9d13fc7330 ipq807x: add 512MB profile
This greatly improves the memory issues that we were seeing on QCA/AX.

Signed-off-by: John Crispin <john@phrozen.org>
2021-03-11 16:31:13 +01:00
Chaitanya Godavarthi
80778b5bab openwrt: Fix wifi leds for ecw5211 wf610d eap102
Fix typo error for ecw5211 and eap102, correct
boardname for wf610d

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-02-22 19:25:42 -05:00
Rick Sommerville
3c035cb5b0 Wifi-1473 WF188n set eth0/br-wan and eth1/br-lan
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-02-19 19:06:55 -05:00
John Crispin
558a13fc06 ipq807x: fix ex227/447 sysupgrade
Signed-off-by: John Crispin <john@phrozen.org>
2021-02-09 10:12:47 +01:00
John Crispin
686c4df90d ath11k: fix broken mac detection on eap102 / wf188n
Signed-off-by: John Crispin <john@phrozen.org>
2021-02-01 07:28:18 +01:00
John Crispin
b8de9c5f67 ipq807x: add missing kernel symbol for gpio-watchdog
WF188n will enter a reboot loop without this.

Signed-off-by: John Crispin <john@phrozen.org>
2021-01-26 18:06:34 +01:00
John Crispin
f006db7913 ipq807x: reduce USB related log-spam
The kernel will spew a WARN(1) upon boot if it fails to probe USB phys that are not
populated on the eap102. This warning is a false positive so lets silence it.

Signed-off-by: John Crispin <john@phrozen.org>
2021-01-26 10:23:20 +01:00
John Crispin
67b7d8fac2 ipq807x: enable 32bit mode for the target
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-25 17:11:23 +01:00
John Crispin
6a8a2296ea dnsmasq: add CVE mitigation patches
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-25 17:11:20 +01:00
John Crispin
7ae17f821b ipq807x: update kernel patches and add new boards
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-18 08:03:29 +01:00
John Crispin
26606cf079 ipq807x: do not dump the whole ram when unit panics
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-12 11:39:04 +01:00
RickSommerville
c9b2813876 Merge pull request #139 from Telecominfraproject/staging-wifi-1032-ec420-lan-mac
WIFI-1032 Repair EC420 MAC retrieval from manufacturing data
2021-01-05 10:56:53 -05:00
Chaitanya Godavarthi
4977c9800d interapcomm: Add firewall rule statically instead of startup scripts
Added the rules statically in firewall.config, hence reverted the code
which adds firewall rules during startup.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2020-12-21 07:10:10 +05:30
Rick Sommerville
8247dd865e WIFI-1032 Repair EC420 MAC retrieval from manufacturing data
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-12-19 12:11:05 -05:00
Chaitanya Godavarthi
6de999929b ipq40xx: Add support for CIG WF-610D AP
Add support for CIG WF-610D AP

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2020-12-08 08:14:42 +01:00
Brian Moyle
a11f3a054e ipq806x: add mtd spi-nor support for mx25u12835f
WIFI-1155 ECW5410: unsupported spi flash device

Signed-off-by: Brian Moyle <brian.moyle@joindigital.com>
2020-12-08 08:13:20 +01:00
John Crispin
dc7049323e ipq807x: update to ath11k-ed2 release
Signed-off-by: John Crispin <john@phrozen.org>
2020-12-02 09:48:18 +01:00
John Crispin
721e7cd6ce ipq807x: update NSS Firmware package
Start using the now publicly available FW blobs.

Signed-off-by: John Crispin <john@phrozen.org>
2020-11-04 06:38:24 +01:00
John Crispin
37fdc39e35 opensync: add the wifi maverick ssid
The unit shall bring up the Maverick SSID if it fails to on-board with the cloud
within the first 10 minutes of its live.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-28 10:06:41 +01:00
John Crispin
8a1e4e87ea ipq807x: add edgecore eap101 support
Signed-off-by: John Crispin <john@phrozen.org>
2020-10-24 12:36:11 +02:00
Rick Sommerville
0c6183210e Apply EC420 11-ath10k-caldata changes supplied by TP-Link
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-10-24 12:34:22 +02:00
John Crispin
6ae6a1ac3e ipq40xx: add ec420 ubi images
Add code to generate ubi images for tplink ec420

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-22 10:16:56 +02:00
John Crispin
0b13cb3171 ipq807x: add edgecore eap-102 support
Signed-off-by: John Crispin <john@phrozen.org>
2020-10-16 04:28:51 +02:00
John Crispin
cb9d5f9bdc dnsmasq: turn the base uci section into a named one
Handling this section from opensync is complicated if it is unnamed.

Signed-off-by: John Crispin <john@phrozen.org>
2020-10-06 16:40:37 +02:00
John Crispin
04f6078da6 ipq807x: update AX support
Signed-off-by: John Crispin <john@phrozen.org>
2020-10-04 14:28:57 +02:00
Sven Eckelmann
215be21272 ipq807x: Fix dtc host build with GCC 10
The dtc binary has to be compiled using the host GCC and not the target
cross compiler GCC. And GCC 10 is using by default -fno-common which
inhibits the merging of tentative definitions by the linker.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-09-30 19:37:41 +02:00