This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 6589887284a48b2872e5f792cbfd83aa7a5019ee Author: Tiago Medicci Serrano <[email protected]> AuthorDate: Fri Aug 4 17:12:37 2023 -0300 esp32s3/wlan: check if the network device's IOB isn't null Before adding the upper layer network device's IOB to the TX queue of the wireless driver, check if it isn't null. --- arch/xtensa/src/esp32s3/esp32s3_wlan.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32s3/esp32s3_wlan.c b/arch/xtensa/src/esp32s3/esp32s3_wlan.c index b7742ff9d0..44d8a49c64 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_wlan.c +++ b/arch/xtensa/src/esp32s3/esp32s3_wlan.c @@ -269,7 +269,11 @@ static void wlan_ipv6multicast(struct wlan_priv_s *priv); static inline void wlan_cache_txpkt_tail(struct wlan_priv_s *priv) { - iob_tryadd_queue(priv->dev.d_iob, &priv->txb); + if (priv->dev.d_iob) + { + iob_tryadd_queue(priv->dev.d_iob, &priv->txb); + } + netdev_iob_clear(&priv->dev); }
