I compiled the source code and inserted the module according to the blogs http://kaustav.codebinders.com/2011/10/install-dwa-125-wireless-driver-on-ubuntu-11-10.html and http://www.konopolis.com/blog/instalacion-de-d-link-wifi-usb-dwa-140-en-ubuntu-12-04-lts.html (spanish,but the commands can be understood.) When I do a lsmod:
lsmod | grep rt
rt5370sta 726167 0
However iwconfig gives:
lo no wireless extensions.
eth0 no wireless extensions.
Could someone please tell me what to do so that I can get the USb adapter running fine.