How to use android branch ?

Ryu Cheol ryuch
Wed Apr 25 05:18:57 PDT 2012


Hi!

I believe many of you are interested in newer wpa_supplicant for Android, I do too.
I tried to run 'fe53fe' version on android-4.0.4 for Galaxy Nexus, but I failed to get it running.
Before the trying, I just removed hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib.
 
I attach two log files of android-4.0.4. The first is the failed one. The second is the log of wpa_supplicant_8 of aosp.

Thanks.
Cheol

=== log of 'fe53fe' ===

--------- beginning of /dev/log/main
D/SoftapController(  115): Softap fwReload - Ok
--------- beginning of /dev/log/system
D/NetworkManagementService(  194): rsp <213 00:90:4c:11:22:33 0.0.0.0 0 [down broadcast multicast]>
D/CommandListener(  115): Setting iface cfg
D/CommandListener(  115): Trying to bring down wlan0
D/CommandListener(  115): broadcast flag ignored
D/CommandListener(  115): multicast flag ignored
D/NetworkManagementService(  194): flags <[down broadcast multicast]>
E/WifiHW  (  194): Unable to open connection to supplicant on "wlan0": No such file or directory
D/WifiP2pManager(  430): Ignored { what=139267 when=-52ms }
D/wpa_supplicant(  762): wpa_supplicant v2.0-devel-4.0.4.0.4.0.4
D/wpa_supplicant(  762): Add randomness: count=1 entropy=0
D/wpa_supplicant(  762): random: Added entropy from /data/misc/wifi/entropy.bin (own_pool_ready=2)
D/wpa_supplicant(  762): random: Trying to read entropy from /dev/random
D/wpa_supplicant(  762): Get randomness: len=20 entropy=1
D/wpa_supplicant(  762): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
D/wpa_supplicant(  762): Initializing interface 'wlan0' conf '/data/misc/wifi/p2p_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
D/wpa_supplicant(  762): Configuration file '/data/misc/wifi/p2p_supplicant.conf' -> '/data/misc/wifi/p2p_supplicant.conf'
D/wpa_supplicant(  762): Reading configuration file '/data/misc/wifi/p2p_supplicant.conf'
D/wpa_supplicant(  762): update_config=1
D/wpa_supplicant(  762): ctrl_interface='/data/misc/wifi'
D/wpa_supplicant(  762): eapol_version=1
D/wpa_supplicant(  762): ap_scan=1
D/wpa_supplicant(  762): fast_reauth=1
D/wpa_supplicant(  762): nl80211: interface wlan0 in phy phy0
D/wpa_supplicant(  762): rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
D/wpa_supplicant(  762): rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
D/wpa_supplicant(  762): rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
D/wpa_supplicant(  762): rfkill: initial event: idx=3 type=2 op=0 soft=0 hard=0
D/wpa_supplicant(  762): nl80211: Set mode ifindex 9 iftype 2 (STATION)
D/wpa_supplicant(  762): nl80211: Subscribe to mgmt frames with non-AP handle 0x1e34e10
D/wpa_supplicant(  762): nl80211: Register frame type=0xd0 nl_handle=0x1e34e10
D/wpa_supplicant(  762): nl80211: Register frame match - hexdump(len=2): 04 0a
D/wpa_supplicant(  762): nl80211: Register frame type=0xd0 nl_handle=0x1e34e10
D/wpa_supplicant(  762): nl80211: Register frame match - hexdump(len=2): 04 0b
D/wpa_supplicant(  762): nl80211: Register frame type=0xd0 nl_handle=0x1e34e10
D/wpa_supplicant(  762): nl80211: Register frame match - hexdump(len=2): 04 0c
D/wpa_supplicant(  762): nl80211: Register frame type=0xd0 nl_handle=0x1e34e10
D/wpa_supplicant(  762): nl80211: Register frame match - hexdump(len=2): 04 0d
D/wpa_supplicant(  762): nl80211: Register frame type=0xd0 nl_handle=0x1e34e10
D/wpa_supplicant(  762): nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
D/wpa_supplicant(  762): nl80211: Register frame type=0xd0 nl_handle=0x1e34e10
D/wpa_supplicant(  762): nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
D/wpa_supplicant(  762): nl80211: Register frame type=0xd0 nl_handle=0x1e34e10
D/wpa_supplicant(  762): nl80211: Register frame match - hexdump(len=1): 06
D/wpa_supplicant(  762): nl80211: Register frame type=0xd0 nl_handle=0x1e34e10
D/wpa_supplicant(  762): nl80211: Register frame match - hexdump(len=2): 0a 07
D/wpa_supplicant(  762): netlink: Operstate: linkmode=1, operstate=5
D/wpa_supplicant(  762): nl80211: Using driver-based off-channel TX
D/wpa_supplicant(  762): nl80211: driver param='use_p2p_group_interface=1'
D/wpa_supplicant(  762): nl80211: Use separate P2P group interface
D/wpa_supplicant(  762): nl80211: Regulatory information - country=00
D/wpa_supplicant(  762): nl80211: 2402-2472 @ 40 MHz
D/wpa_supplicant(  762): nl80211: 2457-2482 @ 20 MHz
D/wpa_supplicant(  762): nl80211: 2474-2494 @ 20 MHz
D/wpa_supplicant(  762): nl80211: 5170-5250 @ 40 MHz
D/wpa_supplicant(  762): nl80211: 5735-5835 @ 40 MHz
D/wpa_supplicant(  762): nl80211: Added 802.11b mode based on 802.11g information
D/Tethering(  194): sendTetherStateChangedBroadcast 1, 0, 0
D/wpa_supplicant(  762): wlan0: Own MAC address: a0:0b:ba:d4:87:f7
D/wpa_supplicant(  762): wpa_driver_nl80211_set_key: ifindex=9 alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant(  762): wpa_driver_nl80211_set_key: ifindex=9 alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant(  762): wpa_driver_nl80211_set_key: ifindex=9 alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant(  762): wpa_driver_nl80211_set_key: ifindex=9 alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant(  762): wlan0: RSN: flushing PMKID list in the driver
D/wpa_supplicant(  762): nl80211: Flush PMKIDs
D/wpa_supplicant(  762): wlan0: State: DISCONNECTED -> INACTIVE
D/wpa_supplicant(  762): WPS: Set UUID for interface wlan0
D/wpa_supplicant(  762): WPS: UUID based on MAC address - hexdump(len=16): 14 09 6a 7b d0 0d 5b c1 81 30 a5 0a 4f 17 db cc
D/wpa_supplicant(  762): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant(  762): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant(  762): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant(  762): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant(  762): EAP: EAP entering state DISABLED
D/wpa_supplicant(  762): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant(  762): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant(  762): Using existing control interface directory.
D/wpa_supplicant(  762): ctrl_iface bind(PF_UNIX) failed: Address already in use
D/wpa_supplicant(  762): ctrl_iface exists, but does not allow connections - assuming it was leftover from forced program termination
D/wpa_supplicant(  762): Successfully replaced leftover ctrl_iface socket '/data/misc/wifi/wlan0'
D/wpa_supplicant(  762): P2P: Own listen channel: 1
D/wpa_supplicant(  762): P2P: Random operating channel: 81:1
D/wpa_supplicant(  762): P2P: Add operating class 81
D/wpa_supplicant(  762): P2P: Channels - hexdump(len=11): 01 02 03 04 05 06 07 08 09 0a 0b
D/wpa_supplicant(  762): P2P: Add operating class 115
D/wpa_supplicant(  762): P2P: Channels - hexdump(len=4): 24 28 2c 30
D/wpa_supplicant(  762): P2P: Add operating class 124
D/wpa_supplicant(  762): P2P: Channels - hexdump(len=4): 95 99 9d a1
D/wpa_supplicant(  762): wlan0: Added interface wlan0
D/wpa_supplicant(  762): random: Got 20/20 bytes from /dev/random
D/wpa_supplicant(  762): Get randomness: len=20 entropy=0
D/wpa_supplicant(  762): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
D/wpa_supplicant(  762): RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
D/wpa_supplicant(  762): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant(  762): nl80211: if_removed already cleared - ignore event
D/wpa_supplicant(  762): RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
D/wpa_supplicant(  762): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant(  762): nl80211: if_removed already cleared - ignore event
D/wpa_supplicant(  762): EAPOL: disable timer tick
D/wpa_supplicant(  762): EAPOL: Supplicant port status: Unauthorized
D/dalvikvm(  194): GC_CONCURRENT freed 1766K, 17% free 14749K/17607K, paused 6ms+3ms
I/power   (  194): *** set_screen_state 0
D/SurfaceFlinger(  118): About to give-up screen, flinger = 0xcfc918
D/NfcService(  364): NFC-C OFF, disconnect
W/ThrottleService(  194): unable to find stats for iface rmnet0
D/dalvikvm(  194): GC_FOR_ALLOC freed 139K, 15% free 15027K/17607K, paused 42ms
D/dalvikvm(  194): GC_CONCURRENT freed 10K, 12% free 15570K/17607K, paused 2ms+4ms
V/TransportControlView(  194): Create TCV com.android.internal.widget.TransportControlView at 419a7908
D/PhoneStatusBar(  269): disable: < EXPAND* icons alerts TICKER* system_info back home RECENT* clock >
D/dalvikvm(  194): GC_CONCURRENT freed 20K, 8% free 16214K/17607K, paused 3ms+7ms
D/PhoneStatusBar(  269): disable: < EXPAND icons alerts TICKER system_info BACK* HOME* RECENT CLOCK* >
E/WifiP2pService(  194): Failed to start p2p, retry



