NR500EA "c0 cnss: wlan en pin is not supported"

Hi.
My Wifi just don’t work anymore for no reason. One time before It just freeze and them I reboot and it’s gone. I tried with reset multiple times. I check “dmesg” and found this errors:

[   50.865433] c0 quec_wlan.init (3501): drop_caches: 3
[   51.106641] c0 NET: Registered protocol family 27
[   51.107986] c0 [enable_bb_ctxt] 0x1000
[   51.107994] c0 [enable_bb_ctxt] 0x1000
[   51.107999] c0 cnss: wlan en pin is not supported
[   51.108001] c0 cnss: wlan en pin is not supported
[   51.108223] c0 cnss: PCI device not probed yet
[   51.108336] c0 cnss: wlan en pin is not supported
[   51.108339] c0 cnss: wlan en pin is not supported

I check the command “lspci” and NO Device is found. Before this was the devices:

01:00.0 Class 0280: 17cb:1103
00:00.0 Class 0604: 16c3:abcd

I think it has to do with PCIe or WIFI (wlan-en-gpio). Ethernet works, although there’s less interfaces in “ifconfig” most sipa and vpcie gone. This is actual lsmod.

root@udx710-module:/# lsmod
Module                  Size  Used by
ax88179_178a           53248  0
mii                    16384  1 ax88179_178a
gpio_wdt_jbc           12288  1

It seems is something that has to do with PCIe (cnss) and WIFI (wlan-en-gpio). Any help I appreciate thanks in advance.

CPU:RG500UEAABxCOMSLICv3.4.2731.16.43
WIFI: FC06E
BOARD: NR500-WIFI6-V2.0

Sorry for late replay.
Could you provide the complete dmesg log.

Please try
find / -name “wlan.ko”
It seems that the dirver for FC06E is not on the device.

1 Like

No problem. Thank you for time and support. I can only get Dmesg log from Ethernet not fully complete but is attached. DMESG_UTF8.txt (51.2 KB)

It means that it is recognized. The driver should be wlan.ko and wlan_cnss_core_pcie.ko.
Please search it on the device.

I can see the
[ 47.443440] c1 wlan_cnss_core_pcie: loading out-of-tree module taints kernel.
Please check

lsmod | grep wlan
find /  -name "wlan.ko"
1 Like

The error refered is in quec_wlan.init file. So I did this…
Looking the file content and line errors:

root@udx710-module:/# cat etc/init.d/quec_wlan.init

Result: QUEC_WLAN_INIT.txt (8.6 KB)

running this file it outputs:

root@udx710-module:/# /etc/init.d/quec_wlan.init start
Starting quec wlan
rmmod: ERROR: Module wlan is not currently loaded
rmmod: ERROR: Module wlan_cnss_core_pcie is not currently loaded
modprobe: ERROR: could not insert 'wlan': Operation not permitted  <----
command failed: No such device (-19)
command failed: No such device (-19)
wlan0: ERROR while getting interface flags: No such device
wlan1: ERROR while getting interface flags: No such device
Line 8: invalid SSID 'NR-WiFi_826dc272df1c85e0162494c90bc66575'
1 errors found in configuration file '/tmp/etc/hostapd-wlan0.conf'
Failed to set up interface with /tmp/etc/hostapd-wlan0.conf
Failed to initialize interface
Line 8: invalid SSID 'NR-WiFi_5G_826dc272df1c85e0162494c90bc66575'
1 errors found in configuration file '/tmp/etc/hostapd-wlan1.conf'
Failed to set up interface with /tmp/etc/hostapd-wlan1.conf
Failed to initialize interface
interface wlan0 does not exist!
interface wlan1 does not exist!
root@udx710-module:/#

find / -name “wlan.ko”

root@udx710-module:/# find / -name "wlan.ko"
/lib/modules/4.14.98/wlan/wlan.ko
root@udx710-module:/#

the Wlan module exists also wlan_cnss_core_pcie!

