From ab7ceb26e0e0e0d515164aac71ad3c6b4213a4cb Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Tue, 1 Jun 2021 07:36:14 +0900 Subject: [PATCH] drivers: wireless: Remove ASSERT() in _check_pkt_q_empty() in gs2200m.c Summary: - During Wi-Fi stress test, sometimes ASSERT() happens in gs2200m.c - This commit removes the ASSERT() but calls _remove_all_pkt() for a workaround. Impact: - None Testing: - Tested with spresense:wifi_smp Signed-off-by: Masayuki Ishikawa --- drivers/wireless/gs2200m.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/wireless/gs2200m.c b/drivers/wireless/gs2200m.c index bd28cb9dca..bc8dc7dece 100644 --- a/drivers/wireless/gs2200m.c +++ b/drivers/wireless/gs2200m.c @@ -216,6 +216,8 @@ static int gs2200m_poll(FAR struct file *filep, FAR struct pollfd *fds, static int gs2200m_irq(int irq, FAR void *context, FAR void *arg); static void gs2200m_irq_worker(FAR void *arg); +static void _remove_all_pkt(FAR struct gs2200m_dev_s *dev, uint8_t c); + /**************************************************************************** * Private Data ****************************************************************************/ @@ -524,7 +526,7 @@ static void _check_pkt_q_empty(FAR struct gs2200m_dev_s *dev, char cid) pkt_dat = (FAR struct pkt_dat_s *)pkt_dat->dq.flink; } - ASSERT(false); + _remove_all_pkt(dev, c); } }