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>
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>
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>
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>
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>
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>
This patch will change the label names for WiFi6 APs to follow common naming convention
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>