Open Windows PowerShell.
Copy and paste the command mentioned below into Windows PowerShell, then press Enter:
Get-netadapter|select Name, ndisversion
Next, check the NdisVersion number corresponding to Wi-Fi. If the NdisVersion of your PC is 6.30 or above, your system should be Miracast compatible.
=======================
Make sure Firewall is not blocking.
=======================
Open Device Manager
Look for the ‘Network adapters’ entry in the Device Manager window and double-click to expand it.
Under Network adapters, right-click on ‘Microsoft Wi-Fi Direct Virtual Adapter’ and select ‘Enable Device.’
Now that the Wi-Fi Direct driver is enabled, try using the Wireless display feature again to see if the issue is fixed.
=========================
You may need to update WIFI driver.