Your Wi-Fi driver is old, or hardware doesn't support Wi-Fi Direct. Fix: As mentioned, update your Network Adapter driver from Device Manager. If still broken, your hardware is incompatible.
Connect a Windows 8.1 or 10 laptop to a TV wirelessly - Glasgow Life miracast download for windows 8.1 free
If you want, tell me your PC model or run the netsh command and paste the output; I’ll tell you whether your machine supports Miracast and next steps. Your Wi-Fi driver is old, or hardware doesn't