WiFi falls off over time

Wifi works 10-20 minutes and then turns off. You need to do off and on again through nmcli. How to fix it?

Hello. Can you provide the dmesg?

Yes. dmesg after falling off wifi.

[ 5.440728] [dhd] dhd_module_init: in Dongle Host Driver, version 100.10.545.23 (r826445-20210723-1)
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd compiled on Mar 12 2022 at 07:35:50

[ 5.451916] [dhd] ======== dhd_wlan_init_plat_data ========
[ 5.455701] [WLAN_RFKILL]: rockchip_wifi_get_oob_irq: Enter
[ 5.460675] [dhd] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=96, oob_irq_flags=0x414
[ 5.464543] [dhd] dhd_wlan_init_gpio: WL_REG_ON=-1
[ 5.468316] [dhd] dhd_wifi_platform_load: Enter
[ 5.472050] [dhd] Power-up adapter ‘DHD generic adapter’
[ 5.476995] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ 5.480895] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 5.484797] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 5.488649] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 5.492504] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0]
[ 5.639964] [BT_RFKILL]: bt shut off power
[ 5.711908] rk-pcie 3c0000000.pcie: PCIe Linking… LTSSM is 0x0
[ 5.801873] [dhd] wifi_platform_bus_enumerate device present 1
[ 5.801882] [dhd] ======== Card detection to detect SDIO card! ========
[ 5.801886] mmc2:mmc host rescan start!
[ 5.818135] [dhd] bcmsdh_register: register client driver
[ 5.822168] [dhd] bcmsdh_sdmmc_probe: Enter num=1
[ 5.829005] [dhd] bcmsdh_sdmmc_probe: Enter num=2
[ 5.829013] [dhd] bus num (host idx)=2, slot num (rca)=1
[ 5.829017] [dhd] found adapter info ‘DHD generic adapter’
[ 5.829088] [dhd] sdioh_attach: set sd_f2_blocksize 256
[ 5.829131] [dhd] sdioh_attach: sd clock rate = 0
[ 5.829337] [dhd] dhdsdio_probe : no mutex held. set lock
[ 5.829426] [dhd] F1 signature read @0x18000000=0x15264345
[ 5.834056] [dhd] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x6 pkg:0x2
[ 5.856627] [dhd] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[ 5.864580] [dhd] dhd_conf_set_chiprev : devid=0xa9bf, chip=0x4345, chiprev=6
[ 5.872089] 8021q: 802.1Q VLAN Support v1.8
[ 5.872292] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 5.872300] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 5.872303] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 5.876110] [dhd] dhd_log_dump_init: kernel log buf size = 256KB; logdump_prsrv_tailsize = 80KB; limit prsrv tail size to = 38KB
[ 5.879847] [dhd] dhd_attach(): thread:dhd_watchdog_thread:145 started
[ 5.894795] [dhd] dhd_attach(): thread:dhd_dpc:147 started
[ 5.897995] [dhd] dhd_attach(): thread:dhd_rxf:14a started
[ 5.900871] [dhd] dhd_deferred_work_init: work queue initialized
[ 5.903715] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 2
[ 5.907083] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 5.910584] [dhd] get_mem_val_from_file: File [/data/misc/wifi/.memdump.info] doesn’t exist
[ 5.915605] [dhd] dhd_get_memdump_info: MEMDUMP ENABLED = 3
[ 5.915685] [dhd] sdioh_cis_read: func_cis_ptr[0]=0x10ac
[ 5.927175] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[ 5.927282] [dhd] Dongle Host Driver, version 100.10.545.23 (r826445-20210723-1)
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd compiled on Mar 12 2022 at 07:35:50

[ 5.973082] RTL8211F Gigabit Ethernet stmmac-1:00: attached PHY driver [RTL8211F Gigabit Ethernet] (mii_bus:phy_addr=stmmac-1:00, irq=POLL)
[ 6.000624] dwmac4: Master AXI performs any burst length
[ 6.000648] rk_gmac-dwmac fe010000.ethernet eth0: No Safety Features support found
[ 6.000674] rk_gmac-dwmac fe010000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 6.001579] rk_gmac-dwmac fe010000.ethernet eth0: registered PTP clock
[ 6.005500] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.019439] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 6.022957] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 6.025439] [dhd] Register interface [wlan0] MAC: 14:13:33:2f:85:23

