Try on these steps bellow and test again for the result :
- Restart WLAN AutoConfig and Clear P2P Groups
net stop wlansvc
net start wlansvc
Then delete any persistent P2P groups:
netsh wlan delete profile name="DIRECT-*"
- Reset Network Stack
netsh int ip reset
netsh winsock reset
ipconfig /flushdns
==> Restart your PC.
- Check for Pending P2P Sessions in Registry because sometimes ghost P2P devices are stuck somewhere
Open Registry Editor: - Navigate to :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WlanSvc\Interfaces\
- Delete or export/backup stale entries under interfaces or
P2P
.
==> Then restart.
- Reinstall or Reset Wi-Fi Driver
Open Device Manager
Right-click your Wi-Fi adapter → Uninstall
Reboot or reinstall latest driver from the vendor
- Ensure the Receiver Is Advertising
Use Wireshark in monitor mode and filter for: wlan.ssid contains "DIRECT"
*Make sure the receiver is broadcasting its P2P-SSID.
If not, power cycle the sink device.
- Force Miracast Reinitiation because sometimes Windows caches previous failures. To do this:
Open Settings > Devices > Bluetooth & other devices
Remove the receiver device under Wireless displays
Retry projection from scratch (Win + K or Project > Connect)
- Use
netsh wlan show p2p
to Check State and inspect if P2P discovery is running
netsh wlan show wlanreport
netsh wlan show p2p device
netsh wlan show interfaces
And the root cause for "Windows P2P Stack Can Become Stuck" may cause by an abrupt reboot, the P2P driver stack can remain in a broken or uninitialized state, especially if the shutdown happened during:
Group Owner negotiation
Active streaming
Soft AP teardown
So no PDR is triggered in future sessions unless forced reset of the WLAN stack occurs.