mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 17:16:29 +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;
|
||||
}
|
||||
|
||||
if (!netif_is_up(netif)) {
|
||||
LWIP_DEBUGF(NETIF_DEBUG, ("low_level_output: netif is not up\n"));
|
||||
return ERR_RTE;
|
||||
}
|
||||
|
||||
#if ETH_PAD_SIZE
|
||||
pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user