Windows 11 cuts power to USB ports to save battery, which kills your Wi-Fi.
If your adapter is built into a laptop (like HP or Dell), visit the official support page for your specific model. realtek 8723du wireless lan 80211n usb nic driver windows 11