rfcomm: ignore packets_granted for outgoing data

This commit is contained in:
Matthias Ringwald 2015-12-06 21:41:37 +01:00
parent 72567b93bb
commit 5167f4e2d9

View File

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