About compiling wpa_supplicant

1,371 views
Skip to first unread message

im.elt...@gmail.com

unread,
Mar 26, 2009, 5:36:03 AM3/26/09
to android-platform
Hi,
Anyone can tell me how to compile wpa_supplicant? I found out the
module name "libwpa_client" that appeared on the ~/mydroid/external/
wpa_supplicant and I did make libwpa_client. I noticed that compiling
libwpa_client actually need to refer to libCustomWifi and libWifiApi
libraries, but, in fact, both libCustomWifi and libWifiApi libraries
doesn't exist anymore on the android platform.

In fact, I don't really know that android wifi could work normally,
although I can get libwpa_client.so. Maybe someone can tell me if I
want to use android wifi, what steps i have to do before using it?

tks

François Guillemé

unread,
Mar 26, 2009, 9:56:44 AM3/26/09
to android-...@googlegroups.com
In external/wpa_supplicant/Android.mk add the line WPA_BUILD_SUPPLICANT:=true at the beginning otherwise it builds only with the TI wifi hardware. But you need to set the appropriate driver in wpa_supplicant .config
Then it works fine
--
François

im.elt...@gmail.com

unread,
Mar 26, 2009, 10:54:04 PM3/26/09
to android-platform
I followed your step and did "make" again , but one error message
return
->" make: *** No rule to make target `out/target/product/generic/obj/
STATIC_LIBRARIES/libCustomWifi_intermediates/libCustomWifi.a', needed
by `out/target/product/generic/obj/EXECUTABLES/
wpa_supplicant_intermediates/LINKED/wpa_supplicant'. Stop."

Could you tell me what happened? It seems that libCustomWifi module
could not be compiled




On 3月26日, 下午9時56分, François Guillemé <franc...@guilleme.net> wrote:
> In external/wpa_supplicant/Android.mk add the line
> WPA_BUILD_SUPPLICANT:=true at the beginning otherwise it builds only with
> the TI wifi hardware. But you need to set the appropriate driver in
> wpa_supplicant .config
> Then it works fine
>
> On Thu, Mar 26, 2009 at 10:36 AM, im.eltont...@gmail.com <
>
>
>
>
>
> im.eltont...@gmail.com> wrote:
>
> > Hi,
> > Anyone can tell me how to compile wpa_supplicant? I found out the
> > module name "libwpa_client" that appeared on the ~/mydroid/external/
> > wpa_supplicant and I did make libwpa_client. I noticed that compiling
> > libwpa_client actually need to refer to libCustomWifi and libWifiApi
> > libraries, but, in fact, both libCustomWifi and libWifiApi libraries
> > doesn't exist anymore on the android platform.
>
> > In fact, I don't really know that android wifi could work normally,
> > although I can get libwpa_client.so. Maybe someone can tell me if I
> > want to use android wifi, what steps i have to do before using it?
>
> > tks
>
> --
> François- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

deepak singal

unread,
Jun 29, 2009, 1:26:22 AM6/29/09
to android-...@googlegroups.com

Hi all,

Anyone can tell me how to compile wpa_supplicant in cupcake-1.5?
I followed below steps for wpa_supplicant:

--> In ~/mydroid/external/wpa_supplicant/Android.mk add below lines

ifeq ($(HAVE_CUSTOM_WIFI_DRIVER_0),true)
WPA_BUILD_SUPPLICANT := true
CONFIG_DRIVER_CUSTOM=y
endif
ifeq ($(HAVE_CUSTOM_WIFI_DRIVER_1),true)
WPA_BUILD_SUPPLICANT := true
CONFIG_DRIVER_CUSTOM=y
endif
ifeq ($(HAVE_CUSTOM_WIFI_DRIVER_2),true)
WPA_BUILD_SUPPLICANT := true
CONFIG_DRIVER_CUSTOM=y
endif
ifeq ($(HAVE_WEXT_WIFI_DRIVER),true)
WPA_BUILD_SUPPLICANT := true
CONFIG_DRIVER_WEXT=y
endif

--> In ~/mydroid/build/target/board/generic/BoardConfig.mk add below lines

HAVE_CUSTOM_WIFI_DRIVER_2 := true
HAVE_WEXT_WIFI_DRIVER   := true
USE_PRODUCT_WIFI_CONF   := true

but below error message return
/*******************************************************/
make: execvp: /bin/bash: Argument list too long
target thumb C: wpa_supplicant <= external/wpa_supplicant/driver_wext.c

make: *** No rule to make target `out/target/product/generic/obj/STATIC_LIBRARIES/libCustomWifi_intermediates/libCustomWifi.a', needed by `out/target/product/generic/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant'.  Stop.
/*******************************************************/

Thanks & Regards
Deepak

Reply all
Reply to author
Forward
0 new messages