LwIP v2 support
This commit is contained in:
parent
1cfded6389
commit
cd23acaa4a
39 changed files with 1357 additions and 664 deletions
|
|
@ -3,9 +3,6 @@
|
|||
Copyright (C) 2015 Espressif Systems. Derived from MIT Licensed SDK libraries.
|
||||
BSD Licensed as described in the file LICENSE
|
||||
*/
|
||||
#include "open_esplibs.h"
|
||||
#if OPEN_LIBNET80211_INPUT
|
||||
// The contents of this file are only built if OPEN_LIBNET80211_INPUT is set to true
|
||||
|
||||
#include "esplibs/libpp.h"
|
||||
|
||||
|
|
@ -14,10 +11,9 @@ void IRAM sdk_ieee80211_deliver_data(struct sdk_g_ic_netif_info *netif_info, str
|
|||
|
||||
if (netif->flags & NETIF_FLAG_LINK_UP) {
|
||||
uint16_t length = esf_buf->length;
|
||||
struct pbuf *pbuf = pbuf_alloc(PBUF_RAW, length, PBUF_REF);
|
||||
pbuf->payload = esf_buf->pbuf2->payload;
|
||||
struct pbuf *pbuf = pbuf_alloc_reference(esf_buf->pbuf2->payload, length, PBUF_ALLOC_FLAG_RX | PBUF_TYPE_ALLOC_SRC_MASK_ESP_RX);
|
||||
esf_buf->pbuf1 = pbuf;
|
||||
pbuf->eb = (void *)esf_buf;
|
||||
pbuf->esf_buf = (void *)esf_buf;
|
||||
ethernetif_input(netif, pbuf);
|
||||
return;
|
||||
}
|
||||
|
|
@ -27,5 +23,3 @@ void IRAM sdk_ieee80211_deliver_data(struct sdk_g_ic_netif_info *netif_info, str
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
#endif /* OPEN_LIBNET80211_INPUT */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue