Unplugged ethernet
sudo killall wpa_supplicant
sudo wpa_supplicant -i wlan0 -D nl80211 -c /etc/wpa_supplicant.conf
sudo dhclient wlan0
called ping www.startpage.com about 20 times, and suddenly by some miracle it
started receiving.
I don't the reason to why it suddenly started working,
but i think it might be the config file as i think that was the last thing i
changed (or just that i did not tell wpa_supplicant to run in background mode
with the option -D)?
Thanks all for your help!
wpa_supplicant.conf
network={
ssid="ssid"
#psk="passphrase"
proto=WPA
scan_ssid=1
key_mgmt=WPA-PSK
psk=passphrase_no_quotes_surrounding_it
}