305 Commits

Author SHA1 Message Date
Matthias Ringwald
34498a4937 use 0/1 instead of false/true 2015-05-24 00:11:34 +02:00
Matthias Ringwald
3ec0d11b8e added att_db_util to construct GATT DB at runtime 2015-05-23 23:35:37 +02:00
Matthias Ringwald
0194cfb2d8 disable log_info for every att packet 2015-05-21 18:18:47 +02:00
Matthias Ringwald
f243b7dfe2 fix compile error from last commit 2015-05-21 15:48:14 +02:00
Matthias Ringwald
4fdd1cade1 handle call to sm_send_security_request before hci le connection complete was handled in sm 2015-05-21 15:45:55 +02:00
Matthias Ringwald
dd3f0a48d9 handle HCI events received from gatt_client instead of existing hack 2015-05-21 15:39:20 +02:00
Matthias Ringwald
3652575526 gatt_client: more log_info, forward all HCI Events to gatt subclients 2015-05-21 15:36:49 +02:00
Matthias Ringwald
3df1d63fe3 fix warnings 2015-05-13 16:07:17 +02:00
Matthias Ringwald
71de195ed3 fix c99 warnings for missing argument of functions with no arguments, fix more warnings 2015-05-13 10:30:46 +02:00
Matthias Ringwald
b2eeb2dcac use format string for uuid in log_info 2015-05-12 18:48:46 +02:00
Sean Wilson
6da48142ef Fix C99 warnings. 2015-04-28 10:31:53 -04:00
Matthias Ringwald
15ae709331 fix comparison 2015-04-26 09:46:07 +02:00
Matthias Ringwald
ea35cda86d fix sending of security request by le responder 2015-04-24 12:12:37 +02:00
Matthias Ringwald
a9d5294b44 log uuid128 instad of using printf 2015-04-10 12:39:28 +02:00
Milanka Ringwald
3de9530758 updated docu style 2015-04-09 17:09:04 +02:00
Matthias Ringwald
23dcb0cb5a fix compile 2015-04-09 15:23:23 +02:00
Milanka Ringwald
5e6d58c471 annotate start/end API 2015-04-09 14:46:44 +02:00
Matthias Ringwald
1ae972aa1a add check for 'can send now' in gatt_client_write_value_of_characteristic_without_response 2015-04-04 22:52:11 +02:00
Matthias Ringwald
142d429464 correct ATT_MTU_EXCHANGE_COMPLETE event generation 2015-04-03 22:40:20 +02:00
Matthias Ringwald
64c9c43f68 fix compile 2015-04-03 22:12:34 +02:00
Matthias Ringwald
1c00af99f7 emit event for ATT MTU size 2015-04-03 21:58:10 +02:00
Matthias Ringwald
6771095235 fix ad_data_contains_uuid128 to accept uuid in big endian 2015-03-31 22:13:25 +02:00
Pete Blois
a2366dc9d3 Setting correct length for BTSTACK_EVENT_STATE event.
The second byte of the data is the length of the remaining data (in this case the HCI_STATE_WORKING byte). This was passing 0 indicating that there was no data when in fact there was.
2015-03-30 13:17:10 -07:00
matthias.ringwald@gmail.com
aa3feb0444 wait for sm_cmac to become ready instead of bailing out for signed writes 2015-03-05 15:20:26 +00:00
matthias.ringwald@gmail.com
6a0c192f28 send prepared signed write request from gatt_client_run() 2015-03-05 15:05:35 +00:00
matthias.ringwald@gmail.com
c1899d25d0 pass sign counter into CMAC calculation functions 2015-03-05 14:42:26 +00:00
matthias.ringwald@gmail.com
5c52231480 added sm_le_device_index for use by gatt client/server 2015-03-05 10:48:26 +00:00
matthias.ringwald@gmail.com
85cacb82ec sm starts encryption using ltk/ediv/rand from previous bonding 2015-03-03 22:17:47 +00:00
matthias.ringwald@gmail.com
9ec080fd8e new states for re-establishing secure connection 2015-03-03 21:38:29 +00:00
matthias.ringwald@gmail.com
b9b968bb23 rename central_device_db_index into le_device_db_index 2015-03-02 21:44:16 +00:00
matthias.ringwald@gmail.com
3a3e1c9119 renamed central_device_db* files into le_device_db* 2015-03-02 21:40:56 +00:00
matthias.ringwald@gmail.com
c5d3944d90 rename central_device_db into le_device_db 2015-03-02 21:30:12 +00:00
matthias.ringwald@gmail.com
d2d764240d add encryption info to central db 2015-03-02 21:12:29 +00:00
matthias.ringwald@gmail.com
4685dbaa3a add fields necessary for LE Cetnral, implemented remove operation 2015-03-02 20:08:15 +00:00
matthias.ringwald@gmail.com
2e77e513be Stop using pointer to array for bd_addr_t and link_key_t 2015-03-01 20:51:08 +00:00
matthias.ringwald@gmail.com
24b0319d94 refactored stk setup 2015-02-27 19:56:00 +00:00
matthias.ringwald@gmail.com
334856fa1b move code to start timer on pairing request 2015-02-27 19:14:15 +00:00
matthias.ringwald@gmail.com
abace5deec extracted sm_initiator_setup2 2015-02-27 16:53:54 +00:00
matthias.ringwald@gmail.com
bf214029e8 remove peer_csrk from setup 2015-02-27 16:06:07 +00:00
matthias.ringwald@gmail.com
6811cadec6 removed dead code 2015-02-27 16:02:56 +00:00
matthias.ringwald@gmail.com
dc438c837d fix LTK setup using ediv and rand 2015-02-27 15:53:53 +00:00
matthias.ringwald@gmail.com
d19b56e8be use single timer for SM, stop timer on sm_done_for_handle 2015-02-27 14:17:45 +00:00
matthias.ringwald@gmail.com
6189a1c676 Security Manager extended for multiple LE connections 2015-02-27 10:52:33 +00:00
matthias.ringwald@gmail.com
477200f2ef use sm_active_connection as mutex for setup context struct 2015-02-26 21:32:16 +00:00
matthias.ringwald@gmail.com
a911672806 track if sm_setup is used 2015-02-26 16:11:09 +00:00
matthias.ringwald@gmail.com
362481ca52 sort sm_init_setup, fix compile 2015-02-26 15:31:52 +00:00
matthias.ringwald@gmail.com
3143670f4d call sm_init_setup from sm_run() 2015-02-26 15:07:24 +00:00
matthias.ringwald@gmail.com
6731b28f11 extracted sm_init_setup 2015-02-26 15:02:59 +00:00
matthias.ringwald@gmail.com
fe9e7f880a fix regression in r3160 that broke security manager 2015-02-26 14:30:51 +00:00
matthias.ringwald@gmail.com
3e58ab5fb0 finish removal of global sm_connection_t * connection. 2015-02-12 23:04:15 +00:00