=== log of wpa_supplicant_8 in aosp ===
 D/SoftapController(  115): Softap fwReload - Ok
D/CommandListener(  115): Setting iface cfg
D/CommandListener(  115): Trying to bring down wlan0
D/CommandListener(  115): broadcast flag ignored
D/CommandListener(  115): multicast flag ignored
D/NetworkManagementService(  193): rsp <213 a0:0b:ba:d4:87:f7 0.0.0.0 0 [down br
oadcast multicast]>
D/NetworkManagementService(  193): flags <[down broadcast multicast]>
E/WifiHW  (  193): Unable to open connection to supplicant on "wlan0": No such f
ile or directory
D/wpa_supplicant(  899): wpa_supplicant v0.8.x
D/wpa_supplicant(  899): Add randomness: count=1 entropy=0
D/wpa_supplicant(  899): random: Added entropy from /data/misc/wifi/entropy.bin 
(own_pool_ready=2)
D/wpa_supplicant(  899): random: Trying to read entropy from /dev/random
D/wpa_supplicant(  899): Get randomness: len=20 entropy=1
D/wpa_supplicant(  899): random: Updated entropy file /data/misc/wifi/entropy.bi
n (own_pool_ready=2)
D/wpa_supplicant(  899): Initializing interface 'wlan0' conf '/data/misc/wifi/p2
p_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
D/wpa_supplicant(  899): Configuration file '/data/misc/wifi/p2p_supplicant.conf
' -> '/data/misc/wifi/p2p_supplicant.conf'
D/wpa_supplicant(  899): Reading configuration file '/data/misc/wifi/p2p_supplic
ant.conf'
D/wpa_supplicant(  899): update_config=1
D/wpa_supplicant(  899): ctrl_interface='/data/misc/wifi'
D/wpa_supplicant(  899): eapol_version=1
D/wpa_supplicant(  899): ap_scan=1
D/wpa_supplicant(  899): fast_reauth=1
D/wpa_supplicant(  899): nl80211: interface wlan0 in phy phy0
D/wpa_supplicant(  899): rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
D/wpa_supplicant(  899): rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
D/wpa_supplicant(  899): rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
D/wpa_supplicant(  899): rfkill: initial event: idx=3 type=2 op=0 soft=0 hard=0
D/WifiP2pManager(  456): Ignored { what=139267 when=-47ms }
D/wpa_supplicant(  899): netlink: Operstate: linkmode=1, operstate=5
D/Tethering(  193): sendTetherStateChangedBroadcast 1, 0, 0
D/wpa_supplicant(  899): nl80211: Using driver-based off-channel TX
D/wpa_supplicant(  899): nl80211: driver param='use_p2p_group_interface=1'
D/wpa_supplicant(  899): nl80211: Use separate P2P group interface
D/wpa_supplicant(  899): wpa_driver_nl80211_set_key: ifindex=9 alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant(  899): wpa_driver_nl80211_set_key: ifindex=9 alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
/wpa_supplicant(  899): wpa_driver_nl80211_set_key: ifindex=9 alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant(  899): wpa_driver_nl80211_set_key: ifindex=9 alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant(  899): nl80211: Flush PMKIDs
D/wpa_supplicant(  899): WPS: Set UUID for interface wlan0
D/wpa_supplicant(  899): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant(  899): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant(  899): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant(  899): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant(  899): EAP: EAP entering state DISABLED
D/wpa_supplicant(  899): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant(  899): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant(  899): nl80211: Set TX rates failed: ret=-95 (Operation not supported on transport endpoint)
D/wpa_supplicant(  899): P2P: Failed to disable 11b rates
D/wpa_supplicant(  899): wpa_driver_nl80211_driver_cmd <A2>^K<BA>?<F7>V_ADDR len = 0, 12
D/wpa_supplicant(  899): P2P: Device address (a2:0b:ba:d4:87:f7)
D/wpa_supplicant(  899): P2P: Own listen channel: 1
D/wpa_supplicant(  899): P2P: Random operating channel: 81:11
D/wpa_supplicant(  899): nl80211: Regulatory information - country=00
D/wpa_supplicant(  899): nl80211: 2402-2472 @ 40 MHz
D/wpa_supplicant(  899): nl80211: 2457-2482 @ 20 MHz
D/wpa_supplicant(  899): nl80211: 2474-2494 @ 20 MHz
D/wpa_supplicant(  899): nl80211: 5170-5250 @ 40 MHz
D/wpa_supplicant(  899): nl80211: 5735-5835 @ 40 MHz
D/wpa_supplicant(  899): nl80211: Added 802.11b mode based on 802.11g informatio
n
D/wpa_supplicant(  899): P2P: Add operating class 81
D/wpa_supplicant(  899): P2P: Add operating class 115
D/wpa_supplicant(  899): P2P: Add operating class 124
D/wpa_supplicant(  899): random: Got 20/20 bytes from /dev/random
D/wpa_supplicant(  899): Get randomness: len=20 entropy=0
D/wpa_supplicant(  899): random: Updated entropy file /data/misc/wifi/entropy.bi
n (own_pool_ready=2)
D/wpa_supplicant(  899): RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNIN
G][LOWER_UP])
D/wpa_supplicant(  899): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant(  899): RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
D/wpa_supplicant(  899): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant(  899): CTRL_IFACE SET 'persistent_reconnect'='1'
D/WifiP2pService(  193): P2p start successful
D/wpa_supplicant(  899): persistent_reconnect=1
D/wpa_supplicant(  899): CTRL_IFACE SET 'device_name'='Android_af90'
D/wpa_supplicant(  899): device_name='Android_af90'
D/wpa_supplicant(  899): CTRL_IFACE SET 'device_type'='10-0050F204-5'
D/wpa_supplicant(  899): wlan0: P2P: Going to listen(only) state

2012. 4. 24.,  4:15pm, Jouni Malinen wrote:

> 
> On Tue, Apr 24, 2012 at 01:31:25AM +0100, Michael Zintakis wrote:
>>> I've also used this wpa_supplicant version built using the ICS toolchain
>>> on Gingerbread, so this is not really supposed to be specific for single
>>> snapshot either.
>> Would that run on Gingerbread (2.3.x) though? If so, I might be able to 
>> replace my hideous and not -working-properly wpa_supplicant (5.11) with 
>> this one. If not, I may have to ditch the whole setup as that version of 
>> the supplicant is completely useless to me... :-(
> 
> I did get something running there. Whether everything worked is another
> question ;-), but at least the binary was running and I was able to
> connect to an AP. Though, it's been a while since I last tested this, so
> I don't remember all the details.
> 
> -- 
> Jouni Malinen                                            PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap




More information about the Hostap mailing list