Skip to content

esp: check ll send return value.#145

Open
philljj wants to merge 1 commit into
wolfSSL:masterfrom
philljj:esp_fix
Open

esp: check ll send return value.#145
philljj wants to merge 1 commit into
wolfSSL:masterfrom
philljj:esp_fix

Conversation

@philljj

@philljj philljj commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description

Add missing return value check for ll_dev->send( in esp.c.

Testing

make clean && make && make unit-esp && ./build/test/unit-esp

@philljj philljj self-assigned this Jul 23, 2026
Copilot AI review requested due to automatic review settings July 23, 2026 21:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ESP transmit path to handle the return value from the link-layer send() callback, aiming to avoid silently ignoring TX failures.

Changes:

  • Capture and check the return value of ll_dev->send() in esp_send().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/wolfesp.c
Comment on lines +1871 to +1876
esp_rc = ll_dev->send(ll_dev, esp, ip_final_len + ETH_HEADER_LEN);
if (esp_rc != (ip_final_len + ETH_HEADER_LEN)) {
ESP_LOG("error: esp dev send: sent %d, expected %d\n", esp_rc,
(ip_final_len + ETH_HEADER_LEN));
return -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants