Xiaomi mir3g strange vlan id

I have two xiaomi wifi 3g routers. I installed openwrt 19.07 on both. The routers have different configurations, the first with wifi disabled and the second with wifi and wan, but both have the same switch issues.
Example:

#swconfig dev mt7530 show
Global attributes:
        enable_vlan: 1
        mib: Switch MIB counters
.
.
.
        pvid: 0
        link: port:7 link:down
VLAN 1:
        vid: 1
        ports: 3 6t
VLAN 2:
        vid: 2
        ports: 1 6t
VLAN 3:
        vid: 3
        ports: 2 6t
VLAN 152:
        vid: 152
        ports:
VLAN 428:
        vid: 428
        ports:
VLAN 687:
        vid: 687
        ports:
VLAN 1792:
        vid: 1792
        ports:
VLAN 2341:
        vid: 2341
        ports:
VLAN 2561:
        vid: 2561
        ports:
VLAN 2782:
        vid: 2782
        ports:
VLAN 3609:
        vid: 3609
        ports:
VLAN 3831:
        vid: 3831
        ports:
#
Although I only configured VLAN 1, 2 and 3!!

\# dmesg
....
[  136.076014] device eth0.2 entered promiscuous mode
[  172.902243] device eth0.2 left promiscuous mode
[154543.582601] ------------[ cut here ]------------
[154543.587321] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 0x8038b320
[154543.594473] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[154543.601491] Modules linked in: pppoe ppp_async pppox ppp_generic nf_nat_pptp nf_conntrack_pptp nf_conntrack_ipv6 mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD xt_CT ts_fsm ts_bm slhc nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_h323 nf_nat_amanda nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_irc nf_conntrack_h323 nf_conntrack_broadcast ts_kmp nf_conntrack_amanda
[154543.673084]  nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 tun leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
[154543.701272] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.162 #0
[154543.707425] Stack : 00000000 00000000 00000000 8ffda640 00000000 00000000 00000000 00000000
[154543.715844]         00000000 00000000 00000000 00000000 00000000 00000001 8fc09d60 1cc28242
[154543.724261]         8fc09df8 00000000 00000000 000062c8 00000038 8049b778 00000008 00000000
[154543.732678]         00000000 80550000 000ab358 70617773 8fc09d40 00000000 00000000 80509e64
[154543.741095]         8038b320 00000140 00000000 8ffda640 00000008 802ac7c8 00000000 806b0000
[154543.749511]         ...
[154543.752031] Call Trace:
[154543.752083] [<8049b778>] 0x8049b778
[154543.758155] [<8038b320>] 0x8038b320
[154543.761711] [<802ac7c8>] 0x802ac7c8
[154543.765271] [<8000c1a0>] 0x8000c1a0
[154543.768826] [<8000c1a8>] 0x8000c1a8
[154543.772379] [<804845e4>] 0x804845e4
[154543.775935] [<80071a00>] 0x80071a00
[154543.779499] [<8002e5f8>] 0x8002e5f8
[154543.783055] [<8038b320>] 0x8038b320
[154543.786619] [<8002e680>] 0x8002e680
[154543.790186] [<8038b320>] 0x8038b320
[154543.793742] [<80099870>] 0x80099870
[154543.797301] [<8038b174>] 0x8038b174
[154543.800856] [<8008843c>] 0x8008843c
[154543.804418] [<800886f8>] 0x800886f8
[154543.807973] [<80079048>] 0x80079048
[154543.811531] [<804a2578>] 0x804a2578
[154543.815090] [<80032f94>] 0x80032f94
[154543.818646] [<80259f50>] 0x80259f50
[154543.822203] [<80007488>] 0x80007488
[154543.825756]
[154543.827423] ---[ end trace 61b32f88e537c5c0 ]---
[154543.832126] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
[154543.838405] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000065
[154543.844526] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0eb40000, max=0, ctx=384, dtx=384, fdx=383, next=384
[154543.855127] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0e2e0000, max=0, calc=2331, drx=2344
[154543.867879] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[154543.880721] mtk_soc_eth 1e100000.ethernet: PPE started
[325164.686445] mtk_soc_eth 1e100000.ethernet eth0: port 2 link down
[325179.874766] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[334662.685445] vlan egress tag control neither untag nor tag.
[334662.691012] vlan egress tag control neither untag nor tag.
[334662.905463] vlan egress tag control neither untag nor tag.
[334662.911031] vlan egress tag control neither untag nor tag.
[334663.127161] vlan egress tag control neither untag nor tag.
[334663.132734] vlan egress tag control neither untag nor tag.
[334663.138310] vlan egress tag control neither untag nor tag.
[334663.235437] vlan egress tag control neither untag nor tag.
[334663.241002] vlan egress tag control neither untag nor tag.
[334663.565417] vlan egress tag control neither untag nor tag.
[334663.570988] vlan egress tag control neither untag nor tag.
[334663.895474] vlan egress tag control neither untag nor tag.
[334663.901046] vlan egress tag control neither untag nor tag.
[334664.007538] vlan egress tag control neither untag nor tag.
[334664.013108] vlan egress tag control neither untag nor tag.
[334664.018697] vlan egress tag control neither untag nor tag.
[334664.225432] vlan egress tag control neither untag nor tag.
[334664.231003] vlan egress tag control neither untag nor tag.
[334695.795572] vlan egress tag control neither untag nor tag.
[334696.017546] vlan egress tag control neither untag nor tag.
[334696.785540] vlan egress tag control neither untag nor tag.
[334727.695675] vlan egress tag control neither untag nor tag.
[334728.905619] vlan egress tag control neither untag nor tag.
[334729.015620] vlan egress tag control neither untag nor tag.
[334729.125640] vlan egress tag control neither untag nor tag.
[338899.379921] vlan egress tag control neither untag nor tag.
[338900.148034] vlan egress tag control neither untag nor tag.
[338900.153607] vlan egress tag control neither untag nor tag.
[338900.159179] vlan egress tag control neither untag nor tag.
[338900.164721] vlan egress tag control neither untag nor tag.
[338900.258087] vlan egress tag control neither untag nor tag.
[338900.263651] vlan egress tag control neither untag nor tag.
[338900.269220] vlan egress tag control neither untag nor tag.
[338900.274765] vlan egress tag control neither untag nor tag.
[338900.698026] vlan egress tag control neither untag nor tag.
[338900.703597] vlan egress tag control neither untag nor tag.
[338900.709167] vlan egress tag control neither untag nor tag.
[338900.714710] vlan egress tag control neither untag nor tag.
[338900.809219] vlan egress tag control neither untag nor tag.

Router with wifi enabled freeze every 2-3 day and second one works well.

I have the same strange behavior on my Xiaomi-ac2100, did you finally manage to figure out what the reason for that ist?

No :frowning:
I can only recommend you to keep eyes on this topic:

1 Like

I have the same issue :frowning:

It is a bug in the switch driver, the strange VLANs you see reported above are actually uninitialized memory being dumped.