optimize the null pointer judgment of eb
@@ -48,8 +48,10 @@ static esp_err_t wifi_ap_receive(void *buffer, uint16_t len, void *eb)
static void wifi_free(void *h, void* buffer)
{
+ if (buffer) {
esp_wifi_internal_free_rx_buffer(buffer);
}
+}
static esp_err_t wifi_transmit(void *h, void *buffer, size_t len)
{
