Wi-Fi works, but wired (Ethernet) is vastly superior for competitive gaming. If wireless is mandatory, optimize with these steps.
Bottom line: Run a cable if possible. If not, 5 GHz + QoS + Powerline/MoCA = playable. 2.4 GHz = frustration.