First disable the network manager. Then use Joe's solution:
# iwconfig ath0 essid my-network
# dhclient ath0
or use wifi-radar. Once you have created a network in wifi-radar press the connect button. It should connect to your network. If you are too lazy to do this everytime you boot up then add wifi-radar -d
to your startup script.