How to use android branch ?

Masashi Honma masashi.honma
Mon Apr 23 06:54:38 PDT 2012


Hello.

I found a new branch on hostap.git tree.

http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=shortlog;h=refs/heads/android

I could see "ANDROID_BRCM_P2P_PATCH" macro in the branch. So I have thought
the branch could be used as a replacement of external/wpa_supplicant_8
directory in Android source tree.

So I replaced it and I could build it with android-4.0.1_r1 branch. I have wrote
the result of built to Galaxy Nexus. But I could not enable WiFi direct via GUI.

This is a logcat after trying to enable WiFi direct via GUI.
-------------
D/WifiP2pService(  161): P2pDisabledState{ what=139265 when=-1ms }
D/WifiP2pService(  161): WaitForWifiDisableState
D/SoftapController(  113): Softap fwReload - Ok
D/WifiP2pService(  161): WaitForWifiDisableState{ what=131204 when=-5ms }
D/CommandListener(  113): Setting iface cfg
D/CommandListener(  113): Trying to bring down wlan0
D/CommandListener(  113): broadcast flag ignored
D/CommandListener(  113): multicast flag ignored
D/NetworkManagementService(  161): rsp <213 xx:xx:xx:xx:xx:xx 0.0.0.0
0 [down broadcast multicast]>
D/NetworkManagementService(  161): flags <[down broadcast multicast]>
D/WifiP2pService(  161): P2pEnablingState
D/WifiP2pManager(  671): Ignored { what=139267 when=-34ms }
I/wpa_supplicant(  931): rfkill: Cannot open RFKILL control device
D/Tethering(  161): interfaceLinkStateChanged wlan0, true
D/Tethering(  161): interfaceStatusChanged wlan0, true
D/Tethering(  161): sendTetherStateChangedBroadcast 1, 0, 0
D/Tethering(  161): interfaceLinkStateChanged wlan0, true
D/Tethering(  161): interfaceStatusChanged wlan0, true
-------------

This is a logcat from original android-4.0.1_r1 branch.
-------------
D/WifiP2pService(  177): P2pDisabledState{ what=139265 when=0 }
D/WifiP2pService(  177): WaitForWifiDisableState
D/SoftapController(  114): Softap fwReload - Ok
D/WifiP2pService(  177): WaitForWifiDisableState{ what=131204 when=0 }
D/NetworkManagementService(  177): rsp <213 xx:xx:xx:xx:xx:xx 0.0.0.0
0 [down broadcast multicast]>
D/NetworkManagementService(  177): flags <[down broadcast multicast]>
D/CommandListener(  114): Setting iface cfg
D/CommandListener(  114): Trying to bring down wlan0
D/CommandListener(  114): broadcast flag ignored
D/CommandListener(  114): multicast flag ignored
E/WifiHW  (  177): ctrl_interface != /data/misc/wifi
E/WifiHW  (  177): Unable to open connection to supplicant on "wlan0":
No such file or directory
D/WifiP2pService(  177): P2pEnablingState
D/WifiP2pManager(  497): Ignored { what=139267 when=-39ms }
I/wpa_supplicant( 1103): rfkill: Cannot open RFKILL control device
D/Tethering(  177): interfaceLinkStateChanged wlan0, true
D/Tethering(  177): interfaceStatusChanged wlan0, true
D/Tethering(  177): sendTetherStateChangedBroadcast 1, 0, 0
D/Tethering(  177): interfaceLinkStateChanged wlan0, true
D/Tethering(  177): interfaceStatusChanged wlan0, true
D/WifiP2pService(  177): P2pEnablingState{ what=147457 when=0 }
D/WifiP2pService(  177): P2p start successful
D/WifiP2pService(  177): P2pEnabledState
D/WifiP2pService(  177): DeviceAddress: xx:xx:xx:xx:xx:xx
D/WifiP2pService(  177): InactiveState
-------------

My questions are
1. Is the android branch can be used as a replacement of
external/wpa_supplicant_8 directory in Android source tree ?
2. If it can, the android-4.0.1_r1 branch is correct branch ?

Regards,
Masashi Honma



More information about the Hostap mailing list