"Failed to load wifi driver" from application

3 views
Skip to first unread message

Ask

unread,
Jan 29, 2010, 8:24:01 AM1/29/10
to Embinux Labs
Hi all,

I am using android on beagleboard and enabled the wifi on the board
using DLink 110 adapter. It works fine when enabling the wifi
manually.

I had enable usb to Wifi (ralink) driver in the linux kernel.

Now I want to enable the same and connect with ssid using Android
Applications and APIs ( WifiManager, WifiConfiguration etc.). I have
also given required permissions.

But when I am doing so I am getting error in the logcat saying "
Failed to load Wifi driver" ( same as in the emulator)

So my doubt is whether it is searching the inbuilt wifi driver, as my
driver is USB to WiFi. What can be the solution?? My java code is as
follows,

----------------------------------------------------
final WifiManager wifi = (WifiManager)getSystemService(service1);
if (!wifi.isWifiEnabled())
if (wifi.getWifiState() != WifiManager.WIFI_STATE_ENABLING)
wifi.setWifiEnabled(true);
wifiConfiguration = new WifiConfiguration();
wifiConfiguration.SSID ="ready";
wifiConfiguration.priority= 1;
wifiConfiguration.allowedAuthAlgorithms.set
(WifiConfiguration.AuthAlgorithm.OPEN);
wifiConfiguration.allowedKeyManagement.set(KeyMgmt.NONE);
wifiConfiguration.allowedGroupCiphers.set
(WifiConfiguration.GroupCipher.TKIP);
wifiConfiguration.status = WifiConfiguration.Status.ENABLED;
wifiConfiguration.networkId = wifi.addNetwork
(wifiConfiguration);
wifi.enableNetwork(wifiConfiguration.networkId, true);

-------------------------------------------------

Thanks in advance...
Asif

Ask

unread,
Feb 1, 2010, 5:13:40 AM2/1/10
to Embinux Labs
I think default wifi driver is enabled in the kernel but no hardware
available for that so, whenever I am using WiFi APIs it is trying to
load the driver but could not.

Is there any way to replace default wifi driver with our usb-wifi
driver ,so that WiFi apis can work??

Please help..
Thanks

Reply all
Reply to author
Forward
0 new messages