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:
parent
96192eac55
commit
f424bb32aa
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue