LLdpd setup for MT7628AN

Continuing the discussion from Lldpd not working:

Hello everyone!

Just like OP in the tagged post I struggle to see PLC connected to the MediaTek device (MT7628AN) in the accessible devices list in TIA Portal. I tried setting up lldpd library, but still no success.

I do see neighbors with the lldpcli show neighbors command: my pc and my siemens PLC 1200. However the Profibus OUI is tagged as an unknown TLV so it makes me think that it could be the root of problem too probably?

I also see some of the packets being received with the lldpcli show stat command:

Screenshot 2023-03-28 141839

But I still can't see PLC in TIA Portal.

I tried allowing all the rules in the firewall too and tried to play with nftables too.
On other Qualcomm based routers TIA portal scanning works perfectly fine without any setup at all. But here I'm stuck with the MediaTek device. I see devices only if I turn off VLAN mode at all.

Does anyone know what should I do about it or what am I doing wrong?

I'm opening lldpd on the eth0.1 interface which is part of br-lan bridge.

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config device
        option name 'eth0.1'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth0.1'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config device
        option name 'eth0.2'

config interface 'wan'
        option device 'eth0.2'
        option proto 'dhcp'

config interface 'wan6'
        option device 'eth0.2'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '6t 1 2 3 4'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '6t 0'

well, i am too using LLDPD with vlans
here is my setup for VLAN1 (native/untaged)

cat /proc/cpuinfo 
system type             : MediaTek MT7628AN ver:1 eco:2
ps -w|grep lldp
 1925 root      3232 S    /usr/sbin/lldpd -l -I eth0.1 -d -O /tmp/lldpd.conf -x -X /var/run/agentx.sock
 1973 lldp      3496 S    /usr/sbin/lldpd -l -I eth0.1 -d -O /tmp/lldpd.conf -x -X /var/run/agentx.sock
cat /tmp/lldpd.conf 
configure lldp portidsubtype ifname
configure system interface pattern eth0.1
configure system description 'OpenWRT_19.07.10'
configure system hostname 'eleservice-wr01'
unconfigure system interface description
configure ports eth0.1 lldp custom-tlv add oui 00,80,c2 subtype 1 oui-info '00,01'
configure system ip management pattern 169.254.1.101