I guess Im more confused. Your dmesg states you have an internet connection:
[ 52.572995] wlan0: authenticate with AP 00:14:bf:10:e3:4a
[ 52.574493] wlan0: authenticated
[ 52.574497] wlan0: associate with AP 00:14:bf:10:e3:4a
[ 52.576539] wlan0: RX AssocResp from 00:14:bf:10:e3:4a (capab=0x411 status=0 aid=1)
[ 52.576542] wlan0: associated
I'm not sure what to suggest since some of the output you give us is conflicting. In some cases you have a connection, in others you do not! Have you tried unloading and reloading the driver (modprobe statements) and then making a manual connection? A helpful link may be found in my signature. Its also possibly a driver problem. I dont know a lot about the ath5k_pci driver -- Have you found more info on this driver on google or the linuxwireless.org website?