Have a look at the
hardware/libhardware_legacy/wifi/wifi.c .
If ur wifi driver is built as part of the kernel
please set these property initrc

setprop wifi.interface "wlan0"
setprop wlan.driver.status "ok"
setprop init.svc.wpa_supplicant "running"




On Fri, Jan 29, 2010 at 6:54 PM, Ask <asifk1...@gmail.com> wrote:

> 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
>
> --
> unsubscribe: 
> android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> website: http://groups.google.com/group/android-porting




-- 
with regards vishal

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to