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 <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-06-25 15:22:46 +08:00 committed by Xiang Xiao
parent 96192eac55
commit f424bb32aa
1 changed files with 3 additions and 5 deletions

View File

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