Porting ESP8266 Packet Injection to ESP32

wifi_send_pkt_freedom(wifipkt, count, 0)

Where is that function located when you use an ESP8266 ?