I have managed to connect to AP
* ifconfig wlan0 up
* iwconfig wlan0 essid 'XXX' key XXXXX
* dhclient wlan0
Now, i know there is sme other AP in the area.
I tried to do the same thing for the other AP, but it did not worked. Maybe I have to do some extra thing?