iPhone won't connect to wifi in an incredibly frustrating way
I can't make my phone either connect to or disconnect from WiFi. An example: right now, I'm home and my Mac laptop is connected to my home wifi network. My phone is next to my computer, so theoretically has similar signal, but is not connecting. BUT if I look at wifi on my phone in control center, it shows the name of my network and an IP address etc - all the things that imply it is, in fact, connected. BUT the wifi symbol is not appearing in the upper right of my phone (just cell bars) and when I try to do something like download an app, it asks me if I want to wait for a wifi connection. The frustration comes from the fact that I can't actually do anything - I go to connect to wifi, and it shows I already have. I disconnect, and nothing changes. I note this also seems to happen in reverse - if I am someplace where I want to stop using the wifi, it takes 2-6 tries to get my phone off the network.
This has been going on for at least a month.
I have rebooted but that has not changed the situation.
iPhone 12 pro max running iOS 15.5