Run the Network and Internet Troubleshooter via the Get Help app in Windows 11 and see if it works. You can also try to change your power plan. Open the Control Panel and type power in the search bar.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results