From 1ae9ec9013bc730bbe05c3d1c2d221a6aa20303e Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Sun, 12 Feb 2023 14:23:02 +0000 Subject: [PATCH] Ensure internal wifi buffers are freed (#128) Regardless of whether we can do anything with the incoming packets, we *must* ensure the drivers packet memory is free. --- esp-wifi/src/wifi/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/esp-wifi/src/wifi/mod.rs b/esp-wifi/src/wifi/mod.rs index 1633424e2b4..ce6b04c5549 100644 --- a/esp-wifi/src/wifi/mod.rs +++ b/esp-wifi/src/wifi/mod.rs @@ -573,6 +573,7 @@ unsafe extern "C" fn recv_cb( 0 } else { + esp_wifi_internal_free_rx_buffer(eb); 1 } })