Xiaomi Wifi Router 3G - 18.06.x / Wifi issues 2.4GHz + 5GHz

Start by posting the system and kernel log after a reboot. My first thought is that there's a problem with the flash memory, resulting in a broken config file. That has caused several similar problems on this router.

System log:

Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[964]: exiting on receipt of SIGTERM
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: started, version 2.80test3 cachesize 150
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify dumpfile
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq-dhcp[1844]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain test
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain onion
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain localhost
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain local
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain invalid
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain bind
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain lan
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: reading /tmp/resolv.conf.auto
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain test
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain onion
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain localhost
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain local
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain invalid
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain bind
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain lan
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using nameserver 1.1.1.1#53
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using nameserver 8.8.8.8#53
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using nameserver fd00::e228:6dff:fedf:7c2f#53
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: read /etc/hosts - 4 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq-dhcp[1844]: read /etc/ethers - 0 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: read /etc/hosts - 4 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq-dhcp[1844]: read /etc/ethers - 0 addresses
Sat Oct 20 08:04:40 2018 daemon.warn odhcpd[1056]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Sat Oct 20 08:04:52 2018 daemon.err uhttpd[1142]: luci: accepted login on /admin/system/reboot for root from 192.168.178.52

kernel log:

