Like sabin1001, my router needed ath0 instead of eth0 (it's a D-Link). I tried sabin's code, but it didn't work well: the light on my router indicating that ath0 is on was blinking like mad, and the radio was still off. So I modified the code again, and after a sleepless night experimenting...