Allways call bnep_run() in bnep_hci_event_handler(). Even if the incomming event

if unknown. Otherwise package handling could stop
This commit is contained in:
ole.reinhardt@googlemail.com 2014-11-11 21:08:29 +00:00
parent fe4751381e
commit 98f09fd9b8

View File

@ -996,7 +996,7 @@ static int bnep_hci_event_handler(uint8_t *packet, uint16_t size)
channel->max_frame_size = bnep_max_frame_size_for_l2cap_mtu(READ_BT_16(packet, 17));
bnep_run();
} else {
log_info("L2CAP_EVENT_CHANNEL_OPENED: Instalid state: %d", channel->state);
log_info("L2CAP_EVENT_CHANNEL_OPENED: Invalid state: %d", channel->state);
}
return 1;
break;
@ -1027,6 +1027,7 @@ static int bnep_hci_event_handler(uint8_t *packet, uint16_t size)
}
break;
default:
bnep_run();
break;
}
return 0;