Hi,
I'm trying to port the AP6256 Wifi module to a board that uses i.MX 8M Mini.
When I use in kernel 4.9, wifi module works well. But I use it in kernel 5.15, it hang when I run
ifconfig wlan0 up
This is my log with kernel 4.9 (Wifi module works well)
root@mys-8mmx:~# ifconfig wlan0 up
[ 69.855899] [dhd] dhd_open: Enter wlan0
[ 69.859776] [dhd] dhd_open : no mutex held. set lock
[ 69.864775] [dhd]
[ 69.864775] Dongle Host Driver, version 100.10.545.12 (r826445-20200708-1)
[ 69.873672] [dhd-wlan0] wl_android_wifi_on : in g_wifi_on=0
[ 69.879272] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ 69.885131] [dhd] ======== PULL WL_REG_ON(42) HIGH! ========
[ 70.279593] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 70.292059] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 70.303921] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 70.320842] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 70.340306] mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
[ 70.638913] [dhd] sdioh_start: set sd_f2_blocksize 256
[ 70.644964] [dhd]
[ 70.644964]
[ 70.644964] dhd_bus_devreset: == Power ON ==
[ 70.652862] [dhd] F1 signature read @0x18000000=0x15294345
[ 70.661067] [dhd] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x9 pkg:0x2
[ 70.668487] [dhd] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[ 70.675949] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 70.681240] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[ 70.689418] [dhd] dhd_conf_read_config : Ignore config file /lib/firmware/bcmd/config.txt
[ 70.697650] [dhd] dhd_conf_set_path_params : Final fw_path=/lib/firmware/bcmd/fw_bcm43456c5_ag_apsta.bin
[ 70.707146] [dhd] dhd_conf_set_path_params : Final nv_path=/lib/firmware/bcmd/nvram_ap6256.txt
[ 70.715765] [dhd] dhd_conf_set_path_params : Final clm_path=/lib/firmware/bcmd/clm_bcm43456c5_ag.blob
[ 70.725012] [dhd] dhd_conf_set_path_params : Final conf_path=/lib/firmware/bcmd/config.txt
[ 70.733743] [dhd] dhd_os_open_image1: /lib/firmware/bcmd/fw_bcm43456c5_ag_apsta.bin (612864 bytes) open success
[ 70.787000] [dhd] dhd_os_open_image1: /lib/firmware/bcmd/nvram_ap6256.txt (2874 bytes) open success
[ 70.798461] [dhd] NVRAM version: AP6256_NVRAM_V1.4_06112021
[ 70.804532] [dhd] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[ 70.900899] [dhd] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[ 70.909093] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 2 -> mode 1
[ 70.916896] [dhd] dhd_apply_default_clm: Ignore clm file /lib/firmware/bcmd/clm_bcm43456c5_ag.blob
[ 70.926436] [dhd] Firmware up: op_mode=0x0002, MAC=d4:9c:dd:3d:7c:6c
[ 70.936159] [dhd] dhd_preinit_ioctls: event_log_max_sets: 26 ret: -23
[ 70.946099] [dhd] Driver: 100.10.545.12 (r826445-20200708-1)
[ 70.946099] Firmware: wl0: Jun 25 2021 17:13:38 version 7.45.96.94 (7bb6b14@SYNA) (r745790) FWID 01-2bdfb64c es7.c5.n4.a3
[ 70.946099] CLM: 9.2.9 (2016-02-03 04:34:31)
[ 70.967976] [dhd] dhd_txglom_enable: enable 1
[ 70.972353] [dhd] dhd_conf_set_txglom_params : txglom_mode=multi-desc
[ 70.978808] [dhd] dhd_conf_set_txglom_params : txglomsize=36, deferred_tx_len=0
[ 70.986144] [dhd] dhd_conf_set_txglom_params : txinrx_thres=128, dhd_txminmax=-1
[ 70.993608] [dhd] dhd_conf_set_txglom_params : tx_max_offset=0, txctl_tmo_fix=300
[ 71.001117] [dhd] dhd_conf_get_disable_proptx : fw_proptx=1, disable_proptx=-1
[ 71.011255] [dhd] dhd_pno_init: Support Android Location Service
[ 71.033819] [dhd] dhd_preinit_ioctls: Failed to get preserve log # !
[ 71.060560] [dhd] dhd_conf_map_country_list : CN/38
[ 71.060566] [dhd] dhd_wlfc_enable: ret=0
[ 71.060595] [dhd] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[ 71.065470] [dhd] dhd_conf_set_country : set country CN, revision 38
[ 71.069446] [dhd] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[ 71.091451] [dhd] dhd_conf_set_country : Country code: CN (CN/38)
[ 71.102099] [dhd-wlan0] wl_android_wifi_on : Success
[ 71.127522] [dhd] _dhd_wlfc_mac_entry_update():1866, entry(32)
[ 71.152079] [dhd] dhd_open : the lock is released.
[ 71.156889] [dhd] dhd_open: Exit wlan0 ret=0
[ 71.161181] [dhd] [wlan0] tx queue started
In kernel 5.15, it hang after
[ 71.127522] [dhd] _dhd_wlfc_mac_entry_update():1866, entry(32)
Can you help me?
Many thank,
Dung Tran Anh