[ 6.029755] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 6.032920] [dhd] dhd_dbg_detach_pkt_monitor, 2099
[ 6.039268] [dhd] dhd_bus_devreset: == Power OFF ==
[ 6.042850] [dhd] dhd_bus_stop: making DHD_BUS_DOWN
[ 6.046366] [dhd] bcmsdh_oob_intr_unregister: Enter
[ 6.046370] [dhd] bcmsdh_oob_intr_unregister: irq is not registered
[ 6.046386] [dhd] dhd_bus_devreset: making dhdpub up FALSE
[ 6.046394] [dhd] dhd_txglom_enable: enable 0
[ 6.046400] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 6.062425] [dhd] dhd_bus_devreset: WLAN OFF DONE
[ 6.062589] [dhd] wifi_platform_set_power = 0, delay: 0 msec
[ 6.069282] [dhd] ======== PULL WL_REG_ON(-1) LOW! ========
[ 6.072767] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 6.072833] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 6.079495] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[ 6.079513] [dhd] dhdsdio_probe : the lock is released.
[ 6.086527] [dhd] dhd_module_init: Exit err=0
[ 6.139924] [dhd][wlan0] dhd_open : Enter
[ 6.143301] [dhd] Dongle Host Driver, version 100.10.545.23 (r826445-20210723-1)
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd compiled on Mar 12 2022 at 07:35:50

