Hello everybody!
I bought the wifi dongle mentioned, D-Link DWA-131 based on Realtek 8192su chipset, based on the list of supported devices. WPA supplicant wouldn't work (it would associate then immediately disassociate with the ap) so I installed wicd that, according to the list of supported devices, would work. Well it did... Sort of.
The problem is that wifi association is very very flakey. Wicd can find the network without problem, tries to connect, gets through validation but then it's a real mystery what will happen next. In a few occasions it will connect just fine, maintaining connection for as long as I leave pi turned on, sometimes it will connect then immediately disconnect after 2-3 seconds. Most of the time though, it won't even connect for a second. I've tried a couple of solutions mentioned here, like putting my info straight into the interfaces file, but without result. I'm convinced it's not a problem with power, as I've already tried powered hub, not mentioning that it sometimes works no matter how much I stress the Pi.
DHCP also does not work. All the times that the dongle had connected I had used static ip. Ifup complains about no dhcp offers.
Could please somebody help fix this? I'm willing to provide any info needed. It's really frustrating, because I chose the adapter specifically for its compatibility, I didn't just have it around as a spare. Thank you very much in advance and sorry for the long post.