BananaPi BPR-R4: Problems with WIFI7 and G5-modem

Hello to the forum,
I'm running a BananaPi BPI-R4 (8 GByte RAM) with BPI-R4-NIC-BE14 WIFI7-Module and Quectel RM520N-GL 5G-modem. And today I upgraded to OpenWRT 24.10.5.
But although I followed the instructions on the getting started page, I neither get WIFI7 nor the G5-modem running.
In the command line outputs of the ls-command below, I find it strange that the WIFI7-part of the NIC

0003:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308

as well as the 5G-modem

Bus 001 Device 003: ID 2109:8822 VIA Labs, Inc.          USB Billboard Device

are listed, but are not regognized as network controller/modem.

root@NordmannsRouter:~# uname -r
6.6.119
root@NordmannsRouter:~# lsmod | grep mt7
cfg80211              299008  4 mt7996e,mt76_connac_lib,mt76,mac80211
compat                 12288  3 mt76,mac80211,cfg80211
mac80211              581632  3 mt7996e,mt76_connac_lib,mt76
mt76                   73728  2 mt7996e,mt76_connac_lib
mt76_connac_lib        45056  1 mt7996e
mt7996e               139264  0 
root@NordmannsRouter:~# lspci
0000:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0000:01:00.0 Network controller: MEDIATEK Corp. Device 7990
0001:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0001:01:00.0 Network controller: MEDIATEK Corp. Device 7991
0003:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308
root@NordmannsRouter:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.119 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 2109:2822 VIA Labs, Inc.          USB2.0 Hub             
Bus 001 Device 003: ID 2109:8822 VIA Labs, Inc.          USB Billboard Device   
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.119 xhci-hcd xHCI Host Controller
Bus 002 Device 002: ID 2109:0822 VIA Labs, Inc.          USB3.1 Hub             
root@NordmannsRouter:~# dmesg | grep -i firm
[    0.000000] psci: PSCIv1.1 detected in firmware.
[   13.880759] mt7996e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20250904203304
[   13.925499] mt7996e 0000:01:00.0: DSP Firmware Version: ____000000, Build Time: 20250904202814
[   13.947014] mt7996e 0000:01:00.0: WA Firmware Version: ____000000, Build Time: 20250904203218
root@NordmannsRouter:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 26:61:4D:65:DD:87  
          inet addr:192.168.4.1  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fd5d:677a:f2f6::1/60 Scope:Global
          inet6 addr: fe80::2461:4dff:fe65:dd87/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:103007 errors:0 dropped:0 overruns:0 frame:0
          TX packets:92479 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11506491 (10.9 MiB)  TX bytes:221836278 (211.5 MiB)

br-wan    Link encap:Ethernet  HWaddr 26:61:4D:65:DD:88  
          inet addr:192.168.5.217  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::2461:4dff:fe65:dd88/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77231 errors:0 dropped:19918 overruns:0 frame:0
          TX packets:26402 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:34551524 (32.9 MiB)  TX bytes:4486977 (4.2 MiB)

eth0      Link encap:Ethernet  HWaddr 26:61:4D:65:DD:87  
          inet6 addr: fe80::2461:4dff:fe65:dd87/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1                    
          RX packets:198969 errors:0 dropped:0 overruns:0 frame:0               
          TX packets:219913 errors:0 dropped:0 overruns:0 carrier:0             
          collisions:0 txqueuelen:1000                                          
          RX bytes:50591877 (48.2 MiB)  TX bytes:233896957 (223.0 MiB)          
          Interrupt:106                                                         
                                                                                
eth1      Link encap:Ethernet  HWaddr 26:61:4D:65:DD:88                         
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
          Interrupt:106                                                         
                                                                                
eth2      Link encap:Ethernet  HWaddr 26:61:4D:65:DD:88                         
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
          Interrupt:106                                                         
                                                                                
lan1      Link encap:Ethernet  HWaddr 26:61:4D:65:DD:87                         
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:103375 errors:0 dropped:0 overruns:0 frame:0               
          TX packets:92489 errors:0 dropped:0 overruns:0 carrier:0              
          collisions:0 txqueuelen:1000                                          
          RX bytes:12967683 (12.3 MiB)  TX bytes:221840966 (211.5 MiB)          
                                                                                
