fix(lwip): fix send packet from netif of AP in STA only mode

This commit is contained in:
Zhang Jun Hao
2018-10-10 21:03:30 +08:00
parent 93e9b1c3d3
commit f3d747ed9d

View File

@ -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