This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

wpa_supplicant.conf location

Other Parts Discussed in Thread: WL1271

Hi,

I am trying to port the p54 drivers over to Gingerbread-2-3-4 for a custom wifi module.  I've read the porting guide (http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_PortingGuides) related to the WiFi, and have also seen other web links which have been helpful (http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-android.html). 

In my BoardConfig.mk file, I've added 'BOARD_WPA_SUPPLICANT_DRIVER := WEXT' which allows wpa_supplicant to be built.  I've also added in the paths to the kernel modules for the wireless drivers that I am planning on using for my specific USB dongle.  After the entire system is built, I see that there is a wpa_supplicant binary and wpa_cli binary under ~/rowboat-android/out/target/product/beagleboard/system/bin

I noticed in the porting guide that the init.rc is trying to find wpa_supplicant.conf file @ the location: /system/etc/wifi.  The guide also mentions "Next we need to provide a proper wpa_supplicant.conf for our device. That we will keep in /data/misc/wifi." 

My questions are:

1.) How does wpa_supplicant.conf end up at either of those locations on the android filesystem?  In the blog link that I showed above, it says that the wpa_supplicant.conf file needs to be copied by the AndroidBoard.mk file to /system/etc/wifi

I tried adding:

PRODUCT_COPY_FILES += \
    $(LOCAL_PATH)/../../../external/wpa_supplicant/wpa_supplicant.conf:$(TARGET_OUT_ETC)/system/etc/wifi/wpa_supplicant.conf
to my AndroidBoard.mk file.  Is this what we need to do? It seems that without this modification to AndroidBoard.mk file, the /system/etc/wifi folder is not created until the init.rc file.  It seems like there might be a conflict if the AndroidBoard.mk is creating a /system/etc/wifi folder and then init.rc also tries to create another /system/etc/wifi folder?

2.) I'm confused as to the difference in the wpa_supplicant.conf file in /system/etc/wifi and /data/misc/wifi.  Are they the same file?  Should i be copying the wpa_supplicant.conf file to /data/misc/wifi instead of /system/etc/wifi?

Thanks in advance.

Kiran

  • If you look at the Makefile for WL12xx WLAN driver at hardware/ti/wlan/WL1271_compat/drivers/Makefile, you can see that currently we are copying the wpa_supplicant.conf to  /data/misc/wifi

    This is the path used when invoking wpa_supplicant in init.rc