Page 1 of 1

sending 802.11 data frame with esp_wifi_80211_tx()

Posted: Thu Jan 17, 2019 11:39 am
by humptydumpty
Hi,

I wonder if anyone can post a complete example of sending an 802.11 data frame using the function esp_wifi_80211_tx.

Although it appears I am successfully sending something, my wireshark captures don't indicate any data. Maybe there is a wrong checksum or something like that.

Although there are plenty of examples of sending beacon frames, I don't see anything online for sending data frames, which have obviously a different structure.

Any help would be much appreciated.

esp_wifi_80211_tx() and FCS

Posted: Sat Jan 19, 2019 1:47 pm
by humptydumpty
Maybe somebody can answer as to whether esp_wifi_80211_tx() generates the FCS or not. Actually I am having a problem with the FCS specifically. I use the ESP32 sniffer to capture frames and the FCS captured does not correspond to CRC of the payload.

Therefore I don't know how to generate the FCS for the esp_wifi_80211_tx() function or whether it is actually needed.

Re: sending 802.11 data frame with esp_wifi_80211_tx()

Posted: Sun Jan 27, 2019 8:16 pm
by humptydumpty
Answering my own question, in fact the esp_wifi_80211_tx function does automatically calculate FCS. My UDP packets were getting lost because I didn't calculate the IP header checksum correctly.

Re: sending 802.11 data frame with esp_wifi_80211_tx()

Posted: Tue Apr 28, 2020 10:25 pm
by jusanchez
Hi!

Do you have an example?

Thanks