call into internal l2cap handler if specified for events

This commit is contained in:
matthias.ringwald 2010-06-09 15:33:55 +00:00
parent b5a49eb182
commit 1b0354c019

View File

@ -648,7 +648,7 @@ void l2cap_close_connection(connection_t *connection){
// notify client/protocol handler
void l2cap_dispatch(l2cap_channel_t *channel, uint8_t type, uint8_t * data, uint16_t size){
if (channel->packet_handler) {
(* (channel->packet_handler))(type, 0, data, size);
} else {
(*event_packet_handler)(channel->connection, data, size);
}