How to use android branch ?

Jouni Malinen j at
Mon Apr 23 18:18:22 EDT 2012

On Mon, Apr 23, 2012 at 10:54:38PM +0900, Masashi Honma wrote:
> I found a new branch on hostap.git tree.

It's been there for a while..

> 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.

You shouldn't really need that define for most purposes, but the current
snapshot does indeed include most of the changes from AOSP. The changes
depending on this define will hopefully disappear over time with cleaner
design and new Android releases.

> 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.

Did you test non-P2P station use?

> 1. Is the android branch can be used as a replacement of
> external/wpa_supplicant_8 directory in Android source tree ?

In theory, yes, but there is only limited testing of this branch with
Galaxy Nexus (or any other specific device/ICS release version in
general). In other words, things may break and not get fixed until
pointed out.. Anyway, my goal is to keep this as a more up-to-date
version of wpa_supplicant for Android than what is available in AOSP.
Though, it should be noted that I'm hoping the need for this to go down
in the future with Android moving closer to the upstream wpa_supplicant,
so that I could stop maintaining this.

> 2. If it can, the android-4.0.1_r1 branch is correct branch ?

Well, I don't think it would be fair to say that any specific branch is
"correct" since this is really a snapshot of wpa_supplicant for the
latest Android release. I happened to be running most of my build tests
with android-4.0.1_r1, but I've moved to a newer snapshot. Then again,
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. Anyway, not all functionality is expected to be work
and be stable with all combinations one can come up with ;-).

Jouni Malinen                                            PGP id EFC895FA

More information about the HostAP mailing list