maybe you should install wireless-tools and do an "iwconfig wlan0 mode managed"
ifconfig wlan0 down /etc/init.d/wlancond restart ifconfig wlan0 up