lan2      Link encap:Ethernet  HWaddr 26:61:4D:65:DD:87                         
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
                                                                                
lan3      Link encap:Ethernet  HWaddr 26:61:4D:65:DD:87                         
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
                                                                                
lo        Link encap:Local Loopback                                             
          inet addr:127.0.0.1  Mask:255.0.0.0                                   
          inet6 addr: ::1/128 Scope:Host                                        
          UP LOOPBACK RUNNING  MTU:65536  Metric:1                              
          RX packets:3959 errors:0 dropped:0 overruns:0 frame:0                 
          TX packets:3959 errors:0 dropped:0 overruns:0 carrier:0               
          collisions:0 txqueuelen:1000                                          
          RX bytes:381303 (372.3 KiB)  TX bytes:381303 (372.3 KiB)              
                                                                                
phy0.0-ap0 Link encap:Ethernet  HWaddr 26:61:4D:65:DD:89                        
          inet6 addr: fe80::2461:4dff:fe65:dd89/64 Scope:Link                   
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:1232 (1.2 KiB)                           
                                                                                
phy0.0-ap1 Link encap:Ethernet  HWaddr 22:61:4D:65:DD:89                        
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0        
          inet6 addr: fe80::2061:4dff:fe65:dd89/64 Scope:Link                   
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0                 
          collisions:0 txqueuelen:1000                                          
          RX bytes:1552 (1.5 KiB)  TX bytes:3724 (3.6 KiB)                      
                                                                                
phy0.1-ap0 Link encap:Ethernet  HWaddr 26:61:4D:65:DD:99                        
          inet6 addr: fe80::2461:4dff:fe65:dd99/64 Scope:Link                   
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:872 (872.0 B)                            
                                                                                
wan       Link encap:Ethernet  HWaddr 26:61:4D:65:DD:88                         
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:95594 errors:0 dropped:658 overruns:0 frame:0              
          TX packets:26402 errors:0 dropped:0 overruns:0 carrier:0              
          collisions:0 txqueuelen:1000                                          
          RX bytes:36828318 (35.1 MiB)  TX bytes:4486977 (4.2 MiB)   

Is there a solution to get both get recognized operated correctly?

And YES, I saw the OpenWRT WIFI7 status-thread. And there user CyberDeath mentioned a TX/RX eprom patch in alternative OpenWRT builds (MTK or immortalWRT) - So:
Is this patch available seperately, where can you get it and how do you apply it.
Regards
"Klaus"

Hi ncompact,
I don't know if this is the solution for my BPI-R4-NIC-BE14 Wi-Fi 7 Module problem. But after reading the link you provided, I set the WLAN encryption of the 6 GHz radio to "WPA3/SAE". Et voilà - I have a signal strength of -89dBm and a channel number (17) shown in the luCi interface :slight_smile: Great - thank you for that.
But the modem still refuses to work...

1 Like

Hi ncompact,
I did as you suggested and installed the packages you recommended. But it was not successful, so after some further research in the internet - concerning the Quectel RM520N-GL; especially BPIR4-with-RM520NGLAA - I decided to install all the following packages:

wwan
kmod-usb-serial-wwan
kmod-usb-serial-option

kmod-mhi-wwan-mbim
kmod-mhi-wwan-ctrl

kmod-usb-net-cdc-mbim
umbim
luci-proto-mbim
mbim-utils

kmod-usb-net-qmi-wwan
uqmi
luci-proto-qmi
qmi-utils

picocom

modemmanager
luci-proto-modemmanager

But this also was without success :rofl::rofl::rofl:

And then I read somewhere that my 5G modem can be operated in USB as well as in PCIe mode and that the mode can be switched via AT commands. So while I bought the modem used via eBay I'm not sure in which mode it is running. So my further questions:

  1. How can I find out in which mode the 5G modem is running? Which AT command do I have to use?
  2. Which AT command do I have to use to switch into USB mode?
  3. where do I have to input the AT commands? Is there a special command line?

Strange is, that I put a SIM card into Slot 1 but the corresponding LED labelled "SIM1" is off. And the modem seems to consume electric energy because it's warm...

Regards
"Klaus"

Post result of this command, to see if you have interfaces created:

ls /dev/wwan*

Edit: and install this if you don’t have it: kmod-mhi-pci-generic.

1 Like

WOW!

