Cannot open "/system/etc/wifi/wpa_supplicant.conf": No such file or directory

1,731 views
Skip to first unread message

guru

unread,
Jul 26, 2010, 9:14:15 AM7/26/10
to android-porting
When I try to enable the wifi it is throwing

Cannot open "/system/etc/wifi/wpa_supplicant.conf": No such file or
directory

below is the logs for the same.

D/WifiVdr ( 1023): leave from insmod
D/WifiVdr ( 1023): leave from wlan_load_driver
D/WifiHW ( 1023): call wlan_load_driver, return ok
E/WifiHW ( 1023): Cannot open "/system/etc/wifi/wpa_supplicant.conf":
No such file or directory
E/WifiHW ( 1023): Wi-Fi will not be enabled
D/WifiVdr ( 1023): enter into wlan_unload_driver
D/WifiVdr ( 1023): enter into check_driver_loaded
D/WifiVdr ( 1023): enter into rmmod

Please let me know what is the problem?

Thanks
Guru

Ashwin Bihari

unread,
Jul 26, 2010, 9:58:11 AM7/26/10
to guru....@gmail.com, android-porting
Did you copy a wpa_supplicant.conf file into the system/etc directory
during Android build? If not..THAT is the problem..

-- Ashwin

> --
> unsubscribe: android-porti...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>

guru

unread,
Jul 26, 2010, 10:08:16 AM7/26/10
to android-porting
Hi Ashwin,

Who will copy that file during build time? Sorry may be this is basic
question!
Whether I have to enable any flag to make it happen !

Thanks
Guru

On Jul 26, 6:58 pm, Ashwin Bihari <abih...@gmail.com> wrote:
> Did you copy a wpa_supplicant.conf file into the system/etc directory
> during Android build? If not..THAT is the problem..
>
> -- Ashwin
>

Ashwin Bihari

unread,
Jul 26, 2010, 10:16:14 AM7/26/10
to guru....@gmail.com, android-porting
Read this posting..that'll explain all the necessary details:

http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-android.html

-- Ashwin

Weber

unread,
Jul 26, 2010, 8:56:09 PM7/26/10
to android-porting
Hi,guru
Which version did you use? Last week I got the same problem
and after replacing external/wpa_supplicant with donut version,I can
now use the wifi~

Regards
--Weber

On Jul 26, 10:16 pm, Ashwin Bihari <abih...@gmail.com> wrote:
> Read this posting..that'll explain all the necessary details:
>
> http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi...
>
> -- Ashwin

guru

unread,
Jul 27, 2010, 12:24:04 AM7/27/10
to android-porting
Hi Weber,

I am trying to enable wifi in froyo build. I dont know where to
lookinto. I am looking into whatever ashwin told.

Thanks
Gururaja B O

guru

unread,
Jul 27, 2010, 1:31:53 AM7/27/10
to android-porting
Hi Ashwin,

whether I have to modify BoardConfig.mk and AndroidBoard.mk which are
in

./vendor/<vendor_name>/BoardConfig.mk
./vendor/<vendor_name>/AndroidBoard.mk

is it right?

Currently in AndroidBoard.mk nothing is there
and

in BoardConfig.mk

# config.mk
#
# Product-specific compile-time definitions.
#

# The generic product target doesn't have any hardware-specific
pieces.
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
TARGET_CPU_ABI := armeabi
HAVE_HTC_AUDIO_DRIVER := false
BOARD_USES_GENERIC_AUDIO := false

# Enable MM PXA hardware
TARGET_BOARD_PLATFORM := pxa
TARGET_BOARD := BSW

# Tavor PV MVED hardware support
IPP_MVED := true
#Hardware Platfrom definiton
TARGET_BOOTLOADER_BOARD_NAME := BSW

Whether I need to modify these files?

Thanks
Gururaja B O

guru

unread,
Jul 27, 2010, 2:53:41 AM7/27/10
to android-porting
Hi Ashwin,

Now it is creating wpa_supplicant.conf.

I forgot to add driver specific details in external/wpa_supplicant/
Android.mk

after adding this the file is copying to that location.

Next I am not getting how to provide proper wpa_supplicant.conf for my
device.
it is now throwing

E/wpa_supplicant( 1340): Failed to initialize control interface
'wlan0'.

previously it was working for

ctrl_interface=DIR=/data/misc/wifi/sockets/server GROUP=wifi

now it is showing ctrl_interface=wlan0

How to make this changes? will this will done during build time or we
have to do manually?

Thanks
Guru



On Jul 26, 7:16 pm, Ashwin Bihari <abih...@gmail.com> wrote:
> Read this posting..that'll explain all the necessary details:
>
> http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi...
>
> -- Ashwin
Reply all
Reply to author
Forward
0 new messages