103 Commits

Author SHA1 Message Date
matthias.ringwald
32ab939075 queue internal hci commands in connection_t 2011-06-21 19:30:58 +00:00
matthias.ringwald
02b22dc468 added L2CAP_STATE_WILL_SEND_CREATE_CONNECTION and L2CAP_STATE_WAIT_CONNECTION_COMPLETE 2011-06-21 18:50:39 +00:00
matthias.ringwald
81f99c380e call hci_can_send_packet_now in l2cap_run() 2011-06-21 18:20:38 +00:00
matthias.ringwald
2b83fb7d18 queue handling of ECHO and INFORMATIONAL requests, echo doesn't send back optional data - sorry. 2011-06-21 17:51:29 +00:00
matthias.ringwald
9a011532c2 consolidate and add handling of DISCONNECTION_REQUEST 2011-06-21 17:23:03 +00:00
matthias.ringwald
b1988dce47 use different local and remote signal identifiers 2011-06-20 21:15:46 +00:00
matthias.ringwald
552d92a164 all states covered, needs double-check of state machine 2011-06-20 21:03:40 +00:00
matthias.ringwald
ae280e7320 added L2CAP_STATE_WAIT_CONFIG_REQ_OR_SEND_CONFIG_REQ and L2CAP_STATE_WILL_SEND_CONFIG_REQ_AND_CONFIG_REQ_RSP 2011-06-20 20:23:13 +00:00
matthias.ringwald
cb8eb7e69e use L2CAP_STATE_WILL_SEND_DISCONNECT_REQUEST on client connection close 2011-06-20 20:03:43 +00:00
matthias.ringwald
e7ff783c33 added L2CAP_STATE_WILL_SEND_CONNECTION_RESPONSE_DECLINE 2011-06-20 19:58:46 +00:00
matthias.ringwald
6fdcc387a9 added L2CAP_STATE_WILL_SEND_CONNECTION_REQUEST 2011-06-20 19:47:05 +00:00
matthias.ringwald
dc8ceabbe7 forgot the l2cap_next_sig_id call 2011-06-20 19:43:18 +00:00
matthias.ringwald
2cd0be456d created l2cap_run() and L2CAP_STATE_WILL_SEND_DISCONNECT state 2011-06-20 19:41:49 +00:00
matthias.ringwald
808a48ab66 added l2cap_block_new_credits function to be used with a daemon, use BTSTACK_ACL_BUFFERS_FULL 2011-06-18 11:03:00 +00:00
matthias.ringwald
761b0451dd fix emission of l2cap credits for incoming connections 2011-06-17 20:40:18 +00:00
matthias.ringwald
490d3fd067 deleted unused l2cap level per channel packet counting 2011-06-16 21:57:42 +00:00
matthias.ringwald
9893b714bb don't crash because of bigger event 2011-06-12 18:58:05 +00:00
matthias.ringwald
4c98aa43c7 emit l2cap mtus, too 2011-06-12 07:49:13 +00:00
matthias.ringwald
1d279b2064 document hci_read_buffer_size result, better docuement l2cap mtu handling 2011-06-12 07:46:50 +00:00
matthias.ringwald
40d1c7a481 more -Wstrict-prototypes fixes 2011-06-06 14:12:38 +00:00
matthias.ringwald
0a18a8e91d assume remote side uses default mtu instead of minimum mtu for new l2cap connections 2010-11-22 19:52:07 +00:00
matthias.ringwald
d418e20393 allow role switch when opening baseband for l2cap channel 2010-09-20 21:11:22 +00:00
matthias.ringwald
3a9e0a5899 note to myself 2010-09-10 19:44:07 +00:00
matthias.ringwald
4e32727e89 break after finding the correct channel. fixes issue #76 - thanks to murerten for this fix 2010-09-10 19:35:51 +00:00
matthias.ringwald
9775e25bf2 consider max acl buffer in Bluetooth module as upper bound for l2cap mtu 2010-09-03 20:17:26 +00:00
matthias.ringwald
eb920dbead if l2cap connection fails, drop channel immediately. if connection fails due to security block, drop link key, too 2010-08-30 19:06:13 +00:00
matthias.ringwald
80ca58a00d keep baseband connection during authentication 2010-08-26 20:26:48 +00:00
matthias.ringwald
2060cf1463 don't confuse myself 2010-08-23 21:23:17 +00:00
matthias.ringwald
15ec09bb89 re-wrote iterate over linked list and delete element code 2010-08-23 21:03:40 +00:00
matthias.ringwald
4c744e2140 use constant for NR_BUFFERED_ACL_PACKETS and increase to 3 2010-08-16 17:04:39 +00:00
matthias.ringwald
7af1ca8593 allow for 3- and 5-slot packets 2010-08-10 20:51:51 +00:00
matthias.ringwald
15470d2718 allow specify MTU for outgoing l2cap connections (was 150 before) 2010-08-10 20:43:55 +00:00
matthias.ringwald
fa2b26270d use user specified MTU instead of 150 2010-08-10 19:29:16 +00:00
matthias.ringwald
fe35119d8a mark hci cmd templates as const to save RAM 2010-08-08 18:10:45 +00:00
matthias.ringwald
91b99603ac grant new credits right after receiving previous packet 2010-08-01 09:18:34 +00:00
matthias.ringwald
a59fb47b50 removed another log statement 2010-07-31 20:38:10 +00:00
matthias.ringwald
8ea03fa513 flow control working, disable some dbg msgs 2010-07-31 09:07:48 +00:00
matthias.ringwald
0e7bc007cb fix compile 2010-07-30 20:23:55 +00:00
matthias.ringwald
c3b820cfe6 only grant credits on open connections 2010-07-30 20:21:19 +00:00
matthias.ringwald
8d371091e8 handle number of completed packets and hand out credits 2010-07-30 19:17:41 +00:00
matthias.ringwald
6218e6f12b add counters for flow control, channel credits event, return -1 if no space in BT module 2010-07-29 19:35:34 +00:00
matthias.ringwald
11c41d51ae use buffers of size 1021 to fit 3-DH5 ACL packets, check buffer for SDP responses 2010-07-25 12:28:23 +00:00
matthias.ringwald
6b296a2712 allow to set packet handler for internal l2cap connections 2010-07-19 18:02:02 +00:00
matthias.ringwald
36944dff77 remove dependency on socket_connection.h in l2cap 2010-07-19 17:50:59 +00:00
matthias.ringwald
b502e1b06d use single packet handler per protocol layer: l2cap 2010-07-18 17:05:56 +00:00
matthias.ringwald
2718e2e7a1 use single packet handler per protocol layer: hci 2010-07-18 16:30:16 +00:00
matthias.ringwald
78a6f10031 fix unbelievable hard code for deleting items in linked list while iterating over it 2010-07-17 18:39:51 +00:00
matthias.ringwald
39ce35a7ca fix list removal while iterating over it 2010-07-17 16:59:35 +00:00
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