Hi LS3434,
after installing kmod-mhi-pci-generic, I got this output of from ls-/dmesg-commands:

ls -l /dev/wwan*
crw-------    1 root     root      247,   1 Dec 22 18:16 /dev/wwan0mbim0
crw-------    1 root     root      247,   0 Dec 22 18:16 /dev/wwan0qcdm0
crw-------    1 root     root      247,   2 Dec 22 18:16 /dev/wwan0qmi0

dmesg | grep -i wwan
[   14.334407] wwan wwan0: port wwan0qcdm0 attached
[   14.339162] wwan wwan0: port wwan0mbim0 attached
[   14.343932] wwan wwan0: port wwan0qmi0 attached
[   15.169217] usbcore: registered new interface driver qmi_wwan

ifconfig | grep wwan

So, something "magic" had happened - except creating entries in the internet configuration (commmand ifconfig) :grinning_face:
But how can I use those newly created devices/interfaces in luCi? I haven't found entries neither in "network -> interfaces" nor in "network -> WLAN".
Do I have to create them manually? And how do I do that? :thinking:

Regards
"Klaus"

Now, you can use ModemManager to setup your connection, or use mbim or qmi protocol. You pick those in network > interfaces > create new interface and there you pick protocol of your choosing. Then, you set up your apn, and you’re good to go. And assign them to WAN zone.

Edit: Almost forgot, use this command, to check if your modem is fcc-locked:

mbimcli -p -d /dev/wwan0mbim0 --quectel-query-radio-state

Hi LS3434,
I used the command you recomended, but there seems to be an error:

mbimcli -p -d /dev/wwan0mbim0 --quectel-query-radio-state
[ 3947.219100] mhi-pci-generic 0003:01:00.0: PME# disabled
[ 3947.224339] mhi-pci-generic 0003:01:00.0: enabling bus mastering
error: operation failed: InvalidParameters

And when trying to add a ModemManager interface, I can't select a modem file from the dropdown menu (the menu is empty) which is a mandatory information :slightly_frowning_face:

Do you have additional information to solve this?

Regards
"Klaus"

This looks like a problem that i had with my banana and modem. ModemManager service starts immediately, and modem is booting up slower. Restart modem manager using:

service modemmanager restart

and post logread afterwards.

Edit: and make sure that you have simcard in SIM1 slot.

Good morning LS3434,
I restarted the modemmanager service (SIM card was inserted before powering up the BananaPi) as you said. And these are the log entries this created:

Tue Dec 23 08:24:05 2025 user.notice root: ModemManager-wrapper[2911] Sending signal TERM...
Tue Dec 23 08:24:05 2025 user.notice root: ModemManager-monitor[2912] Sending signal TERM ...
Tue Dec 23 08:24:05 2025 daemon.notice [2962]: <msg> caught signal, shutting down...
Tue Dec 23 08:24:05 2025 daemon.notice [2962]: <msg> ModemManager is shut down
Tue Dec 23 08:24:06 2025 daemon.notice [6451]: <msg> ModemManager (version 1.22.0) starting in system bus...
Tue Dec 23 08:24:07 2025 daemon.info ModemManager[6423]: hotplug: checking if ModemManager is available...
Tue Dec 23 08:24:07 2025 daemon.info ModemManager[6424]: hotplug: Checking if ModemManager is available...
Tue Dec 23 08:24:09 2025 kern.debug kernel: [  892.834238] mhi-pci-generic 0003:01:00.0: PME# disabled
Tue Dec 23 08:24:09 2025 kern.debug kernel: [  892.839489] mhi-pci-generic 0003:01:00.0: enabling bus mastering
Tue Dec 23 08:24:09 2025 daemon.notice [6451]: <msg> [wwan0mbim0/mbim] MBIM device is not QMI capable
Tue Dec 23 08:24:11 2025 daemon.notice [6451]: <msg> [base-manager] couldn't check support for device '/sys/devices/platform/soc/11300000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0': not supported by any plugin
Tue Dec 23 08:24:54 2025 daemon.notice [6451]: <msg> [device /sys/devices/platform/soc/11280000.pcie/pci0003:00/0003:00:00.0/0003:01:00.0] creating modem with plugin 'generic' and '3' ports
Tue Dec 23 08:24:54 2025 daemon.warn [6451]: <wrn> [plugin/generic] could not grab port wwan0qmi0: Cannot add port 'wwan/wwan0qmi0', unhandled port type
Tue Dec 23 08:24:54 2025 daemon.warn [6451]: <wrn> [base-manager] couldn't create modem for device '/sys/devices/platform/soc/11280000.pcie/pci0003:00/0003:00:00.0/0003:01:00.0': Failed to find a net port in the MBIM modem

