Skip to content
Snippets Groups Projects
Commit 88c65aff authored by Gunar Schorcht's avatar Gunar Schorcht
Browse files

cpu/esp8266: allow _esp_wifi_recv_cb during send

Receiption of a frame in _esp_wifi_recv_cb while sending has no effect and should be possible to increases the performance.
parent 0920bbb4
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ static const struct station_config station_cfg = { ...@@ -98,7 +98,7 @@ static const struct station_config station_cfg = {
#ifndef MODULE_ESP_NOW #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. * SoftAP interface if ESP-NOW is not enabled.
* *
* Since we need to use the WiFi interface in SoftAP + Station mode for * 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) ...@@ -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 * by a mutex because `esp_wifi_recv_cb` would be reentered from same
* thread context. * thread context.
*/ */
if (_in_esp_wifi_recv_cb || _in_send) { if (_in_esp_wifi_recv_cb) {
pbuf_free(pb); pbuf_free(pb);
return; return;
} }
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#define ESP_WIFI_NETDEV_H #define ESP_WIFI_NETDEV_H
#include "net/netdev.h" #include "net/netdev.h"
#include "ringbuffer.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment