wireless/bcm43xxx: remove flowctrl check

remove flowctrl check since credit is enough to check flow control status

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-06-27 14:05:01 +08:00 committed by Xiang Xiao
parent fe2231989b
commit 752e48eb34
2 changed files with 0 additions and 10 deletions

View File

@ -818,7 +818,6 @@ int bcmf_bus_sdio_initialize(FAR struct bcmf_dev_s *priv,
sbus->minor = minor;
sbus->ready = false;
sbus->sleeping = true;
sbus->flow_ctrl = false;
sbus->bus.txframe = bcmf_sdpcm_queue_frame;
sbus->bus.rxframe = bcmf_sdpcm_get_rx_frame;

View File

@ -125,10 +125,6 @@ int bcmf_sdpcm_process_header(FAR struct bcmf_sdio_dev_s *sbus,
sbus->max_seq = header->credit;
/* Update flow control status */
sbus->flow_ctrl = (header->flow_control != 0);
return OK;
}
@ -358,11 +354,6 @@ int bcmf_sdpcm_sendframe(FAR struct bcmf_dev_s *priv)
return -ENODATA;
}
if (sbus->flow_ctrl)
{
return -EAGAIN;
}
if (sbus->tx_seq == sbus->max_seq)
{
/* TODO handle this case */