Finally after so many hours I was able to connect to the internet. I decided to do a fresh install. I set up everything and now I can't connect to the internet again arghhh.
Iwconfig connects to my AP perfectly. I'm able to ping my router and link quality is good. Whenever I restart my computer and type IFCONFIG it doesn't show WLAN0 unless I type the command ifconfig wlan0 up. Second of all I tried to use dhcp and static I ended up with the same result. no internet connection

I tried to set settings manually in ifcfg-wlan0, /etc/pcmcia/config.opts and /etc/network.opts. I tried to setup IP, netmask, gateway, essid, dhcp, static, dns and nothing helps me to connect to the internet.
Basically as you can see my wireless network card finds my router and able to connect to it but I'm unable to connect to the internet. What should I do?