These can fail in odd ways.
i have 2 laptops (1 new), 1 samsung smart tv, 2 cell phones all using wifi and everything was fine until a few days ago.
I have a cable modem connected to the wifi router Wan port.
The wifi router is about 8 years old.
Now, the older laptop will only connect to wifi if and only if TV wifi is running, sometimes not even with that. The wifi runs ok at work.
The newer laptop does work sometimes with both TV on or off.
All devices are set to acquire dynamic ip and dhcp addresses.
I have tried shutting down and rebooting everything many times to isolate the problem but so far cannot understand dependency on the TV.