arch/risc-v/espressif: add missing spinlock to wlan_recvframe

This commit is contained in:
Filipe Cavalcanti 2024-12-17 13:50:57 -03:00 committed by Xiang Xiao
parent 5cc92885dd
commit 91a750d55a

View file

@ -321,8 +321,11 @@ static inline void wlan_cache_txpkt_tail(struct wlan_priv_s *priv)
static struct iob_s *wlan_recvframe(struct wlan_priv_s *priv)
{
struct iob_s *iob;
irqstate_t flags;
flags = spin_lock_irqsave(&priv->lock);
iob = iob_remove_queue(&priv->rxb);
spin_unlock_irqrestore(&priv->lock, flags);
return iob;
}