I have my network setting stored in /etc/wpa_supplicant.conf and my /etc/network/interfaces looks like this:
auto lo, eth0, wlan0
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf
To connect to the network I have to run sudo ifconfig wlan0 up followed by sudo ifup wlan0 after every boot. Not ideal as im running raspbmc
How can I get wlan0 up and connect on boot, I have tried added the commands to /etc/rc.local but that didn't work.