1. Make sure that the Wi-Fi module on the device is working properly, and make sure that Wi-Fi is enabled.
2. Make sure that you have installed the correct version of wpa_supplicant. Please perform as detailed in the Preparations section.
3. Make sure that the network adapter on the device supports the P2P function.
4. Make sure that the network adapter name for your device starts with "wlx" or "p2p-dev-".