You're trying to send the magic packet from one wired Mac to another, right? Magic packets are broadcast (which is why you have to specify the remote computer by hardware (aka MAC) address rather than by ip) and broadcasts are limited to a single network. The wired ports on the router and the wireless network are separate networks so you can't send magic packets from one to the other.
I haven't used WoL with Macs but I have with PCs. I use the perl script, "wakeonlan" for that purpose. gsd.di.uminho.pt/jpo/software/wakeonlan/