mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-20 18:40:31 +00:00
rfcomm: ignore packets_granted for outgoing data
This commit is contained in:
parent
72567b93bb
commit
5167f4e2d9
@ -2034,7 +2034,6 @@ int rfcomm_can_send_packet_now(uint16_t rfcomm_cid){
|
||||
return 1;
|
||||
}
|
||||
if (!channel->credits_outgoing) return 0;
|
||||
if (!channel->packets_granted) return 0;
|
||||
if ((channel->multiplexer->fcon & 1) == 0) return 0;
|
||||
|
||||
return l2cap_can_send_packet_now(channel->multiplexer->l2cap_cid);
|
||||
@ -2050,11 +2049,6 @@ static int rfcomm_assert_send_valid(rfcomm_channel_t * channel , uint16_t len){
|
||||
log_info("rfcomm_send_internal cid 0x%02x, no rfcomm outgoing credits!", channel->rfcomm_cid);
|
||||
return RFCOMM_NO_OUTGOING_CREDITS;
|
||||
}
|
||||
|
||||
if (!channel->packets_granted){
|
||||
log_info("rfcomm_send_internal cid 0x%02x, no rfcomm credits granted!", channel->rfcomm_cid);
|
||||
return RFCOMM_NO_OUTGOING_CREDITS;
|
||||
}
|
||||
|
||||
if ((channel->multiplexer->fcon & 1) == 0){
|
||||
log_info("rfcomm_send_internal cid 0x%02x, aggregate flow off!", channel->rfcomm_cid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user