mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 01:37:22 +00:00
lwip/esp32: move the extern wifi calls into esp_wifi_internal.h
1. Add esp_wifi_internal.h 2. Rename system_pp_recycle_rx_pkt to esp_wifi_internal_free_rx_buffer 3. rename esp_wifi_tx_is_stop to esp_wifi_internal_tx_is_stop 4. rename ieee80211_output to esp_wifi_internal_tx
This commit is contained in:
@@ -83,6 +83,7 @@ static const char mem_debug_file[] ICACHE_RODATA_ATTR STORE_ATTR = __FILE__;
|
||||
#endif
|
||||
|
||||
#ifdef LWIP_ESP8266
|
||||
#include "esp_wifi_internal.h"
|
||||
#define EP_OFFSET 0
|
||||
#endif
|
||||
|
||||
@@ -764,8 +765,7 @@ pbuf_free(struct pbuf *p)
|
||||
} else if (type == PBUF_ROM || type == PBUF_REF) {
|
||||
|
||||
#ifdef LWIP_ESP8266
|
||||
extern void system_pp_recycle_rx_pkt(void*);
|
||||
if (type == PBUF_REF && p->eb != NULL ) system_pp_recycle_rx_pkt(p->eb);
|
||||
if (type == PBUF_REF && p->eb != NULL ) esp_wifi_internal_free_rx_buffer(p->eb);
|
||||
#endif
|
||||
|
||||
memp_free(MEMP_PBUF, p);
|
||||
|
Reference in New Issue
Block a user