Page 1 of 1

Maximize transmission rate with function esp_wifi_80211_tx()

Posted: Tue Jan 05, 2021 4:48 pm
by doragasu
I need to send raw packets with function esp_wifi_80211_tx() as fast as possible. Currently if I try sending in a loop as fast as possible, sending fails, the function esp_wifi_80211_tx() always returns error and does not recover.

Documentation for this function says the following:

* @attention 4. Only after the previous packet was sent, entered the sent callback,
* the next packet is allowed to send. Otherwise, wifi_send_pkt_freedom
* will return fail.

So if I understand correctly, I must wait until the sent callback is entered before sending another packet to avoid this error. But which callback is that? How can I access that callback? I cannot find how to access this in the documentation.