I believe people have been misguided with the amount of fat in this thread. The solution to this fix is by simply removing the winhttpautoproxysvc service from dependency.
HKLM\System\CurrentControlSet\Services\WcmSvc
In the root of the key, look for value DependOnService.
Edit it.
Remove WinHTTPAutoProxySvc
Save.
Start Windows Connection Manager service. Start WLAN AutoConfig service.
Then location services complains about being off. Go into Settings, Location. Turn OFF the notifications about location services being off.
It might be a solution on your machine, doesn't mean it's right for everyone else. None of the things have completely fixed my problem, although some have made it more bearable in that it only cannot find my Internet sometimes on coming out of sleep, and more likely when restarting Win 11.