55 Commits

Author SHA1 Message Date
matthias.ringwald
10642e45f5 fix compile warning - add default clause 2010-07-04 16:25:56 +00:00
matthias.ringwald
b7de95da8c fix compile warning 2010-07-04 16:23:44 +00:00
matthias.ringwald
3de7c0ca8d correct get mtu from configure request 2010-06-18 21:36:14 +00:00
matthias.ringwald
96cbd66294 added l2cap_get_remote_mtu_for_local_cid 2010-06-18 20:31:05 +00:00
matthias.ringwald
1dc511dea6 extrat MTU from configure request if present, send empty config in configure repsonse instead of options from configure request 2010-06-18 20:21:52 +00:00
matthias.ringwald
2784b77d47 add remote_mtu to l2cap_channel_t, extract l2cap_signaling_handle_configure_request 2010-06-18 20:00:05 +00:00
matthias.ringwald
f79ee2445a fix swapped source and destination channel IDs in L2CAP DISCONNECTION_RESPONSE 2010-06-16 18:57:58 +00:00
matthias.ringwald
69025de84f streamline deletion code 2010-06-13 21:27:47 +00:00
matthias.ringwald
5d5a55f27c really fix unregister service for closed connection 2010-06-12 10:06:45 +00:00
matthias.ringwald
f2efebcde5 fix service remove from linked list 2010-06-09 18:24:06 +00:00
matthias.ringwald
58de561001 also dispatch L2CAP DATA packets 2010-06-09 16:05:50 +00:00
matthias.ringwald
f8dd2f72bd pass on packet_handler from service to channel struct, pass on local_cid for l2cap events 2010-06-09 15:53:07 +00:00
matthias.ringwald
d8497f1904 provider param for packet handler in service registry 2010-06-09 15:39:55 +00:00
matthias.ringwald
1b0354c019 call into internal l2cap handler if specified for events 2010-06-09 15:33:55 +00:00
matthias.ringwald
b5a49eb182 introduce a packet handler pointer to l2cap services and channels, unset for now 2010-06-09 15:31:46 +00:00
matthias.ringwald
00d93d799a handle multiple commands in a L2CAP sinaling packet 2010-06-08 18:45:45 +00:00
matthias.ringwald
6cc9dcee8d extract primary l2cap signaling handler 2010-05-26 20:06:53 +00:00
matthias.ringwald
4da22db5dc respond to L2CAP ECHO_REQUEST and INFORMATION_REQUEST 2010-05-25 20:01:46 +00:00
matthias.ringwald
0d5a78db31 Refactor L2CAP data and event send 2010-04-05 22:47:52 +00:00
matthias.ringwald
037d6e4837 really unregister service 2010-03-25 19:19:17 +00:00
matthias.ringwald
8149d2c7c9 fix crash on app exit 2010-03-14 16:28:18 +00:00
matthias.ringwald
b35f641c7f clarify use of source_cid and dest_cid - use only for signal packets and use local_cid and remote_cid otherwise - fixes bug in incoming l2cap connection handling 2010-03-04 23:03:40 +00:00
matthias.ringwald
2b3c6c9bc6 add missing include 2010-02-13 15:13:07 +00:00
matthias.ringwald
2289ec97a0 also log internal l2cap events 2010-02-09 21:33:35 +00:00
matthias.ringwald
e405ae81a6 l2cap incoming working 2010-01-26 20:49:02 +00:00
matthias.ringwald
169f8b289d auto-accept incoming l2cap 2010-01-26 18:28:21 +00:00
matthias.ringwald
645658c9de added non-working l2cap_handle_connection_request 2010-01-25 22:22:55 +00:00
matthias.ringwald
1f7b95a184 dispatch l2cap commands 2010-01-25 20:25:20 +00:00
matthias.ringwald
116ee617d2 added cmds and events for incoming connections 2010-01-25 18:49:31 +00:00
matthias.ringwald
9d9bbc01f5 implemented PSM management 2010-01-25 18:29:06 +00:00
matthias.ringwald
afde0c529f implemented create connection cancel command and hande it in l2cap 2009-12-14 22:42:14 +00:00
matthias.ringwald
b448a0e767 handle connection complete with error in HCI and L2CAP 2009-12-05 17:29:51 +00:00
matthias.ringwald
d6f03c5df6 in capturing mode: don't disconnect when no L2CAP channel is open, don't process packets 2009-12-03 11:56:39 +00:00
matthias.ringwald
84836b654b handle L2CAP DISCONNECT REQUEST 2009-12-02 20:07:41 +00:00
matthias.ringwald
5a67bd4a55 handle L2CAP configure request while waiting for configure request response 2009-11-28 15:16:29 +00:00
matthias.ringwald
1713bcea3a prepend all source files with 'new BSD' copyright header 2009-10-29 20:25:42 +00:00
matthias.ringwald
141679a411 correct address of result field in CONNECTION_RESPONSE (really) 2009-10-23 21:38:30 +00:00
matthias.ringwald
cd56f93151 correct address of result field in CONNECTION_RESPONSE 2009-10-23 21:29:19 +00:00
matthias.ringwald
38e5900eda treat L2CAP CONNECTION_RESPONSE with result = pending as error, just wait 2009-10-23 16:39:31 +00:00
matthias.ringwald
f32b992e39 map l2cap errors to general status code 2009-10-21 21:12:51 +00:00
matthias.ringwald
6f60b3f468 forward channel ID to client packet handler. only deliver payload to client instead of complete header incl acl + l2cap headers. fix examples 2009-10-21 19:58:40 +00:00
matthias.ringwald
03cfbabc9a added status to L2CAP_CHANNEL_OPENED event 2009-10-19 20:21:32 +00:00
matthias.ringwald
80d52d6be7 clean up command names and headers 2009-09-29 19:40:55 +00:00
matthias.ringwald
9edc874259 added capture mode to get all ACL packets from client app, started BTstack Man-in-the-Middle implementation 2009-08-24 21:56:12 +00:00
matthias.ringwald
43bfb1bd9c trace Bluetooth status in daemon 2009-08-15 21:31:23 +00:00
matthias.ringwald
ee091cf1fd automatic HCI link disconnect 2009-08-09 18:39:53 +00:00
matthias.ringwald
c52bf64daa if client conenctions breaks, close all L2CAP channels used by client 2009-08-09 17:17:00 +00:00
matthias.ringwald
27a923d075 emit l2cap disconnect events when basedband connection closes 2009-08-08 21:55:55 +00:00
matthias.ringwald
f62db1e31a implemented l2cap_disconnect command 2009-08-08 21:29:38 +00:00
matthias.ringwald
c8e4258af8 improve hci connection handling -> suppress create connection requests for connections already open and just emit connection complete event 2009-08-02 13:20:32 +00:00