Wifi connection failed

Which system do you use? Android, Ubuntu, OOWOW or others?

Android

Which version of system do you use? Khadas official images, self built images, or others?

khadas official image

Please describe your issue below:

I built the image by referring to the site below.
https://docs.khadas.com/products/sbc/vim1s/development/android/start

During the WiFi test, it scans but does not connect.

The khadas official image below is also the same.
https://dl.khadas.com/products/vim1s/firmware/android/vim1s-android-11-v221020.img.xz

But in oowow wifi connects normally.

Please advise how to solve it.

Post a console log of your issue below:



[   20.662821] <6>[   20.662821@1]  aml_wifi aml_wifi: [usb_power_control] Set WiFi power on !
[   20.663382] <6>[   20.663382@1]  aml_wifi aml_wifi: [wifi_power_ioctl] Set sdio wifi power up!
[   20.664518] <6>[   20.664518@1]  aml_wifi aml_wifi: [wifi_power_ioctl] wifi interface dev type: mmc2, length = 4
[   20.951290] <6>[   20.951290@1]  load module: dhd
[   20.951326] <4>[   20.951326@1]  [dhd] _dhd_module_init: in Dongle Host Driver, version 101.10.361.10 (wlan=r892223-20210625-1)
[   20.951326] <4>[   20.951326@1]  /home/android-server/amlogic/vim1s-20230411/out/android11-5.4/common/../vendor/wifi_driver/broadcom/ap6xxx/bcmdhd.101.10.361.x/dhd_sdio compiled on Apr 12 2023 at 09:01:18
[   20.951326] <4>[   20.951326@1]
[   20.954789] <4>[   20.954789@1]  [dhd] ======== dhd_wlan_init_plat_data ========
[   20.955361] <4>[   20.955361@1]  [dhd] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=71, oob_irq_flags=0x418
[   20.956599] <4>[   20.956599@1]  [dhd] dhd_wlan_init_gpio: WL_REG_ON=-1
[   20.956950] <4>[   20.956950@1]  [dhd] dhd_wifi_platform_load: Enter
[   20.963019] <4>[   20.963019@1]  [dhd] Power-up adapter 'DHD generic adapter'
[   20.963062] <4>[   20.963062@1]  [dhd] wifi_platform_set_power = 1, delay: 200 msec
[   20.963798] <4>[   20.963798@1]  [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[   20.964859] <6>[   20.964859@1]  aml_wifi aml_wifi: [extern_wifi_set_enable] WIFI  Disable! 484
[   21.519321] <6>[   21.519321@1]  aml_wifi aml_wifi: [extern_wifi_set_enable] WIFI  Enable! 484
[   21.695831] <6>[   21.695831@2]  BT_RADIO going: on
[   21.695862] <6>[   21.695862@2]  AML_BT: going ON,btpower_evt=0
[   22.142850] <4>[   22.142850@1]  [dhd] wifi_platform_bus_enumerate device present 1
[   22.142938] <4>[   22.142938@1]  [dhd] ======== Card detection to detect SDIO card! ========
[   22.143823] <3>[   22.143823@1]  sdio_reset_comm():
[   22.186349] <4>[   22.186349@2]  mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[   22.188709] <4>[   22.188709@2]  mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[   22.191074] <4>[   22.191074@0]  mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[   22.195758] <4>[   22.195758@2]  mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[   22.214768] <4>[   22.214768@2]  mmc2: queuing unknown CIS tuple 0x81 (9 bytes)
[   22.401084] <6>[   22.401084@1]  r: b_s = 0, b_sz = 21, f: b_s = 1c, b_sz = 24
[   22.401117] <6>[   22.401117@1]  the final result: sel = 1, rx = 2e
[   22.401693] <6>[   22.401693@1]  [sdio_reinit] finish
[   22.402241] <4>[   22.402241@1]  [dhd] dummy_probe: enter
[   22.403126] <4>[   22.403126@1]  [dhd] dummy_probe: enter
[   22.419491] <4>[   22.419491@3]  [dhd] bcmsdh_register: register client driver
[   22.419900] <4>[   22.419900@3]  [dhd] bcmsdh_sdmmc_probe: Enter num=1
[   22.420553] <4>[   22.420553@3]  [dhd] bcmsdh_sdmmc_probe: Enter num=2
[   22.420747] <4>[   22.420747@3]  [dhd] bus num (host idx)=2, slot num (rca)=1
[   22.421720] <4>[   22.421720@3]  [dhd] found adapter info 'DHD generic adapter'
[   22.422180] <4>[   22.422180@3]  succeed to alloc static buf
[   22.423393] <4>[   22.423393@3]  [dhd] sdioh_attach: set sd_f2_blocksize 256
[   22.423466] <4>[   22.423466@3]  [dhd] sdioh_attach: sd clock rate = 0
[   22.425283] <4>[   22.425283@3]  [dhd] dhdsdio_probe : no mutex held. set lock
[   22.425402] <4>[   22.425402@3]  [dhd] F1 signature read @0x18000000=0x15294345
[   22.428569] <4>[   22.428569@3]  [dhd] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x9 pkg:0x2
[   22.429195] <4>[   22.429195@3]  [dhd] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[   22.430083] <3>[   22.430083@3]  [dhd] dhd_conf_set_chiprev : devid=0xa9bf, chip=0x4345, chiprev=9
[   22.433280] <4>[   22.433280@3]  [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[   22.433666] <4>[   22.433666@3]  [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[   22.435019] <4>[   22.435019@3]  [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[   22.435787] <4>[   22.435787@3]  [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[   22.437115] <4>[   22.437115@3]  [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[   22.437911] <4>[   22.437911@3]  [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[   22.439373] <4>[   22.439373@3]  [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[   22.440035] <4>[   22.440035@3]  [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[   22.441280] <4>[   22.441280@3]  [dhd] CFG80211-ERROR) wl_cfg80211_netdev_notifier_call : wdev null. Do nothing
[   22.446928] <4>[   22.446928@3]  [dhd] dhd_log_dump_init: kernel log buf size = 512KB; logdump_prsrv_tailsize = 80KB; limit prsrv tail size to = 76KB
[   22.449041] <4>[   22.449041@1]  [dhd] dhd_attach(): thread:dhd_watchdog_thread:4e9 started
[   22.449308] <4>[   22.449308@1]  [dhd] dhd_attach(): thread:dhd_dpc:4ea started
[   22.450100] <4>[   22.450100@1]  [dhd] dhd_attach(): thread:dhd_rxf:4eb started
[   22.450643] <4>[   22.450643@1]  [dhd] dhd_deferred_work_init: work queue initialized
[   22.451534] <4>[   22.451534@1]  [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 2
[   22.452382] <4>[   22.452382@1]  [dhd] dhd_get_memdump_info: MEMDUMP ENABLED = 3
[   22.453065] <4>[   22.453065@1]  [dhd] sdioh_cis_read: func_cis_ptr[0]=0x10ac
[   22.465144] <4>[   22.465144@1]  [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[   22.465321] <4>[   22.465321@1]  [dhd] Dongle Host Driver, version 101.10.361.10 (wlan=r892223-20210625-1)
[   22.465321] <4>[   22.465321@1]  /home/android-server/amlogic/vim1s-20230411/out/android11-5.4/common/../vendor/wifi_driver/broadcom/ap6xxx/bcmdhd.101.10.361.x/dhd_sdio compiled on Apr 12 2023 at 09:01:18
[   22.465321] <4>[   22.465321@1]
[   22.471439] <4>[   22.471439@1]  [dhd] Register interface [wlan0]  MAC: 70:f7:54:96:fd:f6
[   22.471439] <4>[   22.471439@1]
[   22.476002] <3>[   22.476002@2]  [dhd][wlan0] wl_android_wifi_off : in g_wifi_on=1, on_failure=1
[   22.477275] <4>[   22.477275@2]  [dhd] dhd_bus_devreset: == Power OFF ==
[   22.477321] <4>[   22.477321@2]  [dhd] __dhd_txflowcontrol: Stop Netif Queue
[   22.479842] <4>[   22.479842@2]  [dhd] dhd_bus_stop: making DHD_BUS_DOWN
[   22.479912] <4>[   22.479912@2]  [dhd] bcmsdh_oob_intr_unregister: Enter
[   22.481083] <4>[   22.481083@2]  [dhd] bcmsdh_oob_intr_unregister: irq is not registered
[   22.481266] <4>[   22.481266@2]  [dhd] dhd_bus_devreset: making dhdpub up FALSE
[   22.481992] <4>[   22.481992@2]  [dhd] dhd_txglom_enable: enable 0
[   22.483041] <4>[   22.483041@2]  [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[   22.483354] <4>[   22.483354@2]  [dhd] wifi_platform_set_power = 0, delay: 0 msec
[   22.483973] <4>[   22.483973@2]  [dhd] ======== PULL WL_REG_ON(-1) LOW! ========
[   22.484985] <6>[   22.484985@2]  aml_wifi aml_wifi: [extern_wifi_set_enable] WIFI  Disable! 484
[   22.730898] <3>[   22.730898@2]  [dhd][wlan0] wl_android_wifi_off : out
[   22.752740] <4>[   22.752740@3]  [dhd] Register interface [wlan1]  MAC: 72:f7:54:96:fd:f6
[   22.752740] <4>[   22.752740@3]
[   22.753107] <4>[   22.753107@3]  [dhd] dhdsdio_probe : the lock is released.
[   22.754272] <4>[   22.754272@3]  [dhd] _dhd_module_init: Exit err=0
[   22.789454] <3>[   22.789454@3]  [dhd][wlan0] dhd_open : Enter
[   22.789489] <4>[   22.789489@3]  [dhd] Dongle Host Driver, version 101.10.361.10 (wlan=r892223-20210625-1)
[   22.789489] <4>[   22.789489@3]  /home/android-server/amlogic/vim1s-20230411/out/android11-5.4/common/../vendor/wifi_driver/broadcom/ap6xxx/bcmdhd.101.10.361.x/dhd_sdio compiled on Apr 12 2023 at 09:01:18
[   22.789489] <4>[   22.789489@3]
[   22.789650] <38>[   22.789650@2]  type=1400 audit(1681351283.800:46): avc: denied { write } for comm="wifi@1.0-servic" name="firmware_path" dev="sysfs" ino=38770 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   22.792955] <4>[   22.792955@3]  [dhd] dhd_open : no mutex held. set lock
[   22.795795] <4>[   22.795795@3]  [dhd] dhd_open: ######### called for ifidx=0 #########
[   22.801534] <3>[   22.801534@3]  [dhd][wlan0] wl_android_wifi_on : in g_wifi_on=0
[   22.801586] <4>[   22.801586@3]  [dhd] wifi_platform_set_power = 1, delay: 200 msec
[   22.803661] <4>[   22.803661@3]  [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[   22.803793] <6>[   22.803793@3]  aml_wifi aml_wifi: [extern_wifi_set_enable] WIFI  Disable! 484
[   23.022205] <6>[   23.022205@0]  aml_wifi aml_wifi: [extern_wifi_set_enable] WIFI  Enable! 484
[   23.578785] <3>[   23.578785@2]  sdio_reset_comm():
[   23.624314] <4>[   23.624314@1]  mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[   23.626914] <4>[   23.626914@2]  mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[   23.630219] <4>[   23.630219@2]  mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[   23.634966] <4>[   23.634966@2]  mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[   23.640890] <4>[   23.640890@0]  mmc2: queuing unknown CIS tuple 0x81 (9 bytes)
[   23.795314] <6>[   23.795314@0]  r: b_s = 0, b_sz = 21, f: b_s = 1b, b_sz = 25
[   23.795348] <6>[   23.795348@0]  the final result: sel = 1, rx = 2d
[   23.795974] <4>[   23.795974@0]  [dhd] sdioh_start: set sd_f2_blocksize 256
[   23.796837] <4>[   23.796837@3]  [dhd] dhd_bus_devreset: == Power ON ==
[   23.797267] <4>[   23.797267@3]  [dhd] F1 signature read @0x18000000=0x15294345
[   23.800280] <4>[   23.800280@3]  [dhd] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x9 pkg:0x2
[   23.801054] <4>[   23.801054@3]  [dhd] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[   23.801534] <4>[   23.801534@3]  [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[   23.802179] <4>[   23.802179@3]  [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[   23.804001] <3>[   23.804001@3]  [dhd] dhd_conf_read_config : Ignore config file /vendor/etc/wifi/6255/config_bcm43456c5_ag.txt
[   23.804595] <3>[   23.804595@3]  [dhd] dhd_conf_set_path_params : Final fw_path=/vendor/etc/wifi/6255/fw_bcm43456c5_ag.bin
[   23.805733] <3>[   23.805733@3]  [dhd] dhd_conf_set_path_params : Final nv_path=/vendor/etc/wifi/6255/nvram_ap6256.txt
[   23.806922] <3>[   23.806922@3]  [dhd] dhd_conf_set_path_params : Final clm_path=/vendor/etc/wifi/6255/clm_bcm43456c5_ag.blob
[   23.808088] <3>[   23.808088@3]  [dhd] dhd_conf_set_path_params : Final conf_path=/vendor/etc/wifi/6255/config_bcm43456c5_ag.txt
[   23.809916] <4>[   23.809916@3]  [dhd] dhd_os_open_image1: /vendor/etc/wifi/6255/fw_bcm43456c5_ag.bin (611103 bytes) open success
[   23.858810] <4>[   23.858810@0]  [dhd] dhd_os_open_image1: /vendor/etc/wifi/6255/nvram_ap6256.txt (2732 bytes) open success
[   23.859857] <4>[   23.859857@1]  [dhd] NVRAM version: AP6256_NVRAM_V1.4_06112021
[   23.860419] <4>[   23.860419@1]  [dhd] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[   23.951922] <4>[   23.951922@0]  [dhd] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[   23.952234] <4>[   23.952234@0]  [dhd] bcmsdh_oob_intr_register: HW_OOB irq=71 flags=0x8
[   23.953037] <4>[   23.953037@0]  [dhd] __dhd_txflowcontrol: Start Netif Queue
[   23.954107] <4>[   23.954107@0]  [dhd] dhd_get_memdump_info: MEMDUMP ENABLED = 3
[   23.955310] <4>[   23.955310@2]  [dhd] wlc_ver_major 4, wlc_ver_minor 1
[   23.955931] <4>[   23.955931@2]  [dhd] dhd_preinit_ioctls: preinit_status IOVAR not supported, use legacy preinit
[   23.956343] <4>[   23.956343@2]  [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 2 -> mode 1
[   23.957622] <4>[   23.957622@2]  [dhd] dhd_legacy_preinit_ioctls: use firmware generated mac_address 70:f7:54:96:fd:f6
[   23.958484] <4>[   23.958484@2]  [dhd] dhd_apply_default_clm: Ignore clm file /vendor/etc/wifi/6255/clm_bcm43456c5_ag.blob
[   23.960929] <4>[   23.960929@2]  [dhd] Firmware up: op_mode=0x0005, MAC=70:f7:54:96:fd:f6
[   23.964703] <4>[   23.964703@0]  [dhd] dhd_legacy_preinit_ioctls: event_log_max_sets: 31 ret: -23
[   23.967175] <4>[   23.967175@1]  [dhd] arp_enable:1 arp_ol:0
[   23.971365] <4>[   23.971365@0]  [dhd]   Driver: 101.10.361.10 (wlan=r892223-20210625-1)
[   23.971365] <4>[   23.971365@0]    Firmware: wl0: Aug 25 2022 12:38:28 version 7.45.96.150 (g31bd2ca8) FWID 01-af0bb8b0 es7.c5.n4.a3
[   23.971365] <4>[   23.971365@0]    CLM: 9.2.9 (2016-02-03 04:34:31)
[   23.973527] <4>[   23.973527@0]  [dhd] dhd_txglom_enable: enable 1
[   23.973950] <3>[   23.973950@0]  [dhd] dhd_conf_set_txglom_params : txglom_mode=copy
[   23.974803] <3>[   23.974803@0]  [dhd] dhd_conf_set_txglom_params : txglomsize=36, deferred_tx_len=0
[   23.975722] <3>[   23.975722@3]  [dhd] dhd_conf_set_txglom_params : txinrx_thres=128, dhd_txminmax=-1
[   23.976618] <3>[   23.976618@3]  [dhd] dhd_conf_set_txglom_params : tx_max_offset=0, txctl_tmo_fix=300
[   23.977588] <3>[   23.977588@3]  [dhd] dhd_conf_get_disable_proptx : fw_proptx=1, disable_proptx=-1
[   23.979373] <4>[   23.979373@0]  [dhd] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
[   23.981128] <4>[   23.981128@1]  [dhd] dhd_pno_init: Support Android Location Service
[   23.981644] <4>[   23.981644@1]  [dhd] rtt_do_get_ioctl: failed to send getbuf proxd iovar (CMD ID : 1), status=-4
[   23.982322] <4>[   23.982322@1]  [dhd] dhd_rtt_init : FTM is not supported
[   23.983025] <4>[   23.983025@1]  [dhd] dhd_rtt_init EXIT, err = 0
[   24.004953] <4>[   24.004953@2]  [dhd] dhd_legacy_preinit_ioctls: Failed to get preserve log # !
[   24.025068] <3>[   24.025068@2]  [dhd] dhd_conf_map_country_list : CN/38
[   24.025103] <3>[   24.025103@2]  [dhd] dhd_conf_set_country : set country CN, revision 38
[   24.028368] <3>[   24.028368@3]  [dhd] dhd_conf_set_country : Country code: CN (CN/38)
[   24.033274] <3>[   24.033274@0]  [dhd][wlan0] wl_android_wifi_on : Success
[   24.074286] <4>[   24.074286@3]  [dhd] dhd_open : the lock is released.
[   24.074318] <3>[   24.074318@3]  [dhd][wlan0] dhd_open : Exit ret=0
[   24.074863] <3>[   24.074863@3]  [dhd][wlan0] dhd_pri_open : tx queue started
[   24.126388] <38>[   24.126388@0]  type=1400 audit(1681351285.136:47): avc: denied { getattr } for comm="wifi@1.0-servic" path="/data/vendor/wifi/wifi_module" dev="dm-5" ino=319193 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:vendor_data_file:s0 tclass=file permissive=1
[   24.233659] <6>[   24.233659@3]  capability: warning: `wpa_supplicant' uses 32-bit capabilities (legacy support in use)
[   24.298477] <4>[   24.298477@2]  [dhd] P2P interface registered
[   24.298515] <4>[   24.298515@2]  [dhd] wl_cfgp2p_add_p2p_disc_if: wdev: 000000009d4dc75c, wdev->net: 0000000000000000
[   24.306971] <4>[   24.306971@0]  [dhd] WLC_E_IF: NO_IF set, event Ignored
[   24.380838] <3>[   24.380838@1]  [dhd] dhd_conf_map_country_list : US/988
[   24.381469] <3>[   24.381469@1]  [dhd] dhd_conf_set_country : set country US, revision 988
[   24.387153] <3>[   24.387153@3]  [dhd] dhd_conf_set_country : Country code: US (US/988)
[   24.410894] <4>[   24.410894@2]  [dhd] wldev_set_country: set country for US as US rev 988
[   24.490974] <38>[   24.490974@3]  type=1400 audit(1681351285.500:48): avc: denied { getattr } for comm="wifi@1.0-servic" path="/data/vendor/wifi/wifi_module" dev="dm-5" ino=319193 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:vendor_data_file:s0 tclass=file permissive=1
[   24.537725] <38>[   24.537725@0]  type=1400 audit(1681351285.544:49): avc: denied { read } for comm="Binder:247_2" name="wakeup35" dev="sysfs" ino=39065 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[   24.553579] <38>[   24.553579@0]  type=1400 audit(1681351285.548:50): avc: denied { open } for comm="Binder:247_2" path="/sys/devices/platform/soc/fe088000.sdio/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/wakeup/wakeup35" dev="sysfs" ino=39065 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[   24.556682] <38>[   24.556682@0]  type=1400 audit(1681351285.548:51): avc: denied { read } for comm="Binder:247_2" name="event_count" dev="sysfs" ino=39072 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   24.559915] <38>[   24.559915@0]  type=1400 audit(1681351285.548:52): avc: denied { open } for comm="Binder:247_2" path="/sys/devices/platform/soc/fe088000.sdio/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/wakeup/wakeup35/event_count" dev="sysfs" ino=39072 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   24.567449] <38>[   24.567449@0]  type=1400 audit(1681351285.548:53): avc: denied { getattr } for comm="Binder:247_2" path="/sys/devices/platform/soc/fe088000.sdio/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/wakeup/wakeup35/event_count" dev="sysfs" ino=39072 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   27.175587] <6>[   27.175587@1]  android_work: did not send uevent (0 0 0000000000000000)
[   27.238915] <14>[   27.238915@1]  selinux: SELinux: Skipping restorecon on directory(/data/system_ce/0)
[   27.239219] <14>[   27.239219@1]  selinux:
[   27.244005] <38>[   27.244005@0]  type=1400 audit(1681351288.256:54): avc: denied { entrypoint } for comm="init" path="/system/bin/preinstall.sh" dev="dm-0" ino=1084 scontext=u:r:preinstall:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=1
[   27.252776] <38>[   27.252776@0]  type=1400 audit(1681351288.264:55): avc: denied { map } for comm="preinstall.sh" path="/system/bin/sh" dev="dm-0" ino=1128 scontext=u:r:preinstall:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=1
[   27.253211] <14>[   27.253211@2]  selinux: SELinux: Skipping restorecon on directory(/data/vendor_ce/0)
[   27.255626] <14>[   27.255626@2]  selinux:
[   27.257590] <38>[   27.257590@0]  type=1400 audit(1681351288.264:56): avc: denied { read } for comm="preinstall.sh" path="/system/bin/sh" dev="dm-0" ino=1128 scontext=u:r:preinstall:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=1
[   27.264440] <6>[   27.264440@3]  read descriptors
[   27.264476] <6>[   27.264476@3]  read strings
[   27.266571] <14>[   27.266571@2]  selinux: SELinux: Skipping restorecon on directory(/data/misc_ce/0)
[   27.267056] <14>[   27.267056@2]  selinux:
[   27.663574] <6>[   27.663574@1]  zram0: detected capacity change from 0 to 1043394560
[   27.721964] <14>[   27.721964@1]  mkswap: Swapspace size: 1018936k, UUID=bc42fea3-b88f-4f8e-b5be-5d3d9171287d
[   27.747129] <6>[   27.747129@1]  Adding 1018936k swap on /dev/block/zram0.  Priority:-2 extents:1 across:1018936k SS
[   27.756992] <14>[   27.756992@1]  selinux: SELinux: Skipping restorecon on directory(/data/misc_ce/0/apexdata/com.android.wifi)
[   27.758553] <14>[   27.758553@1]  selinux:
[   28.255476] <6>[   28.255476@0]  audio_dsp: dts_dec_control/0x0
[   28.593286] <6>[   28.593286@1]  audio_dsp: drc high cut scale set to 0%
[   28.593712] <6>[   28.593712@1]  audio_dsp: drc low boost scale set to 0%
[   28.594444] <6>[   28.594444@1]  audio_dsp: drc mode set to RF
[   29.726415] <38>[   29.726415@3]  type=1400 audit(1681351290.736:65): avc: denied { dac_read_search } for comm="DiskMonitor" capability=2 scontext=u:r:dtvkitserver:s0 tcontext=u:r:dtvkitserver:s0 tclass=capability permissive=1
[   29.728589] <38>[   29.728589@3]  type=1400 audit(1681351290.736:66): avc: denied { search } for comm="DiskMonitor" name="/" dev="fuse" ino=687457 scontext=u:r:dtvkitserver:s0 tcontext=u:object_r:fuse:s0 tclass=dir permissive=1
[   29.738482] <38>[   29.738482@1]  type=1400 audit(1681351290.736:67): avc: denied { dac_read_search } for comm="DiskMonitor" capability=2 scontext=u:r:dtvkitserver:s0 tcontext=u:r:dtvkitserver:s0 tclass=capability permissive=1
[   29.740588] <38>[   29.740588@1]  type=1400 audit(1681351290.736:68): avc: denied { read } for comm="EventTask" name="media" dev="dm-5" ino=687457 scontext=u:r:dtvkitserver:s0 tcontext=u:object_r:media_rw_data_file:s0 tclass=dir permissive=1
[   29.742870] <38>[   29.742870@1]  type=1400 audit(1681351290.736:69): avc: denied { open } for comm="EventTask" path="/mnt/pass_through/0/emulated" dev="dm-5" ino=687457 scontext=u:r:dtvkitserver:s0 tcontext=u:object_r:media_rw_data_file:s0 tclass=dir permissive=1
[   29.962418] <6>[   29.962418@1]  audio_send_uevent[48] AUDIO_FORMAT=0 0
[   29.962451] <6>[   29.962451@1]  update audio atmos flag! audio_type = 0
[   31.710767] <6>[   31.710767@2]  VDDIO_CARD: disabling
[   38.504857] <38>[   38.504857@3]  type=1400 audit(1681351299.516:70): avc: denied { write } for comm="sh" name="enable" dev="sysfs" ino=26116 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   38.506788] <38>[   38.506788@3]  type=1400 audit(1681351299.516:71): avc: denied { open } for comm="sh" path="/sys/class/fan/enable" dev="sysfs" ino=26116 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   39.505950] <38>[   39.505950@1]  type=1400 audit(1681351300.516:72): avc: denied { execute } for comm="ogic.android.tv" path="/vendor/framework/oat/arm/droidlogic.odex" dev="dm-1" ino=684 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_framework_file:s0 tclass=file permissive=1 app=com.droidlogic.android.tv
[   39.684652] <38>[   39.684652@0]  type=1400 audit(1681351300.696:73): avc: denied { open } for comm="ogic.android.tv" path="/dev/__properties__/u:object_r:atv_prop:s0" dev="tmpfs" ino=16249 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:atv_prop:s0 tclass=file permissive=1 app=com.droidlogic.android.tv
[   39.693904] <38>[   39.693904@3]  type=1400 audit(1681351300.696:74): avc: denied { getattr } for comm="ogic.android.tv" path="/dev/__properties__/u:object_r:atv_prop:s0" dev="tmpfs" ino=16249 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:atv_prop:s0 tclass=file permissive=1 app=com.droidlogic.android.tv
[   39.709184] <38>[   39.709184@3]  type=1400 audit(1681351300.696:75): avc: denied { map } for comm="ogic.android.tv" path="/dev/__properties__/u:object_r:atv_prop:s0" dev="tmpfs" ino=16249 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:atv_prop:s0 tclass=file permissive=1 app=com.droidlogic.android.tv
[   39.845096] <38>[   39.845096@0]  type=1400 audit(1681351300.856:76): avc: denied { search } for comm=4173796E635461736B202331 name="rtc" dev="sysfs" ino=12786 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_rtc:s0 tclass=dir permissive=1
[   39.847750] <38>[   39.847750@0]  type=1400 audit(1681351300.856:77): avc: denied { read write } for comm=4173796E635461736B202331 name="bootalarm" dev="sysfs" ino=26158 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   39.850303] <38>[   39.850303@0]  type=1400 audit(1681351300.856:78): avc: denied { open } for comm=4173796E635461736B202331 path="/sys/devices/platform/soc/fe000000.apb4/fe068000.i2c/i2c-1/1-0051/rtc/rtc0/bootalarm" dev="sysfs" ino=26158 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   39.853585] <38>[   39.853585@0]  type=1400 audit(1681351300.856:79): avc: denied { getattr } for comm=4173796E635461736B202331 path="/sys/devices/platform/soc/fe000000.apb4/fe068000.i2c/i2c-1/1-0051/rtc/rtc0/bootalarm" dev="sysfs" ino=26158 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[   56.823258] <6>[   56.823258@0]  nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based  firewall rule not found. Use the iptables CT target to attach helpers instead.
[  545.080997] <38>[  545.080997@1]  type=1400 audit(1681351806.088:80): avc: denied { syslog_read } for comm="dmesg" scontext=u:r:shell:s0 tcontext=u:r:kernel:s0 tclass=system permissive=1
[  560.437120] <6>[  560.437120@1]  audio_send_uevent[48] AUDIO_FORMAT=0 0
[  560.437154] <6>[  560.437154@1]  update audio atmos flag! audio_type = 0
[  560.871218] <38>[  560.871218@3]  type=1400 audit(1681351821.884:81): avc: denied { getattr } for comm="wifi@1.0-servic" path="/data/vendor/wifi/wifi_module" dev="dm-5" ino=319193 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:vendor_data_file:s0 tclass=file permissive=1
[  560.964973] <38>[  560.964973@0]  type=1400 audit(1681351821.976:82): avc: denied { read } for comm="Binder:247_2" name="wakeup35" dev="sysfs" ino=39065 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[  560.967115] <4>[  560.967115@0]  audit: audit_lost=1 audit_rate_limit=5 audit_backlog_limit=64
[  560.967575] <3>[  560.967575@0]  audit: rate limit exceeded
[  560.978617] <38>[  560.978617@0]  type=1400 audit(1681351821.976:83): avc: denied { open } for comm="Binder:247_2" path="/sys/devices/platform/soc/fe088000.sdio/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/wakeup/wakeup35" dev="sysfs" ino=39065 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[  560.982265] <38>[  560.982265@0]  type=1400 audit(1681351821.980:84): avc: denied { read } for comm="Binder:247_2" name="event_count" dev="sysfs" ino=39072 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[  560.984920] <38>[  560.984920@0]  type=1400 audit(1681351821.980:85): avc: denied { open } for comm="Binder:247_2" path="/sys/devices/platform/soc/fe088000.sdio/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/wakeup/wakeup35/event_count" dev="sysfs" ino=39072 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[  563.665709] <3>[  563.665709@3]  [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 0, bssidx: 0
[  575.640347] <3>[  575.640347@2]  [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 1, bssidx: 0
[  585.688117] <3>[  585.688117@0]  [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 2, bssidx: 0
[  595.730819] <3>[  595.730819@0]  [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 3, bssidx: 0
[  605.762931] <3>[  605.762931@0]  [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 4, bssidx: 0
[  615.778898] <3>[  615.778898@0]  [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 5, bssidx: 0
[  625.814580] <3>[  625.814580@2]  [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 6, bssidx: 0
[  635.853934] <3>[  635.853934@2]  [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 7, bssidx: 0
[  645.910113] <3>[  645.910113@2]  [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 8, bssidx: 0
[  649.437949] <38>[  649.437949@0]  type=1400 audit(1681351910.448:87): avc: denied { getattr } for comm="wifi@1.0-servic" path="/data/vendor/wifi/wifi_module" dev="dm-5" ino=319193 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:vendor_data_file:s0 tclass=file permissive=1
[  649.477991] <4>[  649.477991@2]  audit: audit_lost=2 audit_rate_limit=5 audit_backlog_limit=64
[  649.478188] <3>[  649.478188@2]  audit: rate limit exceeded
[  649.507716] <38>[  649.507716@0]  type=1400 audit(1681351910.488:88): avc: denied { read } for comm="Binder:247_2" name="wakeup35" dev="sysfs" ino=39065 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[  649.512365] <38>[  649.512365@0]  type=1400 audit(1681351910.488:89): avc: denied { open } for comm="Binder:247_2" path="/sys/devices/platform/soc/fe088000.sdio/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/wakeup/wakeup35" dev="sysfs" ino=39065 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[  649.516071] <38>[  649.516071@0]  type=1400 audit(1681351910.488:90): avc: denied { read } for comm="Binder:247_2" name="event_count" dev="sysfs" ino=39072 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[  649.519776] <38>[  649.519776@0]  type=1400 audit(1681351910.488:91): avc: denied { open } for comm="Binder:247_2" path="/sys/devices/platform/soc/fe088000.sdio/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/wakeup/wakeup35/event_count" dev="sysfs" ino=39072 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
console:/ $


Hello @pollian

@goenjoy @xiong.zhang will help you here.

@pollian

Hello, I use the latest 221020 firmware on the official website to be able to connect to WiFi and turn on and off WiFi repeatedly to connect normally. Can I ask you more detailed steps to reproduce it under what circumstances?

I upgraded using aml_usb_burn_tool and tested wifi, but it does not connect.

@pollian Create a new config_bcm43456c5_ag.txt file and fill in the following information. Then adb push this file to the machine. restart the machine, and reproduce the problem.

config_bcm43456c5_ag.txt

wl_dbg_level=0x9
dhd_console_ms=20
android_msg_level=0x5
dump_msg_level=0xf
dhd_msg_level=0x801
C:\Users\25348>adb root && adb remount
C:\Users\25348>adb push C:\Users\25348\Desktop\config_bcm43456c5_ag.txt vendor/etc/wifi/6255/config_bcm43456c5_ag.txt
C:\Users\25348>adb reboot

Finally, please use the following command to obtain the kernel logs and send them to us for analysis through cloud disk.

C:\Users\25348>adb shell dmesg > dmesg.log

@goenjoy
I uploaded the log in the link below
please check

@pollian Reproduce the problem, and also capture and send the logcat log.

@goenjoy
Recapture the log and post a link
When I select an ap from the list and enter the password, it says saved and does not change to connect even if I wait.

@pollian The log sent is incorrect.

@goenjoy
I captured and uploaded logcat.log
please check.

1 Like

@goenjoy
Have you checked logcat?

@pollian According to the feedback in the log, there is a connection to wired Ethernet, and the upper layer of Android is responsible for processing. The Ethernet link is given priority. You can remove the Ethernet cable to verify it.

@goenjoy
I removed the ethernet and confirmed that wifi works. Doesn’t Ethernet and Wi-Fi work at the same time?

@pollian Doesn’t Ethernet and Wi-Fi work at the same time? ===> yes!

@goenjoy
thank you.
It helped me a lot.