[OpenWrt-Devel] [PATCH] ramips: Fix failsafe for HT-TM02.

Vittorio G (VittGam) openwrt at vittgam.net
Fri Dec 11 08:48:58 EST 2015


Hi,

On 11/12/2015 14:32:45 CET, John Crispin wrote:
> hardcoding the board id here is not a good idea. we should rather use
> the board.json data to probe if a switch is registered. if not we dont
> apply the hack. i'll ask jow to tell us how to probe for a switch.

We cannot use board.json data here: this code is called before mounting
the rootfs, in the preinit.

Also, the switch is actually registered, just vlans are not needed on
HT-TM02 for normal operation and thus are normally disabled.

Also, the LAN and only port is 4, so by adding just 0 to the failsafe
vlan then the failsafe is broken for this router.

We could detect that the LAN port is 4 here, but this code is still
not needed for this router. Furthermore, this creates an useless eth0.1
interface that is visible in eg. ifconfig even when failsafe is not
triggered. This may create problems with bridging since LAN VLAN 1
would not be passed to the br-lan bridge (and thus to the WLAN, in
the default config) anymore. This will break WLAN VLAN trunking for
instance.

Cheers,
Vittorio G
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list