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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

9,132 Views
ThanarajS
Contributor III

Hi All,

   We have ported the driver in Android 7 platform for our wifi device. Driver is installed and while running supplicant we were not able to find the wpa_supplicant related configuration files in /system/etc/wifi/ directory and /data/misc/wifi/ driectory.

Output:
01-01 01:32:26.183   173   423 E WifiHW  : VAP created Successfully
01-01 01:32:26.183   173   423 E WifiHW  :
01-01 01:32:27.252   173   423 E WifiHW  : ****Inside STA wifi.c wifi_get_fw_path out_iface is
01-01 01:32:27.255   427   477 E NetdConnector: NDC Command {22 softap fwreload wlan0 STA} took too long (7071ms)
01-01 01:32:27.255   427   477 E NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 0 22 Ok
01-01 01:32:27.256   427   473 E NetdConnector: NDC Command {23 bandwidth gettetherstats} took too long (1119ms)
01-01 01:32:27.296   173   423 D CommandListener: Setting iface cfg
01-01 01:32:27.296   173   423 D CommandListener: Trying to bring down wlan0
01-01 01:32:27.298   173   423 D CommandListener: Clearing all IP addresses on wlan0
01-01 01:32:27.321   427   477 E WifiMonitor: killSupplicant p2pfalse init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
01-01 01:32:27.348   427   477 E wifi    : Can not initialize the vendor function pointer table
01-01 01:32:27.348   427   477 E WifiNative-HAL: Could not start hal
01-01 01:32:27.349   427   477 E WifiStateMachine: Failed to start HAL
01-01 01:32:27.349   427   477 E WifiHW  : Cannot open "/system/etc/wifi/wpa_supplicant.conf": No such file or directory
01-01 01:32:27.349   427   477 E WifiHW  : Wi-Fi will not be enabled
01-01 01:32:27.349   427   477 E WifiStateMachine: Failed to start supplicant!
01-01 01:32:27.361   427   427 E WifiController: WifiControllerWifi turn on failed
01-01 01:32:27.491  1054  1090 D Index   : Deleting data for locale 'en_US' took 103 millis
01-01 01:32:27.522  1054  1090 D Index   : Indexing locale 'en_US' took 31 millis

Please help me to get supplicant config files in corresponding directory.

Thanks....

Regards,

Raj.

Regards,
Thanaraj Subramani
Labels (5)
0 Kudos
13 Replies

3,307 Views
diegoadrian
NXP Employee
NXP Employee

Hello Thanaraj,

How you are compiling the kernel image?

Best Regards,

Diego.

0 Kudos

3,307 Views
ThanarajS
Contributor III

Hi Diego,

   Thanks for reply.

   Actually the version magic error is cleared by recompiling the driver after modification in kernel imx. So this time we didn't face any issue while inserting the SDIO module.

   Could you please give simple explanation for BCMDHD? How dhd module init function is initiating and how SDIO Card is getting registered in SD Host Controller?

Is there any SDIO specification for Android?[like sdio card version..........etc]. Can we use other vendor SDIO card by disabling the BCM in kernel config?

Regards,

Thanaraj.

Regards,
Thanaraj Subramani
0 Kudos

3,307 Views
diegoadrian
NXP Employee
NXP Employee

Hello Thanaraj,

I found this document of how to support a new WiFi card in Android.

Probably, this document can solve your problem.

How to Support New WiFi Card in Android  

Best Regards,

Diego.

0 Kudos

3,307 Views
diegoadrian
NXP Employee
NXP Employee

Hello Raj,


I do not know if you can provide us the driver that the WiFi Module is using, or the name of the driver, that you are using.


Because, we do not have that WiFi Module and unfortunately, I cannot test it by myself. I can only tell you if I can active the driver in the kernel's menuconfig.


Best Regards,

Diego.

0 Kudos

3,307 Views
ThanarajS
Contributor III

Hi Diego,

   As you said could please guide us how to active the driver in kernel's menuconfig.

   Name of the driver: Redpine Signals Wireless Driver.

   You can see the driver in kernel_imx[/drivers/net/wireless/rsi]

Thanks!!!

Regards,

Raj.

Regards,
Thanaraj Subramani
0 Kudos

3,307 Views
diegoadrian
NXP Employee
NXP Employee

For that, you need to go to the following path in the Linux terminal, ~/myandroid/kernel_imx, and type "make menuconfig".

When the kernel configuration menu appears, you need to go to:

Device Drivers --->

   Network device support --->

                       Wireless LAN --->

                              Press space bar in: Redpine Signal Inc 91x WLAN driver support and save the configuration, without                               changing the name.

But, you need to build your kernel image separately.

I hope this can solve your problem.

0 Kudos

3,307 Views
ThanarajS
Contributor III

Hi Diego,

   As per your suggestion we have enabled our driver in kernel configuration. after this change we try to insert our driver in android platform, but its throwing version magic error,

ERROR:

   version magic '4.1.15 SMP preempt mod_unload ARMv7 p2v8 ' should be '4.1.15-dirty SMP preempt mod_unload ARMv7 p2v8 '

And also observed that, if we modify anything in kernel config that time we observed above error. if we use the kernel imx without any change its working fine.

Could you please tell how to make it work by changing kernel config.

Regards,

Thanaraj.

Regards,
Thanaraj Subramani
0 Kudos

3,307 Views
diegoadrian
NXP Employee
NXP Employee

Hello Thanaraj,

In order for a hardware component to properly interface with Android, it must have a corresponding hardware "module" (unrelated to kernel modules) that conforms to the API specified for that type of hardware.

Generally, each type of hardware supported by Android has a corresponding system service HAL definition. There's a Lights Service and a lights HAL definitions. There's a WiFi Service and a WiFi HAL definition.

You need to ask for the Android libraries to RedPine and then retry the kernel configuration with the menuconfig.

Best Regards,

Diego. 

0 Kudos

3,307 Views
ThanarajS
Contributor III

Hi Diego,

   Yeah. I can understand what you have explained. My question is,

   Case 1: Redpine Driver is working properly in android [We have done Wi-Fi & Bluetooth bringup] - without changing kernel part.

   Case 2: if i change a single line [just commenting one line ] in kernel, we are getting version magic error. For this we need solution?

                  For kernel compilation we followed steps in android user guide.

Regards,

Thanaraj.

Regards,
Thanaraj Subramani
0 Kudos

3,307 Views
diegoadrian
NXP Employee
NXP Employee

Hello Raj,

Thank you for writing.

Here it is the left wpa_supplicant.conf. But, it will not work if it is not configured in the kernel. To configure the kernel, you need to set the option in the menu config before you build the Android image.

I hope this can help you.

Best Regards,

Diego.

0 Kudos

3,307 Views
ThanarajS
Contributor III

Hi Diego,

   Could you please explain in brief ?.. What option i need to set in Menu config and how to configure Kernel?

   As we are not following any separate steps to configure Kernel. Below command only we used to make android image, while making android image itself kernel configuration and compilation done[observed in log],

   $ make 2>&1

Thanks!!!

Regards,

Raj.

Regards,
Thanaraj Subramani
0 Kudos

3,307 Views
diegoadrian
NXP Employee
NXP Employee

Can you please tell me the WiFI driver that you are using?

0 Kudos

3,307 Views
ThanarajS
Contributor III

Hi Diego,

   I am using vendor Redpine signals Inc WiFi Module and its driver.

   Still we are facing the same issue. Could please tell me the suggestion to fix this issue.

Regards,

Raj.

Regards,
Thanaraj Subramani
0 Kudos