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
Is there any way to replace default wifi driver with our usb-wifi
driver ,so that WiFi apis can work??
Please help..
Thanks