Ok, so something is wrong. Try these commands, and post results:

ls -l  /dev/*wan*
dmesg |grep mhi
umbim -d /dev/wwan0mbim0 caps
umbim -d /dev/wwan0mbim0 radio
find /sys -name wwan0mbim0
lspci -vv
1 Like

Hi LS3434,
here are the command results:

root@NordmannsRouter:~# ls -l  /dev/*wan*
crw-------    1 root     root      247,   1 Dec 22 19:10 /dev/wwan0mbim0
crw-------    1 root     root      247,   0 Dec 22 19:10 /dev/wwan0qcdm0
crw-------    1 root     root      247,   2 Dec 22 19:10 /dev/wwan0qmi0

root@NordmannsRouter:~# dmesg |grep mhi
[   13.983656] mhi-pci-generic 0003:01:00.0: assign IRQ: got 0
[   13.989236] mhi-pci-generic 0003:01:00.0: MHI PCI device found: qcom-sdx65m
[   13.996219] mhi-pci-generic 0003:01:00.0: BAR 0: assigned [mem 0x20200000-0x20200fff 64bit]
[   14.004583] mhi-pci-generic 0003:01:00.0: enabling device (0000 -> 0002)
[   14.011292] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[   14.076893] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x030817cb
[   14.083414] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100406
[   14.089930] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
[   14.096449] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000000
[   14.102963] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[   14.109481] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[   14.116001] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[   14.122518] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[   14.129047] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[   14.135568] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   14.142085] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   14.148607] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x520117cb
[   14.155131] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   14.161647] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   14.168164] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   14.174682] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   14.181769] mhi mhi0: Requested to power ON
[   14.185983] mhi mhi0: Power on setup success
[   16.931138] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x030817cb
[   16.937722] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[   16.944297] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
[   16.950821] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000000
[   16.957388] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[   16.963927] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[   16.970455] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[   16.977006] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[   16.983560] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[   16.990094] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   16.996640] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   17.003188] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x520117cb
[   17.009712] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   17.016248] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   17.022767] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   17.029298] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   17.035896] mhi-pci-generic 0003:01:00.0: PME# enabled
[   24.480550] mhi-pci-generic 0003:01:00.0: PME# disabled
[   24.485801] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[  255.983541] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x030817cb
[  255.990078] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[  255.996608] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
[  256.003129] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000000
[  256.009644] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[  256.016165] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[  256.022681] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[  256.029201] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[  256.035719] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[  256.042235] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[  256.048754] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[  256.055273] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x520117cb
[  256.061788] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[  256.068329] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[  256.074863] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[  256.081394] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[  256.087988] mhi-pci-generic 0003:01:00.0: PME# enabled
[  534.023477] mhi-pci-generic 0003:01:00.0: PME# disabled
[  534.028724] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[  536.162528] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x030817cb
[  536.169071] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[  536.175587] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
[  536.182110] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000000
[  536.188630] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[  536.195146] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[  536.201665] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[  536.208183] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[  536.214698] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[  536.221216] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[  536.227734] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[  536.234249] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x520117cb
[  536.240767] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[  536.247285] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[  536.253800] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[  536.260318] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[  536.266903] mhi-pci-generic 0003:01:00.0: PME# enabled
[  892.834238] mhi-pci-generic 0003:01:00.0: PME# disabled
[  892.839489] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[ 1120.740372] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x030817cb
[ 1120.746917] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[ 1120.753469] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
[ 1120.760005] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000000
[ 1120.766521] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[ 1120.773049] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[ 1120.779574] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[ 1120.786089] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[ 1120.792617] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[ 1120.799141] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[ 1120.805657] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[ 1120.812181] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x520117cb
[ 1120.818699] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[ 1120.825214] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[ 1120.831733] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[ 1120.838251] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[ 1120.844831] mhi-pci-generic 0003:01:00.0: PME# enabled
[ 1398.025916] mhi-pci-generic 0003:01:00.0: PME# disabled
[ 1398.031166] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[ 1400.104963] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x030817cb
[ 1400.111506] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[ 1400.118023] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
[ 1400.124546] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000000
[ 1400.131066] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[ 1400.137581] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[ 1400.144100] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[ 1400.150618] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[ 1400.157134] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[ 1400.163651] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[ 1400.170169] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[ 1400.176684] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x520117cb
[ 1400.183204] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[ 1400.189723] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[ 1400.196239] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[ 1400.202757] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[ 1400.209339] mhi-pci-generic 0003:01:00.0: PME# enabled

root@NordmannsRouter:~# umbim -d /dev/wwan0mbim0 caps
[ 4857.192355] mhi-pci-generic 0003:01:00.0: PME# disabled
[ 4857.197595] mhi-pci-generic 0003:01:00.0: enabling bus mastering
  devicetype: 0001 - embedded
  cellularclass: 0001
  voiceclass: 0001 - no-voice
  simclass: 0002
  dataclass: 8000003C
  smscaps: 0003
  controlcaps: 0001
  maxsessions: 000F
  deviceid: 868371050013552
  firmwareinfo: RM520NGLAPR01A04M4G
  hardwareinfo: RM520N-GL

root@NordmannsRouter:~# umbim -d /dev/wwan0mbim0 radio
[ 4916.130823] mhi-pci-generic 0003:01:00.0: PME# disabled
[ 4916.136062] mhi-pci-generic 0003:01:00.0: enabling bus mastering
  hwradiostate: on
  swradiostate: on

root@NordmannsRouter:~# find /sys -name wwan0mbim0
/sys/class/wwan/wwan0mbim0
/sys/devices/platform/soc/11280000.pcie/pci0003:00/0003:00:00.0/0003:01:00.0/mhi0/wwan/wwan0/wwan0m0
root@NordmannsRouter:~# lspci -vv
0000:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01) (prog-if 00 [Normal decode])
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PE-
        Latency: 0
        Interrupt: pin A routed to IRQ 119
        Region 0: Memory at 30500000 (64-bit, non-prefetchable) [size=32K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled] [32-bit]
        Memory behind bridge: 30400000-304fffff [size=1M] [32-bit]
        Prefetchable memory behind bridge: 30200000-303fffff [size=2M] [32-bit]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PE-
        BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: [80] Express (v2) Root Port (Slot-), IntMsgNum 0
                DevCap: MaxPayload 256 bytes, PhantFunc 0
                        ExtTag+ RBE+ TEE-IO-
                DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 256 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
                LnkCap: Port #1, Speed 8GT/s, Width x2, ASPM L0s L1, Exit Latency L0s <2us, L1 <8us
                        ClockPM- Surprise+ LLActRep+ BwNot+ ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- FltModeDis-
                LnkSta: Speed 8GT/s, Width x2
                        TrErr- Train- SlotClk+ DLActive+ BWMgmt- ABWMgmt-
                RootCap: CRSVisible+
                RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna+ CRSVisible+
                RootSta: PME ReqID 0000, PMEStatus- PMEPending-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
                         10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- LN System CLS Not Supported, TPHComp- ExtTPHComp- ARIFwd-
                         AtomicOpsCap: Routing- 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- ARIFwd-
                         AtomicOpsCtl: ReqEn- EgressBlck-
                         IDOReq- IDOCompl- LTR+ EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
                LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- Complian-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase+
                         EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported, FltMode-
        Capabilities: [e0] MSI: Enable+ Count=1/32 Maskable+ 64bit+
                Address: 0000000011300c00  Data: 0000
                Masking: fffffffe  Pending: 00000000
        Capabilities: [f8] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [100 v1] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [110 v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=3us PortTPowerOnTime=28us
                L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
                           T_CommonMode=3us LTR1.2_Threshold=37888ns
                L1SubCtl2: T_PwrOn=28us
        Capabilities: [200 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr- BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr- CorrIntErr- Head-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ CorrIntErr+ Head-
                AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
                RootCmd: CERptEn+ NFERptEn+ FERptEn+
                RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd-
                         FirstFatal- NonFatalMsg- FatalMsg- IntMsgNum 0
                ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000
        Capabilities: [300 v1] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn- PerformEqu-
                LaneErrStat: 0
        Kernel driver in use: pcieport
lspci: Unable to load libkmod resources: error -2

0000:01:00.0 Network controller: MEDIATEK Corp. Device 7990
        Subsystem: MEDIATEK Corp. Device 6639
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PE-
        Latency: 0
        Interrupt: pin A routed to IRQ 136
        Region 0: Memory at 30200000 (64-bit, prefetchable) [size=2M]
        Region 2: Memory at 30400000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: [80] Express (v2) Endpoint, IntMsgNum 0
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 0W TEE-IO-
                DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+ FLReset-
                        MaxPayload 256 bytes, MaxReadReq 256 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
                LnkCap: Port #1, Speed 8GT/s, Width x2, ASPM L0s L1, Exit Latency L0s <2us, L1 <8us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- FltModeDis-
                LnkSta: Speed 8GT/s, Width x2
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
                         10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- TPHComp- ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                         AtomicOpsCtl: ReqEn-
                         IDOReq- IDOCompl- LTR+ EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
                LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- Complian-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase+
                         EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported, FltMode-
        Capabilities: [e0] MSI: Enable+ Count=1/32 Maskable+ 64bit+
                Address: 0000000011300c00  Data: 0001
                Masking: fffffffe  Pending: 00000000
        Capabilities: [f8] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [100 v1] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [108 v1] Latency Tolerance Reporting
                Max snoop latency: 0ns
                Max no snoop latency: 0ns
        Capabilities: [110 v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=3us PortTPowerOnTime=28us
                L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
                           T_CommonMode=0us LTR1.2_Threshold=37888ns
                L1SubCtl2: T_PwrOn=28us
        Capabilities: [200 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr- BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr- CorrIntErr- Head-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ CorrIntErr+ Head-
                AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
        Capabilities: [300 v1] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn- PerformEqu-
                LaneErrStat: 0
        Kernel driver in use: mt7996e

0001:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01) (prog-if 00 [Normal decode])
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PE-
        Latency: 0
        Interrupt: pin A routed to IRQ 122
        Region 0: Memory at 38500000 (64-bit, non-prefetchable) [size=32K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled] [32-bit]
        Memory behind bridge: 38400000-384fffff [size=1M] [32-bit]
        Prefetchable memory behind bridge: 38200000-383fffff [size=2M] [32-bit]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PE-
        BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: [80] Express (v2) Root Port (Slot-), IntMsgNum 0
                DevCap: MaxPayload 256 bytes, PhantFunc 0
                        ExtTag+ RBE+ TEE-IO-
                DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 256 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
                LnkCap: Port #1, Speed 8GT/s, Width x2, ASPM L0s L1, Exit Latency L0s <2us, L1 <8us
                        ClockPM- Surprise+ LLActRep+ BwNot+ ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- FltModeDis-
                LnkSta: Speed 8GT/s, Width x2
                        TrErr- Train- SlotClk+ DLActive+ BWMgmt- ABWMgmt-
                RootCap: CRSVisible+
                RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna+ CRSVisible+
                RootSta: PME ReqID 0000, PMEStatus- PMEPending-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
                         10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- LN System CLS Not Supported, TPHComp- ExtTPHComp- ARIFwd-
                         AtomicOpsCap: Routing- 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- ARIFwd-
                         AtomicOpsCtl: ReqEn- EgressBlck-
                         IDOReq- IDOCompl- LTR+ EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
                LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- Complian-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase+
                         EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported, FltMode-
        Capabilities: [e0] MSI: Enable+ Count=1/32 Maskable+ 64bit+
                Address: 0000000011310c00  Data: 0000
                Masking: fffffffe  Pending: 00000000
        Capabilities: [f8] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [100 v1] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [110 v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=3us PortTPowerOnTime=28us
                L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
                           T_CommonMode=3us LTR1.2_Threshold=37888ns
                L1SubCtl2: T_PwrOn=28us
        Capabilities: [200 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr- BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr- CorrIntErr- Head-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ CorrIntErr+ Head-
                AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
                RootCmd: CERptEn+ NFERptEn+ FERptEn+
                RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd-
                         FirstFatal- NonFatalMsg- FatalMsg- IntMsgNum 0
                ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000
        Capabilities: [300 v1] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn- PerformEqu-
                LaneErrStat: 0
        Kernel driver in use: pcieport

0001:01:00.0 Network controller: MEDIATEK Corp. Device 7991
        Subsystem: MEDIATEK Corp. Device 6639
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PE-
        Latency: 0
        Interrupt: pin A routed to IRQ 137
        Region 0: Memory at 38200000 (64-bit, prefetchable) [size=2M]
        Region 2: Memory at 38400000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: [80] Express (v2) Endpoint, IntMsgNum 0
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 0W TEE-IO-
                DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+ FLReset-
                        MaxPayload 256 bytes, MaxReadReq 256 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
                LnkCap: Port #1, Speed 8GT/s, Width x2, ASPM L0s L1, Exit Latency L0s <2us, L1 <8us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- FltModeDis-
                LnkSta: Speed 8GT/s, Width x2
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
                         10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- TPHComp- ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                         AtomicOpsCtl: ReqEn-
                         IDOReq- IDOCompl- LTR+ EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
                LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- Complian-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase+
                         EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported, FltMode-
        Capabilities: [e0] MSI: Enable+ Count=1/32 Maskable+ 64bit+
                Address: 0000000011310c00  Data: 0001
                Masking: fffffffe  Pending: 00000000
        Capabilities: [f8] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [100 v1] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [108 v1] Latency Tolerance Reporting
                Max snoop latency: 0ns
                Max no snoop latency: 0ns
        Capabilities: [110 v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=3us PortTPowerOnTime=28us
                L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
                           T_CommonMode=0us LTR1.2_Threshold=37888ns
                L1SubCtl2: T_PwrOn=28us
        Capabilities: [200 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr- BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr- CorrIntErr- Head-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ CorrIntErr+ Head-
                AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
        Capabilities: [300 v1] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn- PerformEqu-
                LaneErrStat: 0
        Kernel driver in use: mt7996e_hif
0003:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01) (prog-if 00 [Normal decode])
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PE-
        Latency: 0
        Interrupt: pin A routed to IRQ 116
        Region 0: Memory at 20300000 (64-bit, non-prefetchable) [size=32K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled] [32-bit]
        Memory behind bridge: 20200000-202fffff [size=1M] [32-bit]
        Prefetchable memory behind bridge: [disabled] [64-bit]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PE-
        BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: [80] Express (v2) Root Port (Slot-), IntMsgNum 0
                DevCap: MaxPayload 256 bytes, PhantFunc 0
                        ExtTag+ RBE+ TEE-IO-
                DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
                        RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 256 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
                LnkCap: Port #1, Speed 8GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <2us, L1 <8us
                        ClockPM- Surprise+ LLActRep+ BwNot+ ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- FltModeDis-
                LnkSta: Speed 8GT/s, Width x1
                        TrErr- Train+ SlotClk+ DLActive+ BWMgmt- ABWMgmt-
                RootCap: CRSVisible+
                RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna+ CRSVisible+
                RootSta: PME ReqID 0000, PMEStatus- PMEPending-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
                         10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- LN System CLS Not Supported, TPHComp- ExtTPHComp- ARIFwd-
                         AtomicOpsCap: Routing- 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- ARIFwd-
                         AtomicOpsCtl: ReqEn- EgressBlck-
                         IDOReq- IDOCompl- LTR+ EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
                LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- Complian-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase+
                         EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported, FltMode-
        Capabilities: [e0] MSI: Enable+ Count=1/32 Maskable+ 64bit+
                Address: 0000000011280c00  Data: 0000
                Masking: fffffffe  Pending: 00000000
        Capabilities: [f8] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [100 v1] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [110 v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=3us PortTPowerOnTime=28us
                L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
                           T_CommonMode=70us LTR1.2_Threshold=104448ns
                L1SubCtl2: T_PwrOn=28us
        Capabilities: [200 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr- BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr- CorrIntErr- Head-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ CorrIntErr+ Head-
                AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
                RootCmd: CERptEn+ NFERptEn+ FERptEn+
                RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd-
                         FirstFatal- NonFatalMsg- FatalMsg- IntMsgNum 0
                ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000
        Capabilities: [300 v1] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn- PerformEqu-
                LaneErrStat: 0
        Kernel driver in use: pcieport

0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308
        Subsystem: Qualcomm Technologies, Inc Device 0308
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PE-
        Interrupt: pin ? routed to IRQ 129
        Region 0: Memory at 20200000 (64-bit, non-prefetchable) [size=4K]
        Region 2: Memory at 20201000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D3 NoSoftRst+ PME-Enable+ DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable+ Count=8/32 Maskable+ 64bit+
                Address: 0000000011280c00  Data: 0008
                Masking: ffffff80  Pending: 00000000
        Capabilities: [70] Express (v2) Endpoint, IntMsgNum 0
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0W TEE-IO-
                DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 256 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 8GT/s, Width x2, ASPM L0s L1, Exit Latency L0s <1us, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- FltModeDis-
                LnkSta: Speed 8GT/s, Width x1 (downgraded)
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
                         10BitTagComp+ 10BitTagReq- OBFF Not Supported, ExtFmt- EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- TPHComp+ ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                         AtomicOpsCtl: ReqEn-
                         IDOReq- IDOCompl- LTR+ EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer+ 2Retimers+ DRS-
                LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- Complian-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase+
                         EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: Upstream Port, FltMode-
        Capabilities: [100 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr- BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+
                        ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBloc-
                        PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatB-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr- CorrIntErr- Head-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ CorrIntErr+ Head+
                AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
        Capabilities: [148 v1] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn- PerformEqu-
                LaneErrStat: 0
        Capabilities: [168 v1] Physical Layer 16.0 GT/s
                Phy16Sta: EquComplete- EquPhase1- EquPhase2- EquPhase3- LinkEquRequest-
        Capabilities: [18c v1] Lane Margining at the Receiver
                PortCap: Uses Driver-
                PortSta: MargReady- MargSoftReady-
        Capabilities: [19c v1] Transaction Processing Hints
                No steering table available
        Capabilities: [228 v1] Latency Tolerance Reporting
                Max snoop latency: 0ns
                Max no snoop latency: 0ns
        Capabilities: [230 v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=70us PortTPowerOnTime=0us
                L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
                           T_CommonMode=0us LTR1.2_Threshold=104448ns
                L1SubCtl2: T_PwrOn=28us
        Capabilities: [240 v1] Data Link Feature <?>
        Kernel driver in use: mhi-pci-generic

Sorry, I had to split the posting because the results were to big. But I posted them in that order as they occured in the command line...

I see you're being helped by someone much more knowledgeable than me :sweat_smile: (who has the same router as you),

@LS3434

so I'll follow your post out of personal interest, but I can't help you any further. :grinning_face:

I wish you a solution to the problem and a Merry Christmas. :grinning_face:

Ok, now we need to be able to send AT commands to the modem. In order to do that, you need to install a package called sms-tool. Look for it on the internet, cause it’s not a official openwrt package.

Edit: Now i noticed that you have a RM520NGLAP model. That means, it doesn’t have a USB mode. It is PCI Express only modem.

I found the sms-tool in my repositories which were installed when installing OpenWRT 24.10.5:

sms-tool	2023.09.21~1b6ca032-r1	9.49 KiB	SMS Tool for 3G/4G modem

I installed that - is it ok?

1 Like

Ok, so now try this command, we’ll see if modem responds to it, and post the result:

qmicli -d /dev/wwan0mbim0 --device-open-proxy --atr-send="ATI"
root@NordmannsRouter:~# qmicli -d /dev/wwan0mbim0 --device-open-proxy --atr-send
="ATI"
[19470.873399] mhi-pci-generic 0003:01:00.0: PME# disabled
[19470.878649] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[19473.151571] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x030817cb
[19473.158106] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[19473.164635] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
[19473.171156] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000000
[19473.177672] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[19473.184211] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[19473.190743] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[19473.197281] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[19473.203800] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[19473.210320] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[19473.216835] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[19473.223362] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x520117cb
[19473.229889] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[19473.236412] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[19473.242930] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[19473.249448] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[19473.256027] mhi-pci-generic 0003:01:00.0: PME# enabled
error: couldn't open the QmiDevice: Transaction timed out

So, this looks like it won’t accept any at commands. In my case i had to use rOOter software. It is based on OpenWRT, but it’s made for modems. You can send the at commands there, because modem will be recognized. You burn the image onto the sd card and boot it up. There is a section in modem > miscellaneous > at-commands or something like that.