mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 01:27:11 +08:00
fix(lwip): fix send packet from netif of AP in STA only mode
This commit is contained in:
@ -316,6 +316,11 @@ static int8_t low_level_output(struct netif* netif, struct pbuf* p)
|
|||||||
return ERR_ARG;
|
return ERR_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!netif_is_up(netif)) {
|
||||||
|
LWIP_DEBUGF(NETIF_DEBUG, ("low_level_output: netif is not up\n"));
|
||||||
|
return ERR_RTE;
|
||||||
|
}
|
||||||
|
|
||||||
#if ETH_PAD_SIZE
|
#if ETH_PAD_SIZE
|
||||||
pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
|
pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user