This is my first time here, so if I'm disobeying some rules, please be patient.
My problem here is in iwconfig. I have a home network configured with WPA2, and everything works fine with wpa_cli. I can connect without any problems to my encrypted network every time I need.
I cannot connect to open wireless network, though. Since I cannot use wpa_cli for it, I was forced to make use of iwconfig, which first gave me several problems (i.e. "IP address not supported", "set request on ... invalid" etc).
I've found out some workarounds for my previous problem, but now that I try to set my essid using iwconfig, my interface is not assigned an IP address (yes, dhcpcd is running and I've tried to rerun it more than once).
I'm now connecting with a USB tethering, and despite it is annoying, it works fine.
Please help me in any way, it's quite frustrating being connected via usb when you've available an open wi-fi connection!
Also, if you need further information, don't hesitate.