[OpenWrt-Devel] [PATCH v2] firewall3: Fix multicast ICMPv6 replies not being sent by default anymore.

2016-05-02 Thread Vittorio Gambaletta (VittGam)
Since drop_invalid has been turned on by default, ICMPv6 echo requests to well-known multicast addresses, such as ff02::1, are not replied to by the router anymore, because conntrack considers those outgoing reply packets to be invalid. Fix this by not having the INVALID rule in the OUTPUT chain

[OpenWrt-Devel] [PATCH] [CC] ramips: Disable all ethernet ports except port 0 on A5-V11.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
Port 0 is the only ethernet port on this router, so disable all other PHYs in order to save power. Signed-off-by: Vittorio Gambaletta --- --- a/target/linux/ramips/dts/A5-V11.dts +++ b/target/linux/ramips/dts/A5-V11.dts @@ -60,7 +60,8 @@ }; esw@1011 {

[OpenWrt-Devel] [PATCH] [CC] ramips: Backport changes to 02_network.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
The A5-V11 only has one ethernet port, so a VLAN is useless here, now that the rt3050 TCP bug that happened without VLANs has been fixed for a very long time. Add this router to the VLAN-less config that is used by other single-port routers. Also fix MAC address detection code since this router

[OpenWrt-Devel] [PATCH] [CC] ramips: Backport changes to 07_set_preinit_iface_ramips from trunk.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
Fix failsafe for all rt3050 routers where the LAN port is not wired to port 0 of the internal switch. Fix failsafe for MT7620-based routers. Fix ticket #18768. Signed-off-by: Vittorio Gambaletta --- ---

[OpenWrt-Devel] [PATCH 2/2] ramips: Don't use a VLAN for the single ethernet port of the A5-V11.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
This router only has one ethernet port, so a VLAN is useless here, now that the rt3050 TCP bug that happened without VLANs has been fixed for a very long time. Add this router to the VLAN-less config that is used by other single-port routers. Also fix MAC address detection code since this

[OpenWrt-Devel] [PATCH 1/2] ramips: Fix network for routers without VLANs on eth0.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
Some routers only have one port, so eth0 is used without VLANs for them. Revision r47720 introduced some changes, but wrongly confused "enable" with "reset". VLANs need to be disabled for those routers, and the switch may be reset. Fix this, by explicitly disabling VLANs instead of resetting

[OpenWrt-Devel] [PATCH 2/6] ramips: Fix documentation for the rt3050 switch driver.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
The prefix used in the driver is now "mediatek" instead of "ralink". Signed-off-by: Vittorio Gambaletta --- --- /dev/null +++ b/target/linux/ramips/patches-4.4/0516-Documentation-DT-net-mediatek-fix-documentation-for-.patch @@ -0,0 +1,23 @@ +From: Vittorio Gambaletta

[OpenWrt-Devel] [PATCH 6/6] ramips: Disable all ethernet ports except port 0 on A5-V11.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
Port 0 is the only ethernet port on this router, so disable all other PHYs in order to save power. Signed-off-by: Vittorio Gambaletta --- --- a/target/linux/ramips/dts/A5-V11.dts +++ b/target/linux/ramips/dts/A5-V11.dts @@ -62,7 +62,8 @@ }; esw@1011 {

[OpenWrt-Devel] [PATCH 5/6] ramips: Disable all ethernet ports except port 4 on HT-TM02.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
Port 4 is the only ethernet port on this router, so disable all other PHYs in order to save power. Signed-off-by: Vittorio Gambaletta --- --- a/target/linux/ramips/dts/HT-TM02.dts +++ b/target/linux/ramips/dts/HT-TM02.dts @@ -63,6 +63,7 @@ esw@1011 {

[OpenWrt-Devel] [PATCH 4/6] ramips: Get rt3050 ethernet ports to be disabled from the device tree.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
This patch allows configuring ports to be disabled in the device tree; this saves power, since disabling ports here actually disables power to ethernet PHYs. Line 444 enables all ethernet ports, so line 487 is getting zero ports to be disabled, except for port 5 in SoCs where this is not

[OpenWrt-Devel] [PATCH 3/6] ramips: Fix comment in rt3050 ethernet switch driver.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
Line 444 is actually enabling all switch ports by setting the disable bits to 0. This needs to be done because the bootloader sets all ports to disabled by default (which is the case for at least one router based on RT5350). So, this patch fixes the comment in line 443. Signed-off-by: Vittorio

[OpenWrt-Devel] [PATCH 1/6] ramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
The FCT2 esw register should be set to 0x2500C to have "unknown IPv6 multicast" packets broadcasted to every port, instead of dropped. The previous value only let those packets go through ports 1 and 3. "Unknown IPv6 multicast" packets include packets needed by ICMPv6 echo requests addressed to

[OpenWrt-Devel] [PATCH] firewall3: Fix multicast ICMPv6 replies not being sent by default anymore.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
Since drop_invalid has been turned on by default, ICMPv6 echo requests to well-known multicast addresses, such as ff02::1, are not replied to by the router anymore, because conntrack considers those outgoing reply packets to be invalid. Fix this by not having the INVALID rule in the OUTPUT chain

[OpenWrt-Devel] [PATCH] ramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
The new rt3050 switch driver doesn't have problems with TCP when not using VLANs. This piece of code also broke failsafe for all routers where the LAN port is not wired to port 0 of the internal switch. Signed-off-by: Vittorio Gambaletta --- ---

[OpenWrt-Devel] [PATCH] base-files: Fix config_generate when there are no switch VLANs or ports configured in board.json.

2016-05-01 Thread Vittorio Gambaletta (VittGam)
The json_select call fails when there are no roles or ports objects in board.json. "json_select .." must not be executed after failing. This fixes for example LEDs not being set up in /etc/config/system. Signed-off-by: Vittorio Gambaletta --- ---

[OpenWrt-Devel] [PATCH] [CC] lantiq: Fix ath9k LED for TDW8970.

2016-04-25 Thread Vittorio Gambaletta (VittGam)
Backport of r47911, r47912, r47969 to CC. All other required patches have already been backported in r48822. Signed-off-by: Vittorio Gambaletta --- diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds

[OpenWrt-Devel] [PATCH] [CC] lantiq: Fix LED handling.

2016-04-25 Thread Vittorio Gambaletta (VittGam)
Backport of r47914 to CC. Without this patch the TDW8970 is left without any status LED at all, even during preinit and failsafe. Signed-off-by: Vittorio Gambaletta --- diff --git a/target/linux/lantiq/base-files/etc/diag.sh b/target/linux/lantiq/base-files/etc/diag.sh

[OpenWrt-Devel] [PATCH 2/2] lantiq: Fix status LED on TDW89X0 after boot is completed.

2016-04-21 Thread Vittorio Gambaletta (VittGam)
After recent patches, the status LED on this router would stay switched off after boot is completed. A switched off status LED often indicates a boot failure (eg. kernel panic), so fix this and get back to the previous behaviour. Signed-off-by: Vittorio Gambaletta --- ---

[OpenWrt-Devel] [PATCH 1/2] lantiq: Fix typo in LED diag script.

2016-04-21 Thread Vittorio Gambaletta (VittGam)
Signed-off-by: Vittorio Gambaletta --- --- a/target/linux/lantiq/base-files/etc/diag.sh +++ b/target/linux/lantiq/base-files/etc/diag.sh @@ -25,7 +25,7 @@ ;; done) status_led_off - [ -n "$running" ] & { + [