"Failed to load wifi driver" from application

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

  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