ASROCK Z77 EXTREME4 has onboard lan, but it seems to be an PCI-E device.
So In its bios menu there is no “Wake on lan enable” or somewhat.
To enable WOL, you should enable “PCI devices power on”. It’s loacted in ACPI configuration.

You should setup your lan driver, if needed.