No WiFi P2P Adapers found in Gnome Network Displays

I wanted to use gnome network displays but this is the error it is showing


WiFi is enabled and connected.
I am not sure how to check if WiFi P2P is available.
I have allowed P2P and ChromeCast connections through the firewall
Can anyone help me with this

Are you attempting to create a direct connection between two devices without any access point in the middle?

No I am connected to a router and my tv is also connected to it i want to cast my screen to miracast on tv so i downloaded gnome network displays for it.