[ 6.152923] [dhd] dhd_open : no mutex held. set lock
[ 6.156149] [dhd][wlan0] wl_android_wifi_on : in g_wifi_on=0
[ 6.159431] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ 6.162709] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 6.165966] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 6.169176] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 6.172359] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0]
[ 6.482029] sdio_reset_comm():
[ 6.501876] mmc_host mmc2: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0)
[ 6.521563] mmc_host mmc2: Bus speed (slot 0) = 375000Hz (slot req 100000Hz, actual 93750HZ div = 2)
[ 6.556397] mmc_host mmc2: Bus speed (slot 0) = 375000Hz (slot req 375000Hz, actual 375000HZ div = 0)
[ 6.580903] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[ 6.586866] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 6.592744] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 6.599832] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[ 6.604820] mmc2: queuing unknown CIS tuple 0x81 (1 bytes)
[ 6.672155] mmc_host mmc2: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[ 6.725189] rk-pcie 3c0000000.pcie: PCIe Linking… LTSSM is 0x0
[ 6.812435] dwmmc_rockchip fe2c0000.dwmmc: Successfully tuned phase to 195
[ 6.820366] [dhd] sdioh_start: set sd_f2_blocksize 256
[ 6.828946] [dhd] dhd_bus_devreset: == Power ON ==
[ 6.836986] [dhd] F1 signature read @0x18000000=0x15264345
[ 6.848710] [dhd] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x6 pkg:0x2
[ 6.855634] [dhd] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[ 6.861490] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 6.867322] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[ 6.876218] [dhd] dhd_conf_read_config : Ignore config file /vendor/etc/firmware/config.txt
[ 6.880334] [dhd] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm43455c0_ag.bin
[ 6.884440] [dhd] dhd_conf_set_path_params : Final nv_path=/vendor/etc/firmware/nvram_ap6255.txt
[ 6.888524] [dhd] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm43455c0_ag.blob
[ 6.892660] [dhd] dhd_conf_set_path_params : Final conf_path=/vendor/etc/firmware/config.txt
[ 6.897693] [dhd] dhd_os_open_image1: /vendor/etc/firmware/fw_bcm43455c0_ag.bin (617600 bytes) open success
[ 6.968925] [dhd] dhd_os_open_image1: /vendor/etc/firmware/nvram_ap6255.txt (2200 bytes) open success
[ 6.973850] [dhd] NVRAM version: AP6255_NVRAM_V1.1.6_05172017.txt
[ 6.978484] [dhd] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[ 7.065959] [dhd] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[ 7.070693] [dhd] bcmsdh_oob_intr_register: HW_OOB irq=96 flags=0x4
[ 7.075340] [dhd] get_mem_val_from_file: File [/data/misc/wifi/.memdump.info] doesn’t exist
[ 7.079845] [dhd] dhd_get_memdump_info: MEMDUMP ENABLED = 3
[ 7.084605] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 2 -> mode 1
[ 7.089760] [dhd] dhd_apply_default_clm: Ignore clm file /vendor/etc/firmware/clm_bcm43455c0_ag.blob
[ 7.096234] [dhd] Firmware up: op_mode=0x0005, MAC=14:13:33:2f:85:23
[ 7.103968] [dhd] dhd_preinit_ioctls Set scancache failed -23
[ 7.108217] [dhd] dhd_preinit_ioctls: event_log_max_sets: 26 ret: -23
[ 7.119672] [dhd] Driver: 100.10.545.23 (r826445-20210723-1)
Firmware: wl0: Oct 23 2017 14:52:12 version 7.45.96.6 (2af1ebc@sh-git) ® FWID 01-bc98efa1 es7.c5.n4.a3
CLM: 7.14.8 (2014-09-02 03:05:33)
[ 7.131335] [dhd] dhd_preinit_ioctls wlc_ver failed -23
[ 7.135448] [dhd] dhd_txglom_enable: enable 1
[ 7.139667] [dhd] dhd_conf_set_txglom_params : txglom_mode=copy
[ 7.144342] [dhd] dhd_conf_set_txglom_params : txglomsize=36, deferred_tx_len=0
[ 7.149058] [dhd] dhd_conf_set_txglom_params : txinrx_thres=128, dhd_txminmax=-1
[ 7.153345] [dhd] dhd_conf_set_txglom_params : tx_max_offset=0, txctl_tmo_fix=300
[ 7.157130] [dhd] dhd_conf_get_disable_proptx : fw_proptx=1, disable_proptx=-1
[ 7.161787] [dhd] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
[ 7.166609] [dhd] dhd_pno_init: Support Android Location Service
[ 7.190447] [dhd] dhd_rtt_init : FTM is supported
[ 7.195366] [dhd] dhd_wl_ioctl_get_intiovar: get int iovar wnm_bsstrans_resp failed, ERR -23
[ 7.198803] [dhd] failed to get wnm_bsstrans_resp
[ 7.202770] [dhd] failed to set WNM capabilities
[ 7.220625] [dhd] dhd_preinit_ioctls: Failed to get preserve log # !
[ 7.225884] [dhd] dhd_conf_map_country_list : CN/38
[ 7.230789] [dhd] dhd_conf_set_country : set country CN, revision 38
[ 7.238380] [dhd] dhd_conf_set_country : Country code: CN (CN/38)
[ 7.247437] [dhd][wlan0] wl_android_wifi_on : Success
[ 7.292645] [dhd] dhd_open : the lock is released.
[ 7.296674] [dhd][wlan0] dhd_open : Exit ret=0
[ 7.305649] [dhd][wlan0] dhd_pri_open : tx queue started
[ 7.451532] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 7.452015] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 7.452561] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 7.452747] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 7.466875] file system registered
[ 7.504427] read descriptors
[ 7.507138] read strings
[ 7.765129] rk-pcie 3c0000000.pcie: PCIe Linking… LTSSM is 0x1
[ 7.840808] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 7.841565] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 7.969599] [dhd] P2P interface registered
[ 7.969623] [dhd] wl_cfgp2p_add_p2p_disc_if: wdev: 00000000d9a97c69, wdev->net: (null)
[ 7.989568] [dhd] WLC_E_IF: NO_IF set, event Ignored
[ 8.006723] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 8.010662] [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 0, bssidx: 0
[ 8.337281] broken atomic modeset userspace detected, disabling atomic
[ 8.531663] dwc3 fcc00000.dwc3: failed to enable ep0out
[ 8.536134] [drm:dw_hdmi_rockchip_set_property] ERROR failed to set rockchip hdmi connector property hdmi_color_depth_capacity
[ 8.536188] [drm:dw_hdmi_rockchip_set_property] ERROR failed to set rockchip hdmi connector property hdmi_output_mode_capacity
[ 8.778527] rk-pcie 3c0000000.pcie: PCIe Linking… LTSSM is 0x0
[ 9.795127] rk-pcie 3c0000000.pcie: PCIe Linking… LTSSM is 0x0
[ 10.487172] [dhd][wlan0] wl_cfg80211_connect : Connecting with be:07:99:00:df:f9 ssid “mordor”, len (6), sec=wpa2psk/mfpn/aes, channel=6, rssi=-40

[ 10.491849] [dhd] dhd_dbg_start_pkt_monitor, 1621
[ 10.530495] [dhd][wlan0] wl_iw_event : Link UP with be:07:99:00:df:f9
[ 10.530538] [dhd][wlan0] wl_ext_iapsta_event : [S] Link UP with be:07:99:00:df:f9
[ 10.532998] [dhd][wlan0] wl_bss_connect_done : Report connect result - connection succeeded
[ 10.538726] [dhd][wlan0] wl_add_keyext : key index (0)
[ 10.543251] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 10.805070] rk-pcie 3c0000000.pcie: PCIe Linking… LTSSM is 0x0
[ 11.818365] rk-pcie 3c0000000.pcie: PCIe Link Fail
[ 11.818393] rk-pcie 3c0000000.pcie: failed to initialize host
[ 12.207145] FAT-fs (mmcblk0p1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 19.518287] usb 5-1.1: new full-speed USB device number 4 using xhci-hcd
[ 19.610913] usb 5-1.1: New USB device found, idVendor=0eef, idProduct=0005, bcdDevice= 2.00
[ 19.610966] usb 5-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 19.610995] usb 5-1.1: Product: WS170120
[ 19.611021] usb 5-1.1: Manufacturer: WaveShare
[ 19.611045] usb 5-1.1: SerialNumber: k\xc2\x94A35302346
[ 19.694910] input: WaveShare WS170120 as /devices/platform/usbdrd/fcc00000.dwc3/xhci-hcd.4.auto/usb5/5-1/5-1.1/5-1.1:1.0/0003:0EEF:0005.0003/input/input4
[ 19.751743] hid-multitouch 0003:0EEF:0005.0003: input,hidraw2: USB HID v1.10 Device [WaveShare WS170120] on usb-xhci-hcd.4.auto-1.1/input0
[ 37.730906] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 37.731199] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 37.731525] [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[ 1783.890842] [dhd] INTERNAL ERROR: FIRMWARE HALTED : set BUS DOWN
[ 1783.892976] [dhd] CONSOLE: supported)
[ 1783.893013] [dhd] CONSOLE: 000000.208 wl0: wl_open
[ 1783.893035] [dhd] CONSOLE: 000000.230 wl0: unable to find iovar “scanmac”
[ 1783.893056] [dhd] CONSOLE: 000000.230 wl0: wlc_iovar_op: scanmac BCME -23 (Unsupported)
[ 1783.893075] [dhd] CONSOLE: 000000.235 wl0: wl_open
[ 1783.893095] [dhd] CONSOLE: 000000.247 wl0: wlc_phy_set_regtbl_on_femctrl: FIXME bt_coex
[ 1783.893116] [dhd] CONSOLE: 000000.253 wl0: wlc_enable_probe_req: state down, deferring setting of host flags
[ 1783.893135] [dhd] CONSOLE: 000000.274 wl0: unable to find iovar “scan_ver”
[ 1783.893156] [dhd] CONSOLE: 000000.274 wl0: wlc_iovar_op: scan_ver BCME -23 (Unsupported)
[ 1783.893174] [dhd] CONSOLE: 000000.275 wl0: unable to find iovar “scan_ver”
[ 1783.893194] [dhd] CONSOLE: 000000.275 wl0: wlc_iovar_op: scan_ver BCME -23 (Unsupported)
[ 1783.893212] [dhd] CONSOLE: 000001.254 Random data: A59D4B1C
[ 1783.893231] [dhd] CONSOLE: 000003.466 wl0: unable to find iovar “wsec_info”
[ 1783.893251] [dhd] CONSOLE: 000003.466 wl0: wlc_iovar_op: wsec_info BCME -23 (Unsupported)
[ 1783.893269] [dhd] CONSOLE: 000003.511 wl0: link up (wl0)
[ 1783.893287] [dhd] CONSOLE: 000003.521 wl0: unable to find iovar “wsec_info”
[ 1783.893306] [dhd] CONSOLE: 000003.521 wl0: wlc_iovar_op: wsec_info BCME -23 (Unsupported)
[ 1783.893326] [dhd] CONSOLE: 000003.524 wl0: unable to find iovar “wsec_info”
[ 1783.893345] [dhd] CONSOLE: 000003.524 wl0: wlc_iovar_op: wsec_info BCME -23 (Unsupported)
[ 1783.893364] [dhd] CONSOLE: 000003.544 wl0.0: wlc_send_bar: seq 0x1 tid 7
[ 1783.893382] [dhd] CONSOLE: 000003.611 wl0.0: wlc_send_bar: seq 0x3 tid 0
[ 1783.893402] [dhd] CONSOLE: 000005.252 wl0.0: wlc_send_bar: seq 0x1 tid 4
[ 1783.893420] [dhd] CONSOLE: 000073.044 wl0.0: wlc_send_bar: seq 0x1 tid 2
[ 1783.893438] [dhd] CONSOLE: 001776.034 internal error, 3007107888/1776034
[ 1783.893455] [dhd] CONSOLE: 001776.034
[ 1783.893472] [dhd] CONSOLE: FWID 01-bc98efa1
[ 1783.893489] [dhd] CONSOLE: flags 1
[ 1783.893505] [dhd] CONSOLE: 001776.034
[ 1783.893536] [dhd] CONSOLE: TRAP 4(25fd28): pc 1b5c7e, lr 1b5c7b, sp 25fd80, cpsr 6000019f, spsr 600001bf
[ 1783.893555] [dhd] CONSOLE: 001776.034 dfsr 80d, dfar 0
[ 1783.893575] [dhd] CONSOLE: 001776.034 r0 2e, r1 18000300, r2 1, r3 0, r4 259a10, r5 b33cd330, r6 243be6
[ 1783.893595] [dhd] CONSOLE: 001776.034 r7 a3, r8 1, r9 2203b8, r10 2203b8, r11 0, r12 0
[ 1783.893612] [dhd] CONSOLE: 001776.034
[ 1783.893631] [dhd] CONSOLE: sp+0 00259a10 002567b8 00259a10 00241d10
[ 1783.893649] [dhd] CONSOLE: 001776.034 sp+10 00241cfc b33cd330 00243c04 00259a10
[ 1783.893666] [dhd] CONSOLE:
[ 1783.893683] [dhd] CONSOLE: 001776.034 sp+34 001b632d
[ 1783.893700] [dhd] CONSOLE: 001776.034 sp+84 001b6b7d
[ 1783.893718] [dhd] CONSOLE: 001776.034 sp+c4 00002805
[ 1783.893735] [dhd] CONSOLE: 001776.034 sp+f4 001b19a1
[ 1783.893752] [dhd] CONSOLE: 001776.034 sp+fc 0000860b
[ 1783.893769] [dhd] CONSOLE: 001776.034 sp+13c 001b91f9
[ 1783.893786] [dhd] CONSOLE: 001776.034 sp+154 001dfd01
[ 1783.893803] [dhd] CONSOLE: 001776.034 sp+17c 001c40d3
[ 1783.893821] [dhd] CONSOLE: 001776.034 sp+1b4 001caf37
[ 1783.893839] [dhd] CONSOLE: 001776.034 sp+1dc 001a991d
[ 1783.893856] [dhd] CONSOLE: 001776.034 sp+1ec 001a9959
[ 1783.893873] [dhd] CONSOLE: 001776.034 sp+1fc 0019a56d
[ 1783.893891] [dhd] CONSOLE: 001776.034 sp+200 0019ac3d
[ 1783.893908] [dhd] CONSOLE: 001776.034 sp+20c 00199d27
[ 1783.893925] [dhd] CONSOLE: 001776.034 sp+218 000001df
[ 1783.893942] [dhd] CONSOLE: 001776.034 sp+258 00008221
[ 1783.893967] [dhd] dhdsdio_checkdied: msgtrace address : 0x00000000
console address : 0x0025DEBC
Assrt not built in dongle
Dongle trap type 0x4 @ epc 0x1b5c7e, cpsr 0x6000019f, spsr 0x600001bf, sp 0x25fd80,lp 0x1b5c7b, rpc 0x1b5c7e Trap offset 0x25fd28, r0 0x2e, r1 0x18000300, r2 0x1, r3 0x0, r4 0x259a10, r5 0xb33cd330, r6 0x243be6, r7 0xa3

