My Canon used wi-fi happily for some years.
It then stopped, for no apparent reason. Nothing else changed. (That I know about).
Reading about the issue on Mr Google showed me that my will to live was stronger than my will to solve wi-fi problems.
It now works happily with a cable.