First, I'm referring to the Wi-Fi P2P standard as described here, and specified here. I'm not referring to the method of creating an AP and station pair.
Second, if an implementation of Wi-Fi Direct for the ESP32 already exists, please share. I've searched far and wide and have not found one.
Specifically, I want to implement Wi-Fi Direct for the ESP32-WROOM-32E. My understanding is that the hardware is theoretically capable of handling the Wi-Fi Direct standard, but that the software hasn't been written to do so. Please correct me if I'm wrong on this point.
Assuming it is possible, could Espressif's ESP-IDF be used to implement Wi-Fi Direct, using functions such as esp_wifi_80211_tx
(described here)? Or would such an implementation need to written at a lower level? If so, how low? Would I need to start learning the instruction set for the Xtensa processor in the ESP32-WROOM-32E? Or is there an intermediate-level API between bare metal and ESP-IDF?