Skip to content

Commit

Permalink
feat(wifi_remote): add esp_wifi_internal_tx_by_ref
Browse files Browse the repository at this point in the history
Add esp_wifi_internal_tx_by_ref as building with CONFIG_SPIRAM=y will
get a linker error caused by an undefined reference to the function.


* Original commit: espressif/esp-protocols@ba35d14
  • Loading branch information
SohKamYung-Espressif authored and david-cermak committed Oct 4, 2024
1 parent 520235d commit 49acc6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/esp_wifi_remote/esp_wifi_remote_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ WEAK void esp_wifi_internal_free_rx_buffer(void *buffer)
free(buffer);
}

WEAK esp_err_t esp_wifi_internal_tx_by_ref(wifi_interface_t ifx, void *buffer, size_t len, void *netstack_buf)
{
return esp_wifi_internal_tx(ifx, buffer, (uint16_t)len);
}

WEAK int esp_wifi_internal_tx(wifi_interface_t ifx, void *buffer, uint16_t len)
{
if (ifx == WIFI_IF_STA && s_tx_cb[0]) {
Expand Down

0 comments on commit 49acc6d

Please sign in to comment.