616 Commits

Author SHA1 Message Date
matthias.ringwald
52114ddfa7 moved state machine code to channel state machine 2011-07-06 14:00:01 +00:00
matthias.ringwald
fad914e88e fully clean up rfcomm_channel_packet_handler - only parses muliplexer messages and calls state machine 2011-07-06 13:45:50 +00:00
matthias.ringwald
2f27565625 extracted channel lookups 2011-07-06 11:30:40 +00:00
matthias.ringwald
3617da50f7 reduce logic in rfcomm_channel_packet_handler, created rfcomm_channel_state_machine_2 2011-07-06 11:25:51 +00:00
matthias.ringwald
38ca88fff6 remove duplicate message_dlci lookup 2011-07-06 11:12:54 +00:00
matthias.ringwald
48b8951948 extracted rfcomm_channel_packet_handler 2011-07-06 11:09:43 +00:00
matthias.ringwald
d7bd042c27 convert RPN CMD, MSC CMD, MSC RSP to events and handle in rfcomm_channel_state_machine 2011-07-06 10:52:28 +00:00
matthias.ringwald
abec21804c Moved handling of incoming channel to channel state machine 2011-07-05 16:58:18 +00:00
matthias.ringwald
ebe1d7cd5b extracted rfcomm_channel_state_machine 2011-07-05 16:29:22 +00:00
matthias.ringwald
59e88de26c only advance is SABM was actually received 2011-07-05 15:30:06 +00:00
matthias.ringwald
2a71eea967 handle SABM after PN 2011-07-05 15:16:10 +00:00
matthias.ringwald
119647815d remove dead code/states 2011-07-05 15:00:11 +00:00
matthias.ringwald
29bd733aeb reduced RFCOMM_CHANNEL_W4_CLIENT_AFTER_SABM and RFCOMM_CHANNEL_W4_CLIENT_AFTER_PN_CMD to RFCOMM_CHANNEL_INCOMING_SETUP 2011-07-05 14:59:00 +00:00
matthias.ringwald
00442ff87a refactored SABM #x handling 2011-07-05 12:57:17 +00:00
matthias.ringwald
e29eef4c07 refactored PN handling 2011-07-05 09:33:05 +00:00
matthias.ringwald
0003abdff4 added rfcomm channel state var 2011-07-05 08:30:43 +00:00
matthias.ringwald
858381bd3c introduced RFCOMM_SEND_UIH_PN state, added rfcomm_multiplexer_opened() to streamline multiplexer opening 2011-07-04 21:49:59 +00:00
matthias.ringwald
6574a75f55 sort functions and add makrers 2011-07-04 20:54:35 +00:00
matthias.ringwald
414e8893c9 more states, still 'don't remove item from linked liste while iterating' and some decline sends as direct response left 2011-06-24 21:11:56 +00:00
matthias.ringwald
2668327354 should have all rfcomm channel states coverd 2011-06-24 20:06:47 +00:00
matthias.ringwald
8daabc2ea1 more 'will send' states 2011-06-24 19:44:56 +00:00
matthias.ringwald
8158c42197 added RFCOMM_CHANNEL_SEND_SABM_W4_UA 2011-06-24 18:37:10 +00:00
matthias.ringwald
edaa805914 created rfcomm_run() and integrated rfcomm_multiplexer_start_connecting 2011-06-23 20:32:12 +00:00
matthias.ringwald
6b1fde377c added l2cap_can_send_packet_now 2011-06-23 20:30:02 +00:00
matthias.ringwald
a22f364722 'USB transport working well' version - THANKS Simon 2011-06-23 18:52:07 +00:00
matthias.ringwald
ed7e0985ab use '// MARK:' instead of the non portable '#pragma mark' 2011-06-23 18:28:19 +00:00
matthias.ringwald
39d5980906 call l2cap_run() for HCI_EVENT_COMMAND_STATUS and HCI_EVENT_COMMAND_COMPLETE, too 2011-06-22 15:31:50 +00:00
matthias.ringwald
64472d52af fix some bugs in l2cap establishment 2011-06-21 20:28:09 +00:00
matthias.ringwald
de009a8ce7 use hci_stack.num_cmd in hci_can_send_packet_now, use hci_can_send_packet_now in hci.c 2011-06-21 19:34:08 +00:00
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
c24735b151 added hci_can_send_packet_now 2011-06-21 18:19:07 +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
be93454b1f added hci_sniff_mode 2011-06-20 18:15:49 +00:00
matthias.ringwald
b2f09bc060 deleted hci_ready_to_send - unused 2011-06-19 19:03:24 +00:00
matthias.ringwald
f9877e5725 rfcomm outgoing credits are a must 2011-06-18 21:47:40 +00:00
matthias.ringwald
17b40cacb4 don't decrease l2cap credits twice 2011-06-18 21:39:06 +00:00
matthias.ringwald
2a9a8b9705 reworked acl, l2cap and rfcomm credit counting 2011-06-18 21:17:58 +00:00
matthias.ringwald
9735c6f8e1 retry blocked connections on DAEMON_EVENT_NEW_RFCOMM_CREDITS, too 2011-06-18 21:17:20 +00:00
matthias.ringwald
bf8dada5e8 new internal event definition 2011-06-18 21:16:28 +00:00