AnsweredAssumed Answered

WIFI module AP6335(bcm4339) SoftAp start failed on android6.0.1(kernel 4.1.15)

Question asked by huang zhanfei on Aug 23, 2016
Latest reply on Aug 29, 2016 by huang zhanfei


Hi, all,


i reticently twist wifi ap6335(bcm4339) , it work on station mode well now, see  https://community.nxp.com/thread/430183

 

but when i switch the WIFI to SoftAp mode , errors occurred,
i am using the bcmdhd driver come along with NXP bsp, NOT the driver obtained from module supplier,
kernel message output like this:

 

[ 295.401402]
[ 295.401402] Dongle Host Driver, version 1.141.88 (r)
[ 295.401402] Compiled from
[ 295.412372] wl_android_wifi_on in
[ 295.522665] tootzoe enable wifi regulator and turn=1 wifi REG_ON gpio
[ 295.522670] sdio_reset_comm():
[ 295.617515] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 295.638032] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 295.657006] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 295.685663] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 296.163257] F1 signature OK, socitype:0x1 chip:0x4339 rev:0x1 pkg:0x2
[ 296.171398] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[ 296.283325] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[ 296.481618] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[ 296.489064] wifi_platform_get_mac_addr
[ 296.502825] Firmware up: op_mode=0x0002, MAC=94:a1:a2:48:55:16
[ 296.522911] Firmware version = wl0: Feb 17 2016 12:09:03 version 6.37.39.36 (r614533)
[ 296.531622] dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79
[ 296.538973] dhd_wlfc_init(): wlfc_mode=0x0, ret=-23
[ 296.627662] CFG80211-ERROR) wl_update_wiphybands : error reading txbf_bfe_cap (-23)
[ 296.636775] CFG80211-ERROR) wl_update_wiphybands : error reading txbf_bfr_cap (-23)
[ 296.665060] wl_create_event_handler(): thread:wl_event_handler:51f started
[ 296.665078] CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0xd2a6147c
[ 296.830856] CFG80211-ERROR) wl_event_handler : was terminated
[ 296.836761] wl_destroy_event_handler(): thread:wl_event_handler:51f terminated OK
[ 296.845621] wl_android_wifi_off in
[ 296.853585] dhd_wlfc_deinit():3277, maintain HOST RXRERODER flag in tvl
[ 296.864301] dhd_wlfc_deinit():3291 successfully disabled bdcv2 tlv signaling, 64
[ 296.872750] tootzoe enable wifi regulator and turn=0 wifi REG_ON gpio

 

 

this is ADB Logcat information:

 

 

01-01 01:15:18.582 224-536/? D/SoftapController: Softap fwReload - Ok
01-01 01:15:19.864 552-592/system_process D/wifi: set interface wlan0 flags (UP)
01-01 01:15:19.865 552-592/system_process I/WifiHAL: Initializing wifi
01-01 01:15:19.865 552-592/system_process I/WifiHAL: Creating socket
01-01 01:15:19.868 552-592/system_process I/WifiHAL: Initialized Wifi HAL Successfully; vendor cmd = 103
01-01 01:15:19.868 552-592/system_process D/wifi: Did set static halHandle = 0x99fe3a00
01-01 01:15:19.868 552-592/system_process D/wifi: halHandle = 0x99fe3a00, mVM = 0xb4d7c000, mCls = 0x100d96
01-01 01:15:19.868 552-592/system_process D/wifi: array field set
01-01 01:15:19.868 552-592/system_process I/WifiNative-HAL: interface[0] = wlan0
01-01 01:15:19.871 552-1312/system_process I/WifiNative-HAL: Waiting for HAL events mWifiHalHandle=-1711392256
01-01 01:15:19.871 552-1312/system_process D/wifi: waitForHalEvents called, vm = 0xb4d7c000, obj = 0x100d96, env = 0x991cff80
01-01 01:15:19.880 552-570/system_process D/Tethering: sendTetherStateChangedBroadcast 1, 0, 0
01-01 01:15:19.927 224-536/? D/SoftapController: SoftAP started successfully
01-01 01:15:19.927 1314-1314/? E/SoftapController: no specific driver vendor
01-01 01:15:19.927 1314-1314/? E/SoftapController: execl failed (No such file or directory)
01-01 01:15:19.927 1314-1314/? E/SoftapController: SoftAP failed to start
01-01 01:15:19.930 552-1313/system_process E/WifiStateMachine: Exception in softap start java.lang.IllegalStateException: command '42 softap startap' failed with '402 42 SoftAP command has failed'
01-01 01:15:19.933 1314-1314/? E/SoftapController: SoftAP is not running
01-01 01:15:19.937 1314-1314/? D/SoftapController: Softap fwReload - Ok
01-01 01:15:19.996 1315-1315/? E/SoftapController: no specific driver vendor
01-01 01:15:19.996 1315-1315/? E/SoftapController: execl failed (No such file or directory)
01-01 01:15:19.996 1315-1315/? E/SoftapController: SoftAP failed to start
01-01 01:15:19.996 1314-1314/? D/SoftapController: SoftAP started successfully
01-01 01:15:20.001 552-1313/system_process E/WifiStateMachine: Exception in softap re-start java.lang.IllegalStateException: command '46 softap startap' failed with '402 46 SoftAP command has failed'
01-01 01:15:20.007 552-552/system_process E/WifiController: WifiControllerSoftAP start failed
01-01 01:15:20.007 552-592/system_process D/wifi: In wifi stop Hal
01-01 01:15:20.007 552-592/system_process D/wifi: halHandle = 0x99fe3a00, mVM = 0xb4d7c000, mCls = 0x100d96
01-01 01:15:20.007 552-1312/system_process E/WifiHAL: wifi_event_loop: Read after POLL returned 4, error no = 0
01-01 01:15:20.007 552-1312/system_process D/WifiHAL: Got a signal to exit!!!
01-01 01:15:20.007 552-1312/system_process I/WifiHAL: Exit wifi_event_loop
01-01 01:15:20.008 552-592/system_process E/WifiHAL: wifi_cleanup: Read after POLL returned 4, error no = 9
01-01 01:15:20.008 552-592/system_process E/WifiHAL: Event processing terminated
01-01 01:15:20.008 552-592/system_process D/wifi: In wifi cleaned up handler
01-01 01:15:20.008 552-592/system_process I/WifiHAL: Internal cleanup completed
01-01 01:15:20.061 552-570/system_process D/Tethering: InitialState.processMessage what=4
01-01 01:15:20.066 552-570/system_process D/Tethering: sendTetherStateChangedBroadcast 0, 0, 0
01-01 01:15:20.079 552-1312/system_process D/wifi: set interface wlan0 flags (DOWN)
01-01 01:15:20.082 552-592/system_process D/WifiNative-HAL: HAL event thread stopped successfully

 

 

Could somebody please advise if you know of a solution?

 

Thanks

 

 

toot_hzf

Outcomes