Hi Zhanfei,
Give you some advice on your question, see below, please!
(1)Checking firmware.
When you switch status from WIFI mode to AP mode, WIFI driver will be reloaded and firmware will be changed to another,that is a firmware for ap, such as "bcm4335_fw_apsta.bin", maybe your name is different, here just an example, so please check if the firmware is correct when switching to AP mode.
(2)WIFI driver for BCM4339 in linux kernel
The driver in linux kernel should also provided by broadcomm, not written by NXP R&D, In the driver, softap should be supported. About this, you can confirm it with provider's FAE of WIFI module.
(3)p2p service start
you need to check if p2p service can normally start, expecially parameters in command lines, about this, you can ask for help from provider's FAE, he should know if it is correct.
(4)Correcting some errors in your log
like:
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
......
Above errors caused by Vendor, you should set vendor's name in init.r or init.freescale.rc, like following:
setprop wlan.vendor broadcom
or
open : device/fsl/imx6/sabresd_6dq.mk
modify like this:
---------------------------
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wlan.interface=wlan0 \
wlan.vendor=broadcom
-----------------------------------------
Hope above advice can help you!
Best Regards,
Weidong