Matthias Ringwald
83e7cdd948
l2cap: add l2cap_can_send_prepared_packet_now
2016-01-28 14:54:03 +01:00
Matthias Ringwald
04c626e393
deamon: remove l2cap_block_credits functionality
2015-12-18 16:27:40 +01:00
Matthias Ringwald
3aff022f9b
don't track client packets granted in l2cap and rfcomm
2015-12-18 16:14:23 +01:00
Matthias Ringwald
b26c300399
l2cap: do l2cap_run() on DAEMON_EVENT_HCI_PACKET_SENT, too
2015-12-06 22:10:04 +01:00
Matthias Ringwald
29b32c60a3
l2cap: ignore packets_granted for outgoing data
2015-12-06 21:52:25 +01:00
Matthias Ringwald
eddad2ab2f
auto-disconnect only ACL connections
2015-11-11 16:15:23 +01:00
Matthias Ringwald
c133441bcb
avoid returning structs
2015-11-08 17:39:10 +01:00
Matthias Ringwald
204e94f19f
fix -Wshadow warnings for libusb target
2015-11-08 08:03:57 +01:00
Matthias Ringwald
ebffa4a83a
fix all Wmissing-prototype warnings for libusb target
2015-11-08 08:02:37 +01:00
Matthias Ringwald
23c8976e2d
reject l2 connection param update if in slave role
2015-11-07 22:07:38 +01:00
Matthias Ringwald
a9df98168a
fix warnings for unknown con handles in l2cap le run loop
2015-11-03 21:25:45 +01:00
Matthias Ringwald
77aee70f56
switch order of checks to avoid irritating log output '... handle 0x0 not in connection list'
2015-08-26 12:42:37 +02:00
Matthias Ringwald
9c9876e702
fix build
2015-08-13 14:03:27 +02:00
Matthias Ringwald
7192e786e8
add l2cap_le_register_service_internal and l2cap_le_unregister_service_internal
2015-08-12 15:14:59 +02:00
Matthias Ringwald
85192bb840
removed l2cap_le_request_connection_parameter_update
2015-08-12 14:46:16 +02:00
Matthias Ringwald
b68d7bc3c3
Add gap_request_connection_parameter_update
...
l2cap_le_request_connection_parameter_update is obsolete.
It calls gap_request_connection_parameteir_update now.
The l2cap conn param update req ist sent by l2cap_run.
2015-08-12 14:27:30 +02:00
Matthias Ringwald
75422ed973
replaced l2cap_le_create_connection_parameter_update_response with call to general l2cap signalng functions
2015-08-12 13:54:06 +02:00
Matthias Ringwald
79f53f1d06
pass in signaling identifier, use correct signaling identifier for l2cap connection parameter update response
2015-07-29 15:15:41 +02:00
Matthias Ringwald
8bcac1fdaa
trigger l2cap conn parameter response reject message
2015-07-29 14:15:02 +02:00
Matthias Ringwald
019f9b43ba
fix re-entrance issue that causes l2cap event channel open to be sent twice
2015-07-12 00:00:31 +02:00
Matthias Ringwald
775ecc3663
only reject l2cap connection due to insufficient security level after authentication procedure was performed
2015-05-14 22:59:36 +02:00
Matthias Ringwald
e569dfd95d
add cast to getting security level
2015-05-13 10:34:21 +02:00
Matthias Ringwald
71de195ed3
fix c99 warnings for missing argument of functions with no arguments, fix more warnings
2015-05-13 10:30:46 +02:00
Matthias Ringwald
22c29ab418
mark channel as invalid before sending connection response decline or disconnection response
2015-04-07 22:43:51 +02:00
matthias.ringwald@gmail.com
2e77e513be
Stop using pointer to array for bd_addr_t and link_key_t
2015-03-01 20:51:08 +00:00
matthias.ringwald@gmail.com
462e630d76
support for L2CAP Unicast Connection Data
2015-02-20 14:21:01 +00:00
mila@ringwald.ch
a0c35809ae
streamline copyright headers
2015-02-06 16:19:27 +00:00
matthias.ringwald@gmail.com
cb0ff06b75
improve log messages for l2cap rx timer
2014-12-19 16:21:39 +00:00
ole.reinhardt@googlemail.com
c523d53df2
Initialise l2cap channel struct with 0 after allocating memory (make valgrind happy)
2014-11-18 21:37:34 +00:00
matthias.ringwald@gmail.com
f53da564a8
mark l2cap signal response pending to avoid sending it multiple times with synchronous HCI Transport implementation
2014-10-31 15:46:38 +00:00
matthias.ringwald@gmail.com
4d816277a7
only disconnect HCI connection in case of security block (fixes disconnect for non-existing service or resoucees full)
2014-10-24 10:30:56 +00:00
mila@ringwald.ch
f0efaa575f
L2CAP: validate packet size with remote MTU -> log_error
2014-10-23 19:43:04 +00:00
mila@ringwald.ch
e6f51008ec
fixed tracking of l2cap, rfcomm services and channels
2014-10-16 11:33:28 +00:00
matthias.ringwald@gmail.com
4d7157c318
fix daemon compile without BLE support
2014-10-13 19:40:50 +00:00
mila@ringwald.ch
da886c035d
le central handle connection update params
2014-10-10 15:20:54 +00:00
mila@ringwald.ch
4ff786cfeb
use HCI_ACL_PAYLOAD_SIZE to determine L2CAP MTU
2014-10-09 09:49:47 +00:00
mila@ringwald.ch
eb7f386b26
use hci_acl_le_data_buffer_length to get max le l2cap mtu
2014-10-09 09:08:48 +00:00
matthias.ringwald@gmail.com
54ed2ecaf7
fix remote_mtu and flush_timeout in L2CAP_EVENT_CHANNEL_OPENED
2014-09-05 14:34:22 +00:00
matthias.ringwald@gmail.com
bb69aaaeef
removed cast for btstack_memory_X_get calls
2014-09-04 20:35:14 +00:00
mila@ringwald.ch
03ce1a58ea
l2cap and rfcomm close connection functionality was moved to deamon
2014-08-22 13:46:37 +00:00
mila@ringwald.ch
baf94f0687
fix outgoing l2cap connections (regression 'hci_number_free_acl_slots: handle 0x0000 not in connection list')
2014-08-20 20:15:50 +00:00
mila@ringwald.ch
9da54300b6
use log_info instead of printf, remove trailing newline from log calls
2014-08-15 21:26:50 +00:00
mila@ringwald.ch
67a01a718e
fix compile
2014-08-15 14:44:57 +00:00
matthias.ringwald@gmail.com
e5e1518d8a
add l2cap_max_le_mtu
2014-08-14 15:36:00 +00:00
matthias.ringwald@gmail.com
e79abdd605
replace hci_number_free_acl_slots with hci_number_free_acl_slots_for_handle
2014-08-14 13:06:29 +00:00
matthias.ringwald@gmail.com
6cd4da6bc4
provide l2cap_can_send_fixed_channel_packet_now that takes handle as input
2014-08-11 21:49:15 +00:00
matthias.ringwald@gmail.com
a35252c8fd
use hci_can_send_acl_packet_now instead of hci_can_send_packet_now_using_packet_buffer, hci_can_send_prepared_acl_packet_now instead of hci_can_send_packet_now - providing handle if available
2014-08-11 21:40:02 +00:00
matthias.ringwald@gmail.com
d94d3caf6b
use hci_can_send_command_packet_now instead of hci_can_send_packet_now_using_packet_buffer(HCI_COMMAND_DATA_PACKET)
2014-08-11 21:20:07 +00:00
matthias.ringwald@gmail.com
6128d7404e
prevent use after free when daemon client connection is closed, fixes issue #402
2014-08-09 11:43:07 +00:00
matthias.ringwald@gmail.com
ccf076ad21
emit L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST and L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE
2014-08-08 20:52:02 +00:00