You need to add wlan0 to the interfaces file. This is at /etc/network/interfaces
add in the lines....

auto wlan0
allow_hotplug wlan0
iface wlan0 inet dhcp
wpa-ssi "network name"
wpa-psk...