mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-25 09:35:42 +00:00
bnep: don't forward lower layer packets to registered packet handler
This commit is contained in:
parent
0b4d02b7ed
commit
357a19ed8d
@ -1420,17 +1420,6 @@ void bnep_packet_handler(uint8_t packet_type, uint16_t l2cap_cid, uint8_t *packe
|
||||
break;
|
||||
}
|
||||
|
||||
if (handled) {
|
||||
bnep_run();
|
||||
return;
|
||||
}
|
||||
|
||||
/* Forward non l2cap packages to application handler */
|
||||
if (packet_type != L2CAP_DATA_PACKET) {
|
||||
(*app_packet_handler)(packet_type, l2cap_cid, packet, size);
|
||||
return;
|
||||
}
|
||||
|
||||
bnep_run();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user