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:
parent
fe2231989b
commit
752e48eb34
|
@ -818,7 +818,6 @@ int bcmf_bus_sdio_initialize(FAR struct bcmf_dev_s *priv,
|
||||||
sbus->minor = minor;
|
sbus->minor = minor;
|
||||||
sbus->ready = false;
|
sbus->ready = false;
|
||||||
sbus->sleeping = true;
|
sbus->sleeping = true;
|
||||||
sbus->flow_ctrl = false;
|
|
||||||
|
|
||||||
sbus->bus.txframe = bcmf_sdpcm_queue_frame;
|
sbus->bus.txframe = bcmf_sdpcm_queue_frame;
|
||||||
sbus->bus.rxframe = bcmf_sdpcm_get_rx_frame;
|
sbus->bus.rxframe = bcmf_sdpcm_get_rx_frame;
|
||||||
|
|
|
@ -125,10 +125,6 @@ int bcmf_sdpcm_process_header(FAR struct bcmf_sdio_dev_s *sbus,
|
||||||
|
|
||||||
sbus->max_seq = header->credit;
|
sbus->max_seq = header->credit;
|
||||||
|
|
||||||
/* Update flow control status */
|
|
||||||
|
|
||||||
sbus->flow_ctrl = (header->flow_control != 0);
|
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -358,11 +354,6 @@ int bcmf_sdpcm_sendframe(FAR struct bcmf_dev_s *priv)
|
||||||
return -ENODATA;
|
return -ENODATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sbus->flow_ctrl)
|
|
||||||
{
|
|
||||||
return -EAGAIN;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sbus->tx_seq == sbus->max_seq)
|
if (sbus->tx_seq == sbus->max_seq)
|
||||||
{
|
{
|
||||||
/* TODO handle this case */
|
/* TODO handle this case */
|
||||||
|
|
Loading…
Reference in New Issue