It had been working just fine until now, but I've tried every solution and sequenceo of commands I've found and nothing seems to work (though I admit I barely understood most of the solutions I've read).
The wifi icon flashes like it's connecting, stays like that for a long time, and eventually stops trying. Sometimes, upon trying to connect to my home network, it just stays fixed on a random bar and never does anything.
Here's what comes out of the commands recommended while posting the question: