From f424bb32aa345d8079a2a4fb4801950d801aee5b Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Sat, 25 Jun 2022 15:22:46 +0800 Subject: [PATCH] wireless/bcm43xxx: only break out the send loop if no data only break out the continuous send if IP stack has no data to send to avoid tx being constantly interrupted by RX Signed-off-by: chao.an --- drivers/wireless/ieee80211/bcm43xxx/bcmf_netdev.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_netdev.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_netdev.c index 616b8cd587..536b5c311f 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_netdev.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_netdev.c @@ -518,13 +518,11 @@ static void bcmf_tx_poll_work(FAR void *arg) devif_poll(&priv->bc_dev, bcmf_txpoll); - /* Break out the continuous send if : - * 1. IP stack has no data to send. - * 2. RX worker ready. + /* Break out the continuous send if IP stack has + * no data to send. */ - if (priv->cur_tx_frame != NULL || - !work_available(&priv->bc_rxwork)) + if (priv->cur_tx_frame != NULL) { break; }