fix compile

This commit is contained in:
matthias.ringwald 2010-07-30 20:23:55 +00:00
parent c3b820cfe6
commit 0e7bc007cb

View File

@ -152,8 +152,8 @@ void l2cap_hand_out_credits(){
linked_item_t *it;
for (it = (linked_item_t *) l2cap_channels; it ; it = it->next){
if (!hci_number_free_acl_slots()) return;
if (channel->state != L2CAP_STATE_OPEN) continue;
l2cap_channel_t * channel = (l2cap_channel_t *) it;
if (channel->state != L2CAP_STATE_OPEN) continue;
if (hci_number_outgoing_packets(channel->handle) < 2 && channel->packets_granted == 0) {
l2cap_emit_credits(channel, 1);
}