OpenWrt on tp link mr6400 v5

Do you have LuCI installed?
You need LuCI and luci-proto-qmi.

Yes LuCI (web gui) was installed by default also installed luci-proto-qmi and created new interface with "QMI Cellular" set as protocol but luci can't apply changes and infinitly waits for rollback, so i'll try doing that over ssh.

I think you shall delete the two lines with option device 'wwan0' under config interface 'wan' and config interface 'wan6'.

I forgot to mention that I installed uqmi and luci-proto-qmi using phone as AP and then copying the .ipk files to router using scp because even though I connected isp provided modem to the mr6400 so that i can get internet on mr6400 I can't update opkg repos or install packages even though I get internet connection and I can browse the web when connected to the mr6400.

I think your network config file looks strange. Can you revert back to default?
Or remove wan and wan6 in LuCI - Network - Interfaces, Save - Save & Apply. Then create your wwan interface (LTE modem), Modem device = /dev/cdc-wdm0, add your APN settings and firewall.

Sorry for not responding for a long time. I didn't set APN to anything maybe that was partially the problem because wiki says it's required but i'm not sure what APN is, is it just a random name or do i have to set APN to something specific and also set some specific APN settings? Also removed the wan and wan6 interface.

You need to set correct APN according to your SIMcard and subscription.

How do I get that info do i need to contact isp? I've also seen that on stock firmware auth option was set to CHAP do I need to set that up too?

Yes, you need to contact your cellular operator, isp, or check their web-pages.

I didn't manage to get APN from my ISP, they treated me like i'm dumb. I tried setting the APN to the one reported by my phone but that didn't work also tried connecting ethernet to wan port to get wan connection and tried running opkg update but that didn't work even though when i tried running wget with links reported failing by opkg it worked but when opkg tried getting the packages it always failed at some point.

Who is your isp?
Or can you check your setting in your cellular phone?

PLAY is my isp, I can check settings in my phone but only APN which is reported to be "Internet" and APN type which is "default,supl". Also forgot to mention that there are multiple APNs reported by my phone: "Internet", "Internet" and "mms".

Hi
Have you tried with APN = internet?
Like this?
image

No, I haven't I'll make sure to try it later.

Ok it worked, I mean configuration changes in luci actually aplied and didn't make the router wait for rollback endlessly, but I don't have wan connection.

Have you restarted your interface?
Can you paste the information from Status - System log?

