WPA3, which is immune against this attack, arrives:
Use a strong password: Even with this attack, the hacker will need to brute force your password. So choose a strong Wi-Fi password, a really strong one. When in doubt you can always rely on a password manager to do the work for you.
Update your router: Update your router as soon as updates are available. If you have a really old router that does not get updates anymore, you should definitely buy a new one – at the very least once the new WPA3 routers are released.