[ 1783.894562] [dhd] Dump dongle memory
[ 1783.973944] [dhd] -------- memdump: buf(va)=ffffffc033800000, buf(pa)=33800000, bufsize=819200
[ 1783.973976] [dhd] -------- dlb_buf[0]: buf(va)=ffffff8000ec4c98, buf(pa)=fffffffff90c4c98, bufsize=1048576
[ 1783.973991] [dhd] -------- dlb_buf[0] buffer: buf(va)=ffffffc054400000, buf(pa)=54400000, bufsize=284131
[ 1783.974005] [dhd] -------- dlb_buf[0] present: buf(va)=ffffffc0544456b3, buf(pa)=544456b3, bufsize=284131
[ 1783.974019] [dhd] -------- dlb_buf[0] front: buf(va)=ffffffc054400000, buf(pa)=54400000, bufsize=284131
[ 1783.974032] [dhd] -------- dlb_buf[1]: buf(va)=ffffff8000ec4ce8, buf(pa)=fffffffff90c4ce8, bufsize=524288
[ 1783.974045] [dhd] -------- dlb_buf[1] buffer: buf(va)=ffffffc054500000, buf(pa)=54500000, bufsize=0
[ 1783.974058] [dhd] -------- dlb_buf[1] present: buf(va)=ffffffc054500000, buf(pa)=54500000, bufsize=0
[ 1783.974071] [dhd] -------- dlb_buf[1] front: buf(va)=ffffffc054500000, buf(pa)=54500000, bufsize=0
[ 1783.974084] [dhd] -------- dlb_buf[2]: buf(va)=ffffff8000ec4d38, buf(pa)=fffffffff90c4d38, bufsize=8192
[ 1783.974096] [dhd] -------- dlb_buf[2] buffer: buf(va)=ffffffc0557b2000, buf(pa)=557b2000, bufsize=0
[ 1783.974109] [dhd] -------- dlb_buf[2] present: buf(va)=ffffffc0557b2000, buf(pa)=557b2000, bufsize=0
[ 1783.974122] [dhd] -------- dlb_buf[2] front: buf(va)=ffffffc0557b2000, buf(pa)=557b2000, bufsize=0
[ 1783.974135] [dhd] -------- concise_dbg_buf: buf(va)=ffffffc055ff8000, buf(pa)=55ff8000, bufsize=16384
[ 1783.974147] [dhd] dhd_schedule_memdump: scheduling mem dump…
[ 1783.974183] [dhd] Not doing bus down untill memdump done
[ 1783.974245] [dhd] dhd_mem_dump: ENTER, memdump type 3
[ 1783.974259] [dhd] dhd_mem_dump: memdump type 3
[ 1783.974271] [dhd] Driver: 100.10.545.23 (r826445-20210723-1)
Firmware: wl0: Oct 23 2017 14:52:12 version 7.45.96.6 (2af1ebc@sh-git) ® FWID 01-bc98efa1 es7.c5.n4.a3
CLM: 7.14.8 (2014-09-02 03:05:33)
Chip: 4345 Rev 6
[ 1783.974286] [dhd] MAC 14:13:33:2f:85:23
[ 1783.974293] [dhd] dhd_mem_dump: call BUG_ON
[ 1783.974302] [dhd] dhd_mem_dump: No BUG ON, memdump type 3
[ 1783.974315] [dhd] dhd_mem_dump: EXIT
[ 1790.079016] [dhd] dhd_bus_rxctl: resumed on timeout, INT status=0x20410002
[ 1790.079081] [dhd] dhd_bus_rxctl: rxcnt_timeout=1, rxlen=0
[ 1790.083994] [dhd] Dump dongle memory
[ 1790.159775] [dhd] -------- memdump: buf(va)=ffffffc033800000, buf(pa)=33800000, bufsize=819200
[ 1790.159804] [dhd] -------- dlb_buf[0]: buf(va)=ffffff8000ec4c98, buf(pa)=fffffffff90c4c98, bufsize=1048576
[ 1790.159819] [dhd] -------- dlb_buf[0] buffer: buf(va)=ffffffc054400000, buf(pa)=54400000, bufsize=286046
[ 1790.159833] [dhd] -------- dlb_buf[0] present: buf(va)=ffffffc054445e2e, buf(pa)=54445e2e, bufsize=286046
[ 1790.159846] [dhd] -------- dlb_buf[0] front: buf(va)=ffffffc054400000, buf(pa)=54400000, bufsize=286046
[ 1790.159859] [dhd] -------- dlb_buf[1]: buf(va)=ffffff8000ec4ce8, buf(pa)=fffffffff90c4ce8, bufsize=524288
[ 1790.159872] [dhd] -------- dlb_buf[1] buffer: buf(va)=ffffffc054500000, buf(pa)=54500000, bufsize=0
[ 1790.159885] [dhd] -------- dlb_buf[1] present: buf(va)=ffffffc054500000, buf(pa)=54500000, bufsize=0
[ 1790.159898] [dhd] -------- dlb_buf[1] front: buf(va)=ffffffc054500000, buf(pa)=54500000, bufsize=0
[ 1790.159910] [dhd] -------- dlb_buf[2]: buf(va)=ffffff8000ec4d38, buf(pa)=fffffffff90c4d38, bufsize=8192
[ 1790.159923] [dhd] -------- dlb_buf[2] buffer: buf(va)=ffffffc0557b2000, buf(pa)=557b2000, bufsize=0
[ 1790.159935] [dhd] -------- dlb_buf[2] present: buf(va)=ffffffc0557b2000, buf(pa)=557b2000, bufsize=0
[ 1790.159948] [dhd] -------- dlb_buf[2] front: buf(va)=ffffffc0557b2000, buf(pa)=557b2000, bufsize=0
[ 1790.159960] [dhd] -------- concise_dbg_buf: buf(va)=ffffffc055ff8000, buf(pa)=55ff8000, bufsize=16384
[ 1790.159972] [dhd] dhd_schedule_memdump: scheduling mem dump…
[ 1790.160011] [dhd] dhd_check_hang: Event HANG send up due to re=1 te=0 e=-110 s=2
[ 1790.160026] [dhd] Driver: 100.10.545.23 (r826445-20210723-1)
Firmware: wl0: Oct 23 2017 14:52:12 version 7.45.96.6 (2af1ebc@sh-git) ® FWID 01-bc98efa1 es7.c5.n4.a3
CLM: 7.14.8 (2014-09-02 03:05:33)
Chip: 4345 Rev 6
[ 1790.160041] [dhd] MAC 14:13:33:2f:85:23
[ 1790.160055] [dhd] dhd_os_send_hang_message: Event HANG send up due to re=1 te=0 s=2
[ 1790.160068] [dhd] Driver: 100.10.545.23 (r826445-20210723-1)
Firmware: wl0: Oct 23 2017 14:52:12 version 7.45.96.6 (2af1ebc@sh-git) ® FWID 01-bc98efa1 es7.c5.n4.a3
CLM: 7.14.8 (2014-09-02 03:05:33)
Chip: 4345 Rev 6
[ 1790.160081] [dhd] MAC 14:13:33:2f:85:23
[ 1790.160092] [dhd] dhd_check_hang: Event HANG send up due to re=1 te=0 e=-110 s=2
[ 1790.160104] [dhd] Driver: 100.10.545.23 (r826445-20210723-1)
Firmware: wl0: Oct 23 2017 14:52:12 version 7.45.96.6 (2af1ebc@sh-git) ® FWID 01-bc98efa1 es7.c5.n4.a3
CLM: 7.14.8 (2014-09-02 03:05:33)
Chip: 4345 Rev 6
[ 1790.160116] [dhd] MAC 14:13:33:2f:85:23
[ 1790.160159] [dhd] dhd_mem_dump: ENTER, memdump type 15
[ 1790.160174] [dhd] dhd_mem_dump: memdump type 15
[ 1790.160185] [dhd] Driver: 100.10.545.23 (r826445-20210723-1)
Firmware: wl0: Oct 23 2017 14:52:12 version 7.45.96.6 (2af1ebc@sh-git) ® FWID 01-bc98efa1 es7.c5.n4.a3
CLM: 7.14.8 (2014-09-02 03:05:33)
Chip: 4345 Rev 6
[ 1790.160199] [dhd] MAC 14:13:33:2f:85:23
[ 1790.160206] [dhd] dhd_mem_dump: call BUG_ON
[ 1790.160216] [dhd] dhd_mem_dump: No BUG ON, memdump type 15
[ 1790.160229] [dhd] dhd_mem_dump: EXIT
[ 1790.160266] [dhd] CFG80211-ERROR) wl_cfg80211_hang : In : chip crash eventing, reason=0x8002
[ 1790.160300] [dhd] ndev->name : wlan0 dev close
[ 1790.160434] [dhd][wlan0] wl_cfg80211_disconnect : Reason 3, act 1
[ 1790.160449] [dhd] dhd_dbg_stop_pkt_monitor, 1859
[ 1790.160477] [dhd] dhd_prot_ioctl : bus is down. we have nothing to do - bs: 2, has: 1
[ 1790.160502] [dhd] CFG80211-ERROR) wl_cfg80211_disconnect : error (-1)
[ 1790.160515] [dhd] CFG80211-ERROR) wl_cfg80211_disconnect : Clearing disconnect IEs
[ 1790.160884] [dhd][wlan0] dhd_pri_stop : tx queue stopped
[ 1790.160904] [dhd][wlan0] dhd_stop : Enter
[ 1790.160914] [dhd] dhd_stop: ######### dhd_stop called for ifidx=0 #########
[ 1790.160928] [dhd] dhd_stop: making dhdpub up FALSE
[ 1790.160987] [dhd] dhd_prot_ioctl : bus is down. we have nothing to do - bs: 2, has: 1
[ 1790.161012] [dhd] CFG80211-ERROR) wl_notifier_change_state : wlan0:error (-1)
[ 1790.161025] [dhd] dhd_prot_ioctl : bus is down. we have nothing to do - bs: 2, has: 1
[ 1790.161044] [dhd] CFG80211-ERROR) wl_cfg80211_update_power_mode : error (-1)
[ 1790.161061] [dhd] dhd_prot_ioctl : bus is down. we have nothing to do - bs: 2, has: 1
[ 1790.161185] [dhd] dhd_prot_ioctl : bus is down. we have nothing to do - bs: 2, has: 1
[ 1790.161211] [dhd] CFGP2P-ERROR) wl_cfgp2p_disable_discovery : unable to set WL_P2P_DISC_ST_SCAN
[ 1790.161244] [dhd] dhd_prot_ioctl : bus is down. we have nothing to do - bs: 2, has: 1
[ 1790.161267] [dhd] dhd_prot_ioctl : bus is down. we have nothing to do - bs: 2, has: 1
[ 1790.161286] [dhd] CFGP2P-ERROR) wl_cfgp2p_set_discovery : p2p_disc 0 error -1
[ 1790.161331] [dhd] CFG80211-ERROR) wl_cfgp2p_down : Clean up the p2p discovery IF
[ 1790.205289] [dhd] CFGP2P-ERROR) wl_cfgp2p_del_p2p_disc_if : P2P interface unregistered
[ 1790.205338] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 1 -> mode 0
[ 1790.205354] [dhd][wlan0] wl_android_wifi_off : in g_wifi_on=1, on_failure=1
[ 1790.205366] [dhd] dhd_prot_ioctl : bus is down. we have nothing to do - bs: 2, has: 1
[ 1790.205390] [dhd] dhd_dbg_detach_pkt_monitor, 2099
[ 1790.205400] [dhd] dhd_bus_devreset: == Power OFF ==
[ 1790.205414] [dhd] dhd_bus_stop: making DHD_BUS_DOWN
[ 1790.205474] [dhd] bcmsdh_oob_intr_unregister: Enter
[ 1790.205511] [dhd] dhd_bus_devreset: making dhdpub up FALSE
[ 1790.205521] [dhd] dhd_txglom_enable: enable 0
[ 1790.205529] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 1790.205536] [dhd] dhd_bus_devreset: WLAN OFF DONE
[ 1790.205574] [dhd] wifi_platform_set_power = 0, delay: 0 msec
[ 1790.205585] [dhd] ======== PULL WL_REG_ON(-1) LOW! ========
[ 1790.205593] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 1790.205613] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 1790.205621] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[ 1790.205627] [dhd][wlan0] wl_android_wifi_off : out
[ 1790.245267] [dhd][wlan0] dhd_stop : Exit

I understand that he goes to sleep. how to disable this?

Please refer this post to disable wifi PM mode:

It doesn’t work cm3

Hi.

Would love to know if there is a fix to this issue. My CM3’s wifi also falls off after sometime. Jack’s method doesn’t work for me.

My CM3 has a CM256SM module.

Please try the following steps.

1.Add Radxa APT testing. Like Debian buster

Modify file /etc/apt/sources.list.d/apt-radxa-com.list

# cat /etc/apt/sources.list.d/apt-radxa-com.list 
deb http://apt.radxa.com/buster-stable/ buster main
deb http://apt.radxa.com/buster-testing/ buster main

2.Update kernel (>=4.19.193-47) and broadcom-wifibt-firmware (>=2.0)

$ sudo su
# apt update
# apt install -y linux-4.19-rock-3-latest broadcom-wifibt-firmware

3.Add one blacklist.conf for bcmdhd module via the following command.

# echo "blacklist bcmdhd" >> /etc/modprobe.d/blacklist.conf

4.Reboot OS.

Yes, that seems to fix the problem.

Thanks.