Yes, I have restarted the interface.
Here's the log:

Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.000000] Linux version 5.4.154 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16325-88151b8303)) #0 Sun Oct 24 09:01:35 2021
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Board has DDR2
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Analog PMU set to hw control
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Digital PMU set to hw control
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] printk: bootconsole [early0] enabled
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] MIPS: machine is TP-Link TL-MR6400 v5
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Sun Oct 24 09:38:54 2021 kern.warn kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Sun Oct 24 09:38:54 2021 kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Zone ranges:
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Movable zone start for each node
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Early memory node ranges
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
Sun Oct 24 09:38:54 2021 kern.debug kernel: [    0.000000] On node 0 totalpages: 16384
Sun Oct 24 09:38:54 2021 kern.debug kernel: [    0.000000]   Normal zone: 144 pages used for memmap
Sun Oct 24 09:38:54 2021 kern.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Sun Oct 24 09:38:54 2021 kern.debug kernel: [    0.000000]   Normal zone: 16384 pages, LIFO batch:3
Sun Oct 24 09:38:54 2021 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Sun Oct 24 09:38:54 2021 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Writing ErrCtl register=0007ee50
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Readback ErrCtl register=0007ee50
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] Memory: 57444K/65536K available (5088K kernel code, 204K rwdata, 636K rodata, 1228K init, 205K bss, 8092K reserved, 0K cma-reserved)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] NR_IRQS: 256
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] intc: using register map from devicetree
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.000000] random: get_random_bytes called from 0x805cda28 with crng_init=0
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] CPU Clock: 580MHz
Sun Oct 24 09:38:54 2021 kern.crit kernel: [    0.000000] timer_probe: no matching timers found
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.000009] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.007572] Calibrating delay loop... 385.02 BogoMIPS (lpj=770048)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.045456] pid_max: default: 32768 minimum: 301
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.050094] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.057115] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.070427] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.079854] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.086508] pinctrl core: initialized pinctrl subsystem
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.094496] NET: Registered protocol family 16
Sun Oct 24 09:38:54 2021 kern.warn kernel: [    0.125768] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.139241] clocksource: Switched to clocksource MIPS
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.145164] thermal_sys: Registered thermal governor 'step_wise'
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.145573] NET: Registered protocol family 2
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.155720] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.163583] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.171684] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.179054] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.185850] TCP: Hash tables configured (established 1024 bind 1024)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.192134] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.198461] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.205486] NET: Registered protocol family 1
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.209721] PCI: CLS 0 bytes, default 32
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.218454] workingset: timestamp_bits=14 max_order=14 bucket_order=0
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.232809] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.238445] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.264042] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.274425] mt7621_gpio 10000600.gpio: registering 32 gpios
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.280166] mt7621_gpio 10000600.gpio: registering 32 gpios
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.285800] mt7621_gpio 10000600.gpio: registering 32 gpios
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.291498] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.300390] printk: console [ttyS0] disabled
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.304590] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.313314] printk: console [ttyS0] enabled
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.321725] printk: bootconsole [early0] disabled
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.332641] spi-mt7621 10000b00.spi: sys_freq: 193333333
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.348246] spi-nor spi0.0: en25qh64 (8192 Kbytes)
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.353229] 4 fixed-partitions partitions found on MTD device spi0.0
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.359693] Creating 4 MTD partitions on "spi0.0":
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.364568] 0x000000000000-0x000000020000 : "boot"
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.370566] 0x000000020000-0x0000007c0000 : "firmware"
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.379659] 2 tplink-fw partitions found on MTD device firmware
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.385733] Creating 2 MTD partitions on "firmware":
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.390788] 0x000000000000-0x0000001e81e1 : "kernel"
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.396951] 0x0000001e81e4-0x0000007a0000 : "rootfs"
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.403043] mtd: device 3 (rootfs) set to be root filesystem
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.411020] 1 squashfs-split partitions found on MTD device rootfs
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.417390] 0x000000510000-0x0000007a0000 : "rootfs_data"
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.424026] 0x0000007c0000-0x0000007d0000 : "config"
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    0.430224] 0x0000007d0000-0x000000800000 : "factory"
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.437237] libphy: Fixed MDIO Bus: probed
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.455148] rt3050-esw 10110000.esw: link changed 0x00
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.462381] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.472892] NET: Registered protocol family 10
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.482072] Segment Routing with IPv6
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.486005] NET: Registered protocol family 17
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.490612] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.503767] 8021q: 802.1Q VLAN Support v1.8
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.516408] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.530527] Freeing unused kernel memory: 1228K
Sun Oct 24 09:38:54 2021 kern.warn kernel: [    0.535149] This architecture does not have kernel memory protection.
Sun Oct 24 09:38:54 2021 kern.info kernel: [    0.541681] Run /sbin/init as init process
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    1.139264] random: fast init done
Sun Oct 24 09:38:54 2021 user.info kernel: [    1.556969] init: Console is alive
Sun Oct 24 09:38:54 2021 user.info kernel: [    1.560793] init: - watchdog -
Sun Oct 24 09:38:54 2021 user.info kernel: [    2.988820] kmodloader: loading kernel modules from /etc/modules-boot.d/*
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.166321] usbcore: registered new interface driver usbfs
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.172044] usbcore: registered new interface driver hub
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.177577] usbcore: registered new device driver usb
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.189590] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.198010] ehci-fsl: Freescale EHCI Host controller driver
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.205212] ehci-platform: EHCI generic platform driver
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.220893] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.227708] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.233013] ehci-platform 101c0000.ehci: EHCI Host Controller
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.238897] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.247066] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.267267] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.274649] hub 1-0:1.0: USB hub found
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.279000] hub 1-0:1.0: 1 port detected
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.288774] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.296334] ohci-platform: OHCI generic platform driver
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.301968] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.308957] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.317143] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.388248] hub 2-0:1.0: USB hub found
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.392586] hub 2-0:1.0: 1 port detected
Sun Oct 24 09:38:54 2021 user.info kernel: [    3.402657] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
Sun Oct 24 09:38:54 2021 user.info kernel: [    3.420588] init: - preinit -
Sun Oct 24 09:38:54 2021 kern.info kernel: [    3.575548] usb 1-1: new high-speed USB device number 2 using ehci-platform
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    4.302462] random: procd: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    5.012234] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    5.104319] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:38:54 2021 kern.warn kernel: [    5.323731] urandom_read: 1 callbacks suppressed
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    5.323740] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:38:54 2021 kern.notice kernel: [    5.419368] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:38:54 2021 kern.info kernel: [    5.835288] rt3050-esw 10110000.esw: link changed 0x00
Sun Oct 24 09:38:54 2021 kern.info kernel: [    9.537773] rt3050-esw 10110000.esw: link changed 0x02
Sun Oct 24 09:38:54 2021 kern.notice kernel: [   10.255851] jffs2: notice: (480) jffs2_build_xattr_subsystem: complete building xattr subsystem, 23 of xdatum (10 unchecked, 4 orphan) and 36 of xref (8 dead, 1 orphan) found.
Sun Oct 24 09:38:54 2021 user.info kernel: [   10.273852] mount_root: switching to jffs2 overlay
Sun Oct 24 09:38:54 2021 kern.warn kernel: [   10.282589] overlayfs: upper fs does not support tmpfile.
Sun Oct 24 09:38:54 2021 user.warn kernel: [   10.293606] urandom-seed: Seeding with /etc/urandom.seed
Sun Oct 24 09:38:54 2021 user.info kernel: [   10.430241] procd: - early -
Sun Oct 24 09:38:54 2021 user.info kernel: [   10.433405] procd: - watchdog -
Sun Oct 24 09:38:54 2021 user.info kernel: [   11.156846] procd: - watchdog -
Sun Oct 24 09:38:54 2021 user.info kernel: [   11.162506] procd: - ubus -
Sun Oct 24 09:38:54 2021 kern.notice kernel: [   11.305516] random: ubusd: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:38:54 2021 kern.notice kernel: [   11.345938] random: ubusd: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:38:54 2021 kern.notice kernel: [   11.356438] random: ubusd: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:38:54 2021 user.info kernel: [   11.366759] procd: - init -
Sun Oct 24 09:38:54 2021 user.info kernel: [   12.500804] kmodloader: loading kernel modules from /etc/modules.d/*
Sun Oct 24 09:38:54 2021 kern.info kernel: [   12.553418] usbcore: registered new interface driver cdc_wdm
Sun Oct 24 09:38:54 2021 kern.info kernel: [   12.567949] Loading modules backported from Linux version v5.10.68-0-g4d8524048a35
Sun Oct 24 09:38:54 2021 kern.info kernel: [   12.575712] Backport generated by backports.git v5.10.68-1-0-ga4f9ba32
Sun Oct 24 09:38:54 2021 kern.info kernel: [   12.635024] usbcore: registered new interface driver usbserial_generic
Sun Oct 24 09:38:54 2021 kern.info kernel: [   12.641823] usbserial: USB Serial support registered for generic
Sun Oct 24 09:38:54 2021 kern.info kernel: [   12.684745] xt_time: kernel timezone is -0000
Sun Oct 24 09:38:54 2021 kern.info kernel: [   12.815158] mt76_wmac 10300000.wmac: ASIC revision: 76280001
Sun Oct 24 09:38:54 2021 user.info kernel: [   12.953260] urngd: v1.0.2 started.
Sun Oct 24 09:38:54 2021 kern.notice kernel: [   13.162879] random: crng init done
Sun Oct 24 09:38:54 2021 kern.notice kernel: [   13.166375] random: 1 urandom warning(s) missed due to ratelimiting
Sun Oct 24 09:38:54 2021 kern.info kernel: [   13.857649] mt76_wmac 10300000.wmac: Firmware Version: 20151201
Sun Oct 24 09:38:54 2021 kern.info kernel: [   13.863743] mt76_wmac 10300000.wmac: Build Time: 20151201183641
Sun Oct 24 09:38:54 2021 kern.info kernel: [   13.903266] mt76_wmac 10300000.wmac: firmware init done
Sun Oct 24 09:38:54 2021 kern.debug kernel: [   14.084338] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Sun Oct 24 09:38:54 2021 kern.info kernel: [   14.153585] PPP generic driver version 2.4.2
Sun Oct 24 09:38:54 2021 kern.info kernel: [   14.173346] NET: Registered protocol family 24
Sun Oct 24 09:38:54 2021 kern.info kernel: [   14.203574] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
Sun Oct 24 09:38:54 2021 kern.info kernel: [   14.220365] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1, WWAN/QMI device, e6:8c:61:4b:7b:0d
Sun Oct 24 09:38:54 2021 kern.info kernel: [   14.231415] usbcore: registered new interface driver qmi_wwan
Sun Oct 24 09:38:54 2021 kern.info kernel: [   14.358419] usbcore: registered new interface driver option
Sun Oct 24 09:38:54 2021 kern.info kernel: [   14.364266] usbserial: USB Serial support registered for GSM modem (1-port)
Sun Oct 24 09:38:54 2021 user.info kernel: [   14.395495] kmodloader: done loading kernel modules from /etc/modules.d/*
Sun Oct 24 09:38:55 2021 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Sun Oct 24 09:38:55 2021 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: Connected to system UBus
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: started, version 2.85 cachesize 150
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: DNS service limited to local subnets
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: UBus support enabled: connected to system bus
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: using only locally-known addresses for domain test
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: using only locally-known addresses for domain onion
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: using only locally-known addresses for domain localhost
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: using only locally-known addresses for domain local
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: using only locally-known addresses for domain invalid
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: using only locally-known addresses for domain bind
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: using only locally-known addresses for domain lan
Sun Oct 24 09:38:56 2021 daemon.warn dnsmasq[1086]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: read /etc/hosts - 4 addresses
Sun Oct 24 09:38:56 2021 daemon.info dnsmasq[1086]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Sun Oct 24 09:38:57 2021 authpriv.info dropbear[1148]: Not backgrounding
Sun Oct 24 09:38:59 2021 daemon.notice wpa_supplicant[1247]: Successfully initialized wpa_supplicant
Sun Oct 24 09:38:59 2021 kern.info kernel: [   22.392932] rt3050-esw 10110000.esw: link changed 0x00
Sun Oct 24 09:39:00 2021 user.notice : Added device handler type: 8021ad
Sun Oct 24 09:39:00 2021 user.notice : Added device handler type: 8021q
Sun Oct 24 09:39:00 2021 user.notice : Added device handler type: macvlan
Sun Oct 24 09:39:00 2021 user.notice : Added device handler type: veth
Sun Oct 24 09:39:00 2021 user.notice : Added device handler type: bridge
Sun Oct 24 09:39:00 2021 user.notice : Added device handler type: Network device
Sun Oct 24 09:39:00 2021 user.notice : Added device handler type: tunnel
Sun Oct 24 09:39:03 2021 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/dhcp
Sun Oct 24 09:39:03 2021 user.notice ucitrack: Setting up /etc/config/wireless reload dependency on /etc/config/network
Sun Oct 24 09:39:03 2021 kern.info kernel: [   26.118993] rt3050-esw 10110000.esw: link changed 0x02
Sun Oct 24 09:39:03 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/luci-splash
Sun Oct 24 09:39:03 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/qos
Sun Oct 24 09:39:03 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/miniupnpd
Sun Oct 24 09:39:04 2021 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/odhcpd
Sun Oct 24 09:39:04 2021 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Sun Oct 24 09:39:04 2021 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Sun Oct 24 09:39:05 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/luci_statistics
Sun Oct 24 09:39:05 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/dhcp
Sun Oct 24 09:39:06 2021 daemon.notice procd: /etc/rc.d/S96led: setting up led lan
Sun Oct 24 09:39:06 2021 daemon.notice procd: /etc/rc.d/S96led: setting up led wan
Sun Oct 24 09:39:07 2021 kern.info kernel: [   29.868951] br-lan: port 1(eth0.1) entered blocking state
Sun Oct 24 09:39:07 2021 kern.info kernel: [   29.874515] br-lan: port 1(eth0.1) entered disabled state
Sun Oct 24 09:39:07 2021 kern.info kernel: [   29.880420] device eth0.1 entered promiscuous mode
Sun Oct 24 09:39:07 2021 kern.info kernel: [   29.885345] device eth0 entered promiscuous mode
Sun Oct 24 09:39:07 2021 kern.info kernel: [   29.917622] br-lan: port 1(eth0.1) entered blocking state
Sun Oct 24 09:39:07 2021 kern.info kernel: [   29.923176] br-lan: port 1(eth0.1) entered forwarding state
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Interface 'lan' is enabled
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Interface 'lan' is setting up now
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Interface 'lan' is now up
Sun Oct 24 09:39:07 2021 daemon.notice netifd: bridge 'br-lan' link is up
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Interface 'lan' has link connectivity
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Interface 'loopback' is enabled
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Interface 'loopback' is setting up now
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Interface 'loopback' is now up
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Interface 'wwan' is setting up now
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Network device 'eth0' link is up
Sun Oct 24 09:39:07 2021 daemon.notice netifd: VLAN 'eth0.1' link is up
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Network device 'lo' link is up
Sun Oct 24 09:39:07 2021 daemon.notice netifd: Interface 'loopback' has link connectivity
Sun Oct 24 09:39:07 2021 daemon.notice netifd: wwan (1823): Waiting for SIM initialization
Sun Oct 24 09:39:07 2021 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sun Oct 24 09:39:08 2021 daemon.err odhcpd[1365]: Failed to send to ff02::1%lan@br-lan (Address not available)
Sun Oct 24 09:39:08 2021 kern.info kernel: [   30.883803] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Sun Oct 24 09:39:08 2021 daemon.err odhcpd[1365]: Failed to send to ff02::1%lan@br-lan (Address not available)
Sun Oct 24 09:39:08 2021 daemon.info procd: - init complete -
Sun Oct 24 09:39:08 2021 daemon.err odhcpd[1365]: Failed to send to fe80::224:54ff:fe14:fcaf%lan@br-lan (Address not available)
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[1086]: read /etc/hosts - 4 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[1086]: read /tmp/hosts/odhcpd - 0 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[1086]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[1086]: exiting on receipt of SIGTERM
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: Connected to system UBus
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: started, version 2.85 cachesize 150
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: DNS service limited to local subnets
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: UBus support enabled: connected to system bus
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq-dhcp[2145]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: using only locally-known addresses for domain test
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: using only locally-known addresses for domain onion
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: using only locally-known addresses for domain localhost
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: using only locally-known addresses for domain local
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: using only locally-known addresses for domain invalid
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: using only locally-known addresses for domain bind
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: using only locally-known addresses for domain lan
Sun Oct 24 09:39:13 2021 daemon.warn dnsmasq[2145]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: read /etc/hosts - 4 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: read /tmp/hosts/odhcpd - 0 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq-dhcp[2145]: read /etc/ethers - 0 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: read /etc/hosts - 4 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq[2145]: read /tmp/hosts/odhcpd - 0 addresses
Sun Oct 24 09:39:13 2021 daemon.info dnsmasq-dhcp[2145]: read /etc/ethers - 0 addresses
Sun Oct 24 09:39:17 2021 daemon.info dnsmasq-dhcp[2145]: DHCPDISCOVER(br-lan) 00:24:54:14:fc:af
Sun Oct 24 09:39:17 2021 daemon.info dnsmasq-dhcp[2145]: DHCPOFFER(br-lan) 192.168.1.239 00:24:54:14:fc:af
Sun Oct 24 09:39:17 2021 daemon.info dnsmasq-dhcp[2145]: DHCPREQUEST(br-lan) 192.168.1.239 00:24:54:14:fc:af
Sun Oct 24 09:39:17 2021 daemon.info dnsmasq-dhcp[2145]: DHCPACK(br-lan) 192.168.1.239 00:24:54:14:fc:af LAPTOP1
Sun Oct 24 09:39:38 2021 daemon.err uhttpd[1484]: luci: accepted login on / for root from 192.168.1.239

It worked for a while. I noticed that after reboot additional wwan_4 interface appeared and also that the wwan interface has been recieving RX packets, I set dns to my preffered and set the firewall zone to wan and I was able to connect to wan and run speedtest but after a reboot it stopped working then I turned off the other old router I connected to mr6400 just to use it for wifi and the wifi provided by mr6400 works, gets me connected to wan and I can browse internet but with old router as wifi AP it just doesn't work I'll figure it out later and try to fix it but for now it seems like it's working so I'll let you know if I run into any troubles with openwrt on mr6400 in the future. Huge thanks for support!

Already managed to get problems. After another reboot it just doesn't work again.

Have you installed my modified version of uqmi?

wget https://github.com/mrhaav/openwrt/raw/master/21.02.1/uqmi_2021-12-22-0.4_mipsel_24kc.ipk
opkg install uqmi_2021-12-22-0.4_mipsel_24kc.ipk