Hello liu,
The following items are my advice for your application.
(1) Firmware for AP
don't forget load xxx_ap.bin file when loading a WIFI driver to your system.
(2) hostapd executive file
After compiling android source code, you should find hostapd file at path "system/bin", the file will be used to start AP service( see init.freescale.rc)
(3) About hostapd.conf
When you select WIFI access point in android WIFI setting, hostapd.conf file will be automatically created at path "data/misc/wifi/" by upper wifi application.
(4) Starting hostapd service
Android BSP for SabreSDP board supports WIFI ap, you can find corresponding commands in init.freescale.rc file.
(5) About wpa_supplicant.conf
You can search much valuable experience from internet, the following is an example.
interface=wlan0driver=nl80211ctrl_interface=/data/misc/wifi/hostapdssid=mySoftAP#wpa_passphrase=0123456789channel=6ieee80211n=1wpa=0#wpa=2rsn_pairwise=CCMPwpa_psk=20c7dff358c6481bd7278907adb988b8ca7217bc407674b18a59b5c7f81bcc09
-------------------------------------------------------------------------
Hope above advice is useful for you!
Best Regards,
Weidong