root@udx710-module:/# modinfo wlan
filename:       /lib/modules/4.14.98/wlan/wlan.ko
description:    WLAN HOST DEVICE DRIVER
author:         Qualcomm Atheros, Inc.
license:        Dual BSD/GPL
depends:        wlan_cnss_core_pcie
name:           wlan
vermagic:       4.14.98 SMP preempt mod_unload aarch64
parm:           qdf_log_dump_at_kernel_enable:bool
parm:           qdf_log_flush_timer_period:uint
parm:           prealloc_disabled:byte
parm:           enable_dfs_chan_scan:int
parm:           enable_11d:int
parm:           country_code:charp
root@udx710-module:/#
root@udx710-module:~# modinfo wlan_cnss_core_pcie
filename:       /lib/modules/4.14.98/wlan/wlan_cnss_core_pcie.ko
license:        GPL v2
description:    Unified Platform Driver
license:        GPL v2
description:    QMI kernel enc/dec
version:        1.0
license:        GPL v2
description:    Diag Char Driver
srcversion:     533BB7E5866E52F63B9ACCB
alias:          pci:v000017CBd00001102sv*sd*bc*sc*i*
alias:          pci:v000017CBd00001103sv*sd*bc*sc*i*
alias:          pci:v000017CBd00001101sv*sd*bc*sc*i*
alias:          pci:v000017CBd00001100sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000ABCDsv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias:          of:N*T*Cqcom,cnss-sdioC*
alias:          of:N*T*Cqcom,cnss-sdio
alias:          of:N*T*Cqcom,cnss-qca6390C*
alias:          of:N*T*Cqcom,cnss-qca6390
alias:          of:N*T*Cqcom,cnssC*
alias:          of:N*T*Cqcom,cnss
alias:          of:N*T*Cqcom,cnss-qca6290C*
alias:          of:N*T*Cqcom,cnss-qca6290
alias:          of:N*T*Cqcom,cnssC*
alias:          of:N*T*Cqcom,cnss
alias:          of:N*T*Cqcom,cnss2C*
alias:          of:N*T*Cqcom,cnss2
depends:        
name:           wlan_cnss_core_pcie
vermagic:       4.14.98 SMP preempt mod_unload aarch64
parm:           pci_link_down_panic:Trigger kernel panic when PCI link down is detected (uint)
parm:           fbc_bypass:Bypass firmware download when loading WLAN driver (bool)
parm:           rddm_support:RDDM support or not (bool)
parm:           qmi_timeout:Timeout for QMI message in milliseconds (uint)
parm:           daemon_support:User space has cnss-daemon support or not (bool)
parm:           bdf_bypass:If BDF is not found, send dummy BDF to FW (bool)
parm:           wlan_en_gpio_num:Wlan en gpio number. (int)
parm:           qmi_bypass:Bypass QMI from platform driver (bool)
parm:           enable_waltest:Enable to handle firmware waltest (bool)
parm:           quirks:Debug quirks for the driver (ulong)
parm:           bd_file_type:Board data file type. (ulong)
parm:           rddm_panic:Trigger kernel panic when RDDM happens (bool)
parm:           poolsize:uint
parm:           poolsize_hdlc:uint
parm:           itemsize_mdm:uint
parm:           poolsize_mdm:uint
parm:           mhi_msg_lvl:dbg lvl (uint)
parm:           mhi_ipc_log_lvl:dbg lvl (uint)
parm:           debug_mask_mhi_xprt:int
parm:           debug_mask:int
root@udx710-module:~#

the “wlan” depends “wlan_cnss_core_pcie” it should be loaded 1st, I can see in do_ftm_start() from quec_wlan.init but this is the result:

root@udx710-module:~# insmod /lib/modules/4.14.98/wlan/wlan_cnss_core_pcie.ko 
insmod: ERROR: could not insert module /lib/modules/4.14.98/wlan/wlan_cnss_core_pcie.ko: Operation not permitted
root@udx710-module:~#

Dmesg result:

[ 1964.711721] c1 NET: Registered protocol family 27
[ 1964.723397] c1 [enable_bb_ctxt] 0x1000
[ 1964.723406] c1 [enable_bb_ctxt] 0x1000
[ 1964.723412] c1 cnss: wlan en pin is not supported
[ 1964.723414] c1 cnss: wlan en pin is not supported
[ 1964.723528] c1 cnss: PCI device not probed yet
[ 1964.723571] c1 cnss: wlan en pin is not supported
[ 1964.723573] c1 cnss: wlan en pin is not supported
[ 1964.723577] c1 unified_pdrv_init: updrv: failed to register cnss
[ 1964.724125] c1 IPC_RTR: ipc_router_mhi_xprt_deinit: mhi_xprt driver removed 0
[ 1964.750981] c1 NET: Unregistered protocol family 27
[ 1964.752698] c1 register platform driver failed, ret = -1

I am sorry I am not familar with the RG500U.
From the log it seems that the wlan_cnss_core_pcie already installed.
So please check
lsmod | grep wlan
make sure that both wlan_cnss_core_pcie.ko and wlan.ko have loaded.
Just check maybe you do not need the quec_wlan.init. We can just load the kernel on ourself.

I will try to find a RG500U and test it.

1 Like