316 Commits

Author SHA1 Message Date
matthias.ringwald
4582af4c24 sm_s_auth_req and sm_s_io_capabilities into setup, sm_auth_req and sm_io_capabilites as global config 2014-06-12 22:15:27 +00:00
matthias.ringwald
d90eba5c0c store role and peer address in connection, only send slave request security if we're slave 2014-06-12 22:09:14 +00:00
matthias.ringwald
d4eb9144ae minimal sorting of variables into global, setup, and connection done 2014-06-12 21:54:00 +00:00
matthias.ringwald
46857d030e move data for sm setup into sm_setup_context 2014-06-12 21:16:47 +00:00
matthias.ringwald
f9796d0dcf moved other fields required per connection into struct 2014-06-12 20:14:57 +00:00
matthias.ringwald
642083fd9a introduce temp sm_connection_t struct and put sm_state_responding into it 2014-06-12 19:50:09 +00:00
matthias.ringwald
ad0e8d7cb3 fix missing () 2014-06-12 19:41:22 +00:00
matthias.ringwald
04b0940343 serialize request to sm_central_device_lookup 2014-06-12 15:42:51 +00:00
matthias.ringwald
4fcbaf28ae prepare ckrk lookup to work in a multi-connection environment 2014-06-12 15:07:01 +00:00
matthias.ringwald
a50f0d8c57 track aes128 state and use of sm_aes128_plaintext var 2014-06-12 13:38:17 +00:00
matthias.ringwald
784e72fdec removed sm_aes128_key 2014-06-12 13:14:43 +00:00
matthias.ringwald
f38c10628c fixed unsafe use in HCI_SUBEVENT_LE_LONG_TERM_KEY_REQUEST 2014-06-12 12:57:24 +00:00
matthias.ringwald
9b4485bbfa fixed unsafe use in SM_STATE_PH3_W4_DIV 2014-06-12 12:51:54 +00:00
matthias.ringwald
44f9951d12 fixed unsafe use in SM_STATE_PH2_C1_W4_RANDOM_B 2014-06-12 12:49:52 +00:00
matthias.ringwald
ea344a2be2 extracted sm_handle_random_result, marked unsafe use of aes128 input vars, fixed unsafe use in SM_STATE_PH2_W4_PAIRING_RANDOM 2014-06-12 12:44:03 +00:00
matthias.ringwald
24ac29f6b9 extraced sm_handle_encryption_result 2014-06-12 10:32:55 +00:00
matthias.ringwald
e776213c37 fix compile with C++ compiler 2014-06-12 10:12:23 +00:00
matthias.ringwald
4c427ab8e2 use l2cap mtu for att server 2014-06-11 20:57:59 +00:00
matthias.ringwald
7763678c43 remove signature from att_write callback, add connection handle to att read and write callbacks, update examples 2014-06-10 21:44:05 +00:00
matthias.ringwald
baecf7ef51 fix handling of packet sent events - gatt client might have got stuck before 2014-06-10 21:41:05 +00:00
matthias.ringwald
e292f40715 fix parsing of strings used as Characteristic Values 2014-06-10 19:24:46 +00:00
matthias.ringwald
46b8af2f04 check att_write_callback != null before calling it 2014-06-08 20:26:47 +00:00
matthias.ringwald
760b5fafed check att_write_callback != null before calling it 2014-06-08 20:25:27 +00:00
mila@ringwald.ch
3828bad997 initialized uuid16 2014-05-30 15:14:08 +00:00
mila@ringwald.ch
de5f7c71c9 Use CSV parsing lib instead of string split 2014-05-30 13:27:35 +00:00
matthias.ringwald@gmail.com
26e2037d23 set client for find service by uuid 2014-05-25 23:35:21 +00:00
mila@ringwald.ch
f2f517a9b0 gatt client fixed reset peripheral state 2014-05-24 00:14:05 +00:00
matthias.ringwald@gmail.com
b1b297962f fix compile 2014-05-16 22:13:08 +00:00
matthias.ringwald@gmail.com
4d766027c1 disconnect LE HCI Connections for active GATT Clients 2014-05-16 22:10:43 +00:00
matthias.ringwald@gmail.com
1a686d5ebc fix syntax for Python 3, see #393 2014-05-15 19:50:12 +00:00
mila@ringwald.ch
a027ff0287 postpone MTU exchange by writes 2014-05-15 15:08:59 +00:00
mila@ringwald.ch
f50fd90e48 handle att errors 2014-05-15 14:45:51 +00:00
mila@ringwald.ch
95ecff4f84 Send complete event in case of disconnection 2014-05-15 13:53:07 +00:00
mila@ringwald.ch
faab072e58 Send complete event in case of disconnection 2014-05-15 12:56:28 +00:00
mila@ringwald.ch
a672584960 use single gatt_complete_event (handle, status) 2014-05-15 10:54:27 +00:00
matthias.ringwald@gmail.com
4e6f32d5a8 postpone MTU check 2014-05-11 20:53:02 +00:00
matthias.ringwald@gmail.com
e11fb83b1c drop le_characteristic_value_t and add characteristic write 2014-05-11 20:34:13 +00:00
matthias.ringwald@gmail.com
191bc172f7 only use non-automatic-flushable acl packets for LE 2014-05-09 13:16:08 +00:00
mila@ringwald.ch
956f18fbf5 refactored serialize, deserialize gatt structs 2014-05-08 15:08:47 +00:00
mila@ringwald.ch
fe8aced921 extending daemon with gatt functionality 2014-05-08 13:31:06 +00:00
matthias.ringwald@gmail.com
93126f823e include own headers 2014-05-08 13:19:47 +00:00
mila@ringwald.ch
20bb552905 moved le cmd status, refactored gatt client is ready 2014-05-08 09:12:27 +00:00
mila@ringwald.ch
858f985fed add context field for higher layers in gatt_client_t 2014-05-07 20:57:43 +00:00
mila@ringwald.ch
a3a0b0107d check state in gatt_client_discover_primary_services 2014-05-07 20:57:22 +00:00
matthias.ringwald@gmail.com
1a1c8b391b set client field in gatt events 2014-05-07 20:06:01 +00:00
matthias.ringwald@gmail.com
adbf5dce60 add gatt_client_t * client to all events 2014-05-07 20:04:53 +00:00
matthias.ringwald@gmail.com
ae58dc74a5 annotate convenience functions 2014-05-06 21:22:55 +00:00
mila@ringwald.ch
29c3012bc5 make get_gatt_client_context_for_handle public for daemon 2014-05-06 21:20:53 +00:00
matthias.ringwald@gmail.com
bcdaafa184 sort fields a bit 2014-05-05 21:50:13 +00:00
mila@ringwald.ch
746c7f9e77 ble client: removed le_event definition 2014-05-03 22:12:32 +00:00