I have ap6236 instead of ap6256 but I can’t figure out why I get the errors. Can you please check what is needed in order to have it working?
Kernel log:
[ 0.639243] usbcore: registered new interface driver rndis_wlan
[ 1.064431] [WLAN_RFKILL]: Enter rfkill_wlan_init
[ 1.065099] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[ 1.065150] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6236
[ 1.065165] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[ 1.065178] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[ 1.065279] [WLAN_RFKILL]: wlan_platdata_parse_dt: WIFI,host_wake_irq = 125, flags = 0.
[ 1.065312] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[ 1.065368] [WLAN_RFKILL]: Exit rfkill_wlan_probe
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd compiled on Sep 17 2021 at 14:56:50
[ 4.725072] [dhd] ======== dhd_wlan_init_plat_data ========
[ 4.725140] [dhd] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=105, oob_irq_flags=0x414
[ 4.725142] [dhd] dhd_wlan_init_gpio: WL_REG_ON=-1
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd compiled on Sep 17 2021 at 14:56:50
[ 5.082086] [dhd] Register interface [wlan0] MAC: 18:93:7f:b3:d9:e2
[ 5.129893] [dhd][wlan0] dhd_open : Enter
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd compiled on Sep 17 2021 at 14:56:50
[ 5.129954] [dhd][wlan0] wl_android_wifi_on : in g_wifi_on=0
[ 5.920530] [dhd][wlan0] wl_android_wifi_on : Failed
[ 5.920556] [dhd][wlan0] dhd_stop : Enter
[ 5.920572] [dhd][wlan0] wl_android_wifi_off : in g_wifi_on=0, on_failure=1
[ 5.920652] [dhd][wlan0] wl_android_wifi_off : out
[ 5.953374] [dhd][wlan0] dhd_stop : Exit
[ 5.953410] [dhd][wlan0] dhd_open : Exit ret=-1
[ 6.432527] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 6.432718] [dhd][wlan0] dhd_open : Enter