65 Commits

Author SHA1 Message Date
matthias.ringwald
26f81d5129 fix response to RPN commands 2011-07-20 14:55:27 +00:00
matthias.ringwald
39de7faaf3 respond to MSC CMD in OPEN state, too 2011-07-19 14:59:07 +00:00
matthias.ringwald
774318ef56 do rfcomm_run on DAEMON_EVENT_HCI_PACKET_SENT 2011-07-16 15:19:37 +00:00
matthias.ringwald
de39232921 also log state var 2011-07-16 12:24:31 +00:00
matthias.ringwald
63c51ba102 add channel opened message 2011-07-15 20:50:14 +00:00
matthias.ringwald
966bb17c05 check for channel open also for MSC_RSP 2011-07-15 20:42:57 +00:00
matthias.ringwald
fe8c8cc295 don't send hci_delete_stored_link_key without checking for can send 2011-07-15 19:48:07 +00:00
matthias.ringwald
2a544672af update state before sending packet 2011-07-14 15:42:13 +00:00
matthias.ringwald
a595331e03 fix typo 2011-07-12 15:39:46 +00:00
matthias.ringwald
5caae01d5e avoid warning 2011-07-12 15:38:49 +00:00
matthias.ringwald
2c0ef19cb0 commented state machine state logging 2011-07-07 23:24:50 +00:00
matthias.ringwald
d19c49a64c fix missing breaks 2011-07-07 23:24:07 +00:00
matthias.ringwald
1ac74e31e6 send DM if requested in send_dm_for_dlci in multiplexer_t 2011-07-07 23:06:51 +00:00
matthias.ringwald
70d1daaf4f schedule RPN RPS in channel struct 2011-07-07 23:01:10 +00:00
matthias.ringwald
968491a962 cleanups 2011-07-07 22:50:58 +00:00
matthias.ringwald
85c3396ff3 extract rfcomm_multiplexer_state_machine 2011-07-07 22:37:17 +00:00
matthias.ringwald
e71fba4de0 set max l2cap size 2011-07-07 21:53:00 +00:00
matthias.ringwald
3949c4da27 fixed many many details. outgoing ok, incoming not yet 2011-07-07 19:31:11 +00:00
matthias.ringwald
285f914355 cache next channel pointer to allow channel removal by state machine 2011-07-07 16:42:40 +00:00
matthias.ringwald
9d9a46c4f1 moved can_send code from rfcomm_run into rfcom_channel_state_machine 2011-07-07 16:24:30 +00:00
matthias.ringwald
c29832c565 prepare handling of CH_EVT_READY_TO_SEND in channel state machine 2011-07-07 15:10:29 +00:00
matthias.ringwald
94112bce80 merged dlc setup states into RFCOMM_CHANNEL_DLC_SETUP 2011-07-07 15:07:27 +00:00
matthias.ringwald
1a2e8f0848 prepare for merged DLC_SETUP state 2011-07-06 14:46:29 +00:00
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
ed7e0985ab use '// MARK:' instead of the non portable '#pragma mark' 2011-06-23 18:28:19 +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