diff --git a/cpu/esp8266/esp-wifi/esp_wifi_netdev.c b/cpu/esp8266/esp-wifi/esp_wifi_netdev.c index 0e600e1fc1d02e188014a1b4fde83eec1a58fd66..8fa246daf2201b125bf37ae9c7693081e08198c4 100644 --- a/cpu/esp8266/esp-wifi/esp_wifi_netdev.c +++ b/cpu/esp8266/esp-wifi/esp_wifi_netdev.c @@ -98,7 +98,7 @@ static const struct station_config station_cfg = { #ifndef MODULE_ESP_NOW /** - * Static const configuration for the SoftAP which is used to configure the + * Static const configuration for the SoftAP which is used to configure the * SoftAP interface if ESP-NOW is not enabled. * * Since we need to use the WiFi interface in SoftAP + Station mode for @@ -173,7 +173,7 @@ void IRAM _esp_wifi_recv_cb(struct pbuf *pb, struct netif *netif) * by a mutex because `esp_wifi_recv_cb` would be reentered from same * thread context. */ - if (_in_esp_wifi_recv_cb || _in_send) { + if (_in_esp_wifi_recv_cb) { pbuf_free(pb); return; } diff --git a/cpu/esp8266/esp-wifi/esp_wifi_netdev.h b/cpu/esp8266/esp-wifi/esp_wifi_netdev.h index 04014ba91b0a63db9389d9695c4b3212f7635c92..8cb331eb7aaca8ae3067c0c25d2f87de2bdbb737 100644 --- a/cpu/esp8266/esp-wifi/esp_wifi_netdev.h +++ b/cpu/esp8266/esp-wifi/esp_wifi_netdev.h @@ -20,7 +20,6 @@ #define ESP_WIFI_NETDEV_H #include "net/netdev.h" -#include "ringbuffer.h" #ifdef __cplusplus extern "C" {