There are two symptoms:
The computer wakes up by a wake-on-LAN packet and then goes to sleep, but immediately wakes up again.
The computer wakes up by a wake-on-LAN packet and if you change its TCP/IP setting to something other than Ethernet but don't access the network before the computer goes to sleep again, the computer stops responding ("freezes") after it goes to sleep.
Solution
Use one of these methods to avoid the issue: