How to configure wireless wake-on-lan for Linux WiFi card

Originally published at:

I have Network Attached Storage (NAS) server that backups all my devices. However, I am having a hard time with my Linux powered laptop. I cannot backup my laptop/computer when it is in suspended or sleep mode. How do I configure my wifi on a laptop to accept a wireless wol when using Intel-based wifi card? How can I configure wireless wake-on-lan on Linux?