[    0.000000] Linux version 4.14.63 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Thu Aug 16 07:51:15 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Xiaomi Mi Router 3G
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat 80545e80, node_mem_map 81003000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] random: get_random_bytes called from 0x80549740 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81210000 s26256 r8192 d22896 u57344
[    0.000000] pcpu-alloc: s26256 r8192 d22896 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00033060
[    0.000000] Readback ErrCtl register=00033060
[    0.000000] Memory: 253664K/262144K available (4596K kernel code, 239K rwdata, 564K rodata, 220K init, 270K bss, 8480K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007809] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073972] pid_max: default: 32768 minimum: 301
[    0.078738] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085246] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094003] Hierarchical SRCU implementation.
[    0.099127] smp: Bringing up secondary CPUs ...
[    0.104315] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.104324] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.104336] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.104470] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163867] Synchronize counters for CPU 1: done.
[    0.198408] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.198418] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.198427] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.198496] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.254969] Synchronize counters for CPU 2: done.
[    0.285427] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.285435] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.285443] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.285521] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.340150] Synchronize counters for CPU 3: done.
[    0.370013] smp: Brought up 1 node, 4 CPUs
[    0.377725] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.387507] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.393796] pinctrl core: initialized pinctrl subsystem
[    0.399601] NET: Registered protocol family 16
[    0.409750] Can't analyze schedule() prologue at 80478bc4
[    0.415106] FPU Affinity set after 11720 emulations
[    0.415800] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.721045] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.726078] ***** Xtal 40MHz *****
[    0.729449] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.734557] Port 0 N_FTS = 1b105000
[    0.738000] Port 1 N_FTS = 1b105000
[    0.741460] Port 2 N_FTS = 1b102800
[    1.896774] PCIE2 no card, disable it(RST&CLK)
[    1.901118]  -> 21007f2
[    1.903537] PCIE0 enabled
[    1.906144] PCIE1 enabled
[    1.908728] PCI host bridge /pcie@1e140000 ranges:
[    1.913491]  MEM 0x0000000060000000..0x000000006fffffff
[    1.918676]   IO 0x000000001e160000..0x000000001e16ffff
[    1.923848] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    1.939700] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.945565] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.951341] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.958429] PCI host bridge to bus 0000:00
[    1.962452] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.969309] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.975141] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.981897] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.989784] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.989824] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.989837] pci 0000:00:00.0: reg 0x14: [mem 0x60300000-0x6030ffff]
[    1.989901] pci 0000:00:00.0: supports D1
[    1.989910] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.990152] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.990179] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.990195] pci 0000:00:01.0: reg 0x14: [mem 0x60310000-0x6031ffff]
[    1.990245] pci 0000:00:01.0: supports D1
[    1.990254] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.990659] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    1.990702] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    1.990829] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.990999] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.991187] pci 0000:02:00.0: [14c3:7662] type 00 class 0x028000
[    1.991240] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.991286] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.991378] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    1.991555] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.991570] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    1.991628] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.998182] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.005058] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.011640] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.018530] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.025291] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.032014] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref]
[    2.039204] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.045927] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.052684] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    2.059397] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.064345] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.071066] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    2.078355] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
[    2.085490] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.090434] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.097156] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff pref]
[    2.105639] clocksource: Switched to clocksource GIC
[    2.111941] NET: Registered protocol family 2
[    2.117084] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.124007] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.130418] TCP: Hash tables configured (established 2048 bind 2048)
[    2.136834] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.142597] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.149070] NET: Registered protocol family 1
[    2.153389] PCI: CLS 0 bytes, default 32
[    2.385612] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.391755] Crashlog allocated RAM at address 0x3f00000
[    2.397132] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.410904] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.416718] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.429494] random: fast init done
[    2.433386] io scheduler noop registered
[    2.437273] io scheduler deadline registered (default)
[    2.442926] gpio-export gpio_export: 1 gpio(s) exported
[    2.448893] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.458778] console [ttyS0] disabled
[    2.462321] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.471333] console [ttyS0] enabled
[    2.478205] bootconsole [early0] disabled
[    2.486975] cacheinfo: Failed to find cpu0 device node
[    2.492095] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.498992] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.506139] Enable NFI Clock
[    2.509010] # MTK NAND # : Use HW ECC
[    2.512669] Device found in MTK table, ID: c8d1, EXT_ID: 809540
[    2.518580] Support this Device in MTK table! c8d1 
[    2.523528] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.530012] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    2.536350] nand: ESMT NAND 128MiB 3,3V 8-bit
[    2.540686] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.548255] Scanning device for bad blocks
[    2.696691] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[    2.703531] Creating 10 MTD partitions on "MT7621-NAND":
[    2.708842] 0x000000000000-0x000000080000 : "Bootloader"
[    2.715257] 0x000000080000-0x0000000c0000 : "Config"
[    2.721261] 0x0000000c0000-0x000000100000 : "Bdata"
[    2.727164] 0x000000100000-0x000000140000 : "Factory"
[    2.733223] 0x000000140000-0x000000180000 : "crash"
[    2.739116] 0x000000180000-0x0000001c0000 : "crash_syslog"
[    2.745665] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.751904] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.758507] 0x000000600000-0x000000a00000 : "kernel"
[    2.764479] 0x000000a00000-0x000007f80000 : "ubi"
[    2.771189] [mtk_nand] probe successfully!
[    2.776046] Signature matched and data read!
[    2.780294] load_fact_bbt success 1023
[    2.784699] libphy: Fixed MDIO Bus: probed
[    2.858202] libphy: mdio: probed
[    4.261940] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.268576] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.279363] NET: Registered protocol family 10
[    4.285379] Segment Routing with IPv6
[    4.289194] NET: Registered protocol family 17
[    4.293690] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.306606] 8021q: 802.1Q VLAN Support v1.8
[    4.313706] UBI: auto-attach mtd9
[    4.317098] ubi0: attaching mtd9
[    5.427013] ubi0: scanning is finished
[    5.446901] ubi0: attached mtd9 (name "ubi", size 117 MiB)
[    5.452377] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.459272] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.466047] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.472974] ubi0: good PEBs: 940, bad PEBs: 0, corrupted PEBs: 0
[    5.478973] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.486180] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1483783663
[    5.495267] ubi0: available PEBs: 0, total reserved PEBs: 940, PEBs reserved for bad PEB handling: 20
[    5.504497] ubi0: background thread "ubi_bgt0d" started, PID 387
[    5.506481] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.506493] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.506512] hctosys: unable to open rtc device (rtc0)
[    5.535227] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.542920] Freeing unused kernel memory: 220K
[    5.547401] This architecture does not have kernel memory protection.
[    6.068074] init: Console is alive
[    6.071711] init: - watchdog -
[    6.636570] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.724936] usbcore: registered new interface driver usbfs
[    6.730530] usbcore: registered new interface driver hub
[    6.736002] usbcore: registered new device driver usb
[    6.749658] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.754998] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    6.765846] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    6.774326] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[    6.781059] hub 1-0:1.0: USB hub found
[    6.784876] hub 1-0:1.0: 2 ports detected
[    6.789481] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.794796] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    6.802284] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0  SuperSpeed
[    6.808912] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.817823] hub 2-0:1.0: USB hub found
[    6.821632] hub 2-0:1.0: 1 port detected
[    6.828431] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.845956] init: - preinit -
[    7.460421] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    7.551038] mtk_soc_eth 1e100000.ethernet: PPE started
[    7.631332] random: procd: uninitialized urandom read (4 bytes read)
[   10.771305] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 481
[   10.845709] UBIFS (ubi0:1): recovery needed
[   11.042954] UBIFS (ubi0:1): recovery completed
[   11.047535] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.055329] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.065215] UBIFS (ubi0:1): FS size: 112373760 bytes (107 MiB, 885 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
[   11.075821] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.082413] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 9F33610E-0600-4DD4-AAB5-1FA23E090EEA, small LPT model
[   11.099835] mount_root: switching to ubifs overlay
[   11.135770] urandom-seed: Seeding with /etc/urandom.seed
[   11.230359] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.244925] procd: - early -
[   11.247945] procd: - watchdog -
[   11.915768] procd: - watchdog -
[   11.919208] procd: - ubus -
[   11.981713] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.992918] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.999694] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.006975] procd: - init -
[   12.363049] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.373050] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.701731] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   12.709755] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   12.718139] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.060284] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   13.270086] xt_time: kernel timezone is -0000
[   13.508869] bus=0x1, slot = 0x0, irq=0xff
[   13.513069] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   13.521716] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   13.527311] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   13.565633] firmware init done
[   13.744695] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.751872] bus=0x2, slot = 0x1, irq=0xff
[   13.756164] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   13.786375] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[   13.897852] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   13.903330] mt76x2e 0000:02:00.0: Build: 1
[   13.907455] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   13.935744] mt76x2e 0000:02:00.0: Firmware running!
[   13.942047] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   13.950874] PPP generic driver version 2.4.2
[   13.956699] NET: Registered protocol family 24
[   13.963888] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.550079] urandom_read: 5 callbacks suppressed
[   14.550093] random: jshn: uninitialized urandom read (4 bytes read)
[   20.304644] mtk_soc_eth 1e100000.ethernet: PPE started
[   20.316980] device eth0 entered promiscuous mode
[   20.323755] br-lan: port 1(eth0.1) entered blocking state
[   20.329322] br-lan: port 1(eth0.1) entered disabled state
[   20.335295] device eth0.1 entered promiscuous mode
[   20.345250] br-lan: port 1(eth0.1) entered blocking state
[   20.350761] br-lan: port 1(eth0.1) entered forwarding state
[   20.356882] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   21.086835] random: crng init done
[   21.356149] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   22.098456] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   22.113118] br-lan: port 2(wlan1) entered blocking state
[   22.118501] br-lan: port 2(wlan1) entered disabled state
[   22.124528] device wlan1 entered promiscuous mode
[   22.129687] br-lan: port 2(wlan1) entered blocking state
[   22.135059] br-lan: port 2(wlan1) entered forwarding state
[   22.396208] br-lan: port 2(wlan1) entered disabled state
[   22.788172] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   22.794824] br-lan: port 2(wlan1) entered blocking state
[   22.800162] br-lan: port 2(wlan1) entered forwarding state

