mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-09 21:45:54 +00:00
fix l2cap signal packet generation - connection to BT HID working now
This commit is contained in:
parent
0af41d30f6
commit
ff2d8aacc9
@ -161,7 +161,7 @@ void acl_handler(uint8_t *packet, int size){
|
||||
#endif
|
||||
if (outgoing_hdl){
|
||||
bt_store_16( packet, 0, (READ_BT_16(packet, 0) & 0xf000) | outgoing_hdl);
|
||||
hci_send_acl_packet(packet, size);
|
||||
bt_send_acl_packet(packet, size);
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -182,7 +182,7 @@ int bt_send_acl_packet(uint8_t *packet, int size){
|
||||
int bt_send_l2cap_signaling_packet(hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, ...){
|
||||
va_list argptr;
|
||||
va_start(argptr, identifier);
|
||||
uint16_t len = l2cap_create_signaling_packet(l2cap_sig_buffer, handle, cmd, identifier, argptr);
|
||||
uint16_t len = l2cap_create_signaling_internal(l2cap_sig_buffer, handle, cmd, identifier, argptr);
|
||||
va_end(argptr);
|
||||
return bt_send_acl_packet(l2cap_sig_buffer, len);
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ typedef struct {
|
||||
|
||||
void l2cap_init();
|
||||
uint16_t l2cap_create_signaling_packet(uint8_t *acl_buffer, hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, ...);
|
||||
uint16_t l2cap_create_signaling_internal(uint8_t * acl_buffer,hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, va_list argptr);
|
||||
int l2cap_send_signaling_packet(hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, ...);
|
||||
|
||||
extern uint16_t local_cid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user