Wifi at 5GHz is unstable at 18.06.1 . I built from source yesterday a new firmware and nothing changed. The picture i attached shows the problem. Every couple of minutes the connection drops. I tested with 3 devices and they reproduce the same behavior therefore the router is the causing of the problem. This behavior was present 6 months ago when i first build and install the lede firmware. I hoped over the time to improve. I guess we should inform the developer of the wifi driver. Reporting here seems the like wrong place for things to be fixed.drop_packages

Edit: I must also mention the test conditions: The router is 3 meters (10ft) away from the receiver. There is no other station at 5GHz and im nowhere near any airport. I used iperf3. Sending from the router to the device there is a faster connection around 200Mbs yet there is a lot of drop packages every couple of minutes. Sending from the device to the router the connection is more stable with only maybe 30 to 50 packages lost every couple of minutes. Yet the later is slower for some reason around 130 to 150Mbs.

1 Like

Did you try compiling without USB3 support like Carp did earlier in this thread? Unfortunately he was not successful in using other USB drivers instead.

I don't use the 2.4GHz band, so i didn't care that much about USB. Out of curiosity i decided to omit usb all together from the kernel. The results strangely enough got worst.drop_packages_bo_usb
Now i loose packages constantly, have lower speeds and still have disconnects, less frequent though. That was weird enough to got me revert to the previous firmware so i could eliminated the environment factor.drop_packages_with_usb
So reverting i got the old behavior. Im not convinced that the usb have such a dramatic effect, yet is the only thing i changed. Hmmm ....

2 Likes

Hi,

I suggest always to go to Stock before chaning to Padvan/OpenWrt/Pandora.
OpenWrt -> Stock -> Pandora

When i was on OpenWrt i first updated the "bootloader" to "breed". This then makes it easy to go to Padvan/OpenWrt/Pandora/Stock. Search the Web for instrunctions on Breed

To update "bootloader" while i was on "OpenWrt" i did as below.
Connect via ssh to the router:

cd /tmp
mtd_write unlock Bootloader
wget --no-check-certificate https://breed.hackpascal.net/breed-mt7621-xiaomi-r3g.bin
mtd_write write breed-mt7621-xiaomi-r3g.bin Bootloader
mtd_write verify breed-mt7621-xiaomi-r3g.bin Bootloader
reboot

If you miss mtd_write then you can:
SSH to the router, and execute the command:

opkg update
opkg install kmod-mtd-rw
insmod mtd-rw i_want_a_brick=1
mtd unlock /dev/mtd0
mtd -r write /tmp/breed-mt7621-xiaomi-r3g.bin Bootloader
reboot

To flash with "Breed":
Before the power on, press and hold the reset buttom until the light blinks stable.
Now you should able to access the BREED interface though browser 192.168.1.1

https://downloads.pangubox.com/pandorabox/18.10/targets/ralink/mt7621/packages/

Ciao
Attaros

2 Likes

Why are not there any developers fixing 2.4 g wi-fi in this modem? It is always connected and can not be reconnected if the legacy rate is only 10 megabits per second

Can not customize the Tx power option 2.4ghz

I am using the test and quality 2.4G wifi extremely bad, 20mhz is 6 Mb, 40mhz is 54Mb, wifi always disconnected automatically, too disappointed :frowning:

I just saw an update for mt76xx,
But there is no improvement in the 2.4ghz band :disappointed_relieved: :sleepy:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=4fd9a5667eab6a75d8c3b7a1510dfb354ecca969

Please note that MT7621 doesn't come with either EHCI or OHCI controller, both USB2.0 and USB3.0 are controlled by its XHCI. Thus if you disable XHCI you disable USB completely.
If you want to force USB2.0 mode, just plug your USB3.0 device halfway into the USB port at some point where USB2.0 pins are connected while USB3.0 pins are disconnected.

Interesting, but then how does the Padavan firmware force USB2 mode?

It's a parameter passed into the XHCI driver module

At trunk/linux-3.4.x/drivers/usb/host/xhci.c line 49:

int usb3_disable = 0;
module_param(usb3_disable, int, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(usb3_disable, "Disable USB3 interface");

And it disables USB3.0 port power if usb3_disable is set
At trunk/linux-3.4.x/drivers/usb/host/xhci-hub.c line 838:

			if (usb3_disable && hcd->speed == HCD_USB3)
				xhci_writel(xhci, temp & ~PORT_POWER, port_array[wIndex]);
			else
				xhci_writel(xhci, temp | PORT_POWER, port_array[wIndex]);
5 Likes

Here, I made a patch to force USB2. It's very basic and can't be configured. Someone more experienced should mainline this.

How to, by building your own image:

USB and 2.4Ghz works fine for me now !
Thanks to LGA1150 for the detailed info :slight_smile:

6 Likes

Also see this link:
https://openwrt.org/docs/guide-developer/quickstart-build-images
I find it much easier to understand.

I am experiencing severe problems with wireless. 5GHz can't be searched by win10 laptop, but my Mi 5 can (not stable).

1 Like

A post was merged into an existing topic: Xiaomi Wifi Router 3G - 18.06.X / feedback and help

after install snapshot ( 17.12.18 ) wifi and usb not work

use different channel

I may consider to buy this device.
So there are only problems, if I use USB 3.0 and 2.4GHz at the same time?
Do I need to disable USB 3.0 drivers for stable 2.4GHz wifi even if I don't use the USB port?
Please tell me If I understood something wrong.

And by the way thanks for sharing your solution.