397 Commits

Author SHA1 Message Date
Matthias Ringwald
ec0f2af932 use SM_RESPONDER_PH1_W4_PAIRING_REQUEST only after sending security request 2015-08-13 14:28:39 +02:00
Matthias Ringwald
0db5c26b03 sm: prefix all ph4 states with responder, finished sorting sm_general_idle 2015-08-13 14:23:36 +02:00
Matthias Ringwald
5f62024dd4 handle encryption key refresh event 2015-08-13 13:04:27 +02:00
Matthias Ringwald
9b3c2e0ccc sm: map most sm_general_idle to sm_initiator_connected or sm_responder_idle 2015-08-13 12:41:05 +02:00
Matthias Ringwald
67f4e4579f sm: prepare replacing sm_general_idle with sm_responder_idle 2015-08-13 12:36:02 +02:00
Matthias Ringwald
2b91d5f501 store encryption key size, authenticated, authorized in le_device_db and provide for current connection 2015-08-13 11:00:41 +02:00
Matthias Ringwald
30fdc0d7f4 sm: continue after trigger user response in master role 2015-08-12 17:26:13 +02:00
Matthias Ringwald
c4a9be5e1b support l2cap le conn param update request via l2cap_run in l2cap_le.c 2015-08-12 14:42:12 +02:00
Matthias Ringwald
b68d7bc3c3 Add gap_request_connection_parameter_update
l2cap_le_request_connection_parameter_update is obsolete.
It calls gap_request_connection_parameteir_update now.
The l2cap conn param update req ist sent by l2cap_run.
2015-08-12 14:27:30 +02:00
Matthias Ringwald
264d2bd80e fix build 2015-08-07 23:38:17 +02:00
Matthias Ringwald
3f6c2cdd26 sm: only request encryption information if bonding enabled 2015-08-07 23:34:01 +02:00
Matthias Ringwald
6191541dd0 sm: handle security request in master role 2015-08-07 22:39:57 +02:00
Matthias Ringwald
2374cc5aed fix debug messages 2015-08-07 22:35:04 +02:00
Matthias Ringwald
e8d5dc2445 sm: update existing le device db entry, fix use of ediv/rand/ltk of bonded connections 2015-08-05 15:48:53 +02:00
Matthias Ringwald
fbf1e48df0 log ediv get/set 2015-08-05 15:46:47 +02:00
Matthias Ringwald
68b0e067d4 sm: use peer address in client notifications instead of master address 2015-08-05 12:11:31 +02:00
Matthias Ringwald
46452f47d3 sm: remove debug message 2015-08-04 14:40:43 +02:00
Matthias Ringwald
2de22786db sm: implement general address resolution using linked list 2015-08-04 13:59:51 +02:00
Matthias Ringwald
d3862db066 sm: convert address resolution into state machine 2015-08-04 12:13:14 +02:00
Matthias Ringwald
2e71710150 sm: introduce address resolution events and mode 2015-08-04 11:28:53 +02:00
Matthias Ringwald
53544995a3 extract sm_address_resolution_succeeded and _failed 2015-08-03 17:43:34 +02:00
Matthias Ringwald
ce1e26281b make address resolution/identify resolving public 2015-07-31 16:59:07 +02:00
Matthias Ringwald
3299fc1742 rename sm_address_resolution_device* into sm_address_resolution* 2015-07-31 16:25:27 +02:00
Matthias Ringwald
69d313c5b0 rename sm_central_device* into sm_address_resolution* 2015-07-31 16:19:02 +02:00
Matthias Ringwald
07a9209480 generalize sm_csrk context arguments 2015-07-31 15:59:18 +02:00
Matthias Ringwald
71b2c14530 generalize context argument for aes128 and random number generation 2015-07-31 15:55:31 +02:00
Matthias Ringwald
341d229cfc fix list of expected keys in master role, trigger sm_run on sm_authorization_request 2015-07-30 23:28:46 +02:00
Matthias Ringwald
a2a6b20cae add GAP Characteristic UUIDs 2015-07-30 11:56:29 +02:00
Matthias Ringwald
79f53f1d06 pass in signaling identifier, use correct signaling identifier for l2cap connection parameter update response 2015-07-29 15:15:41 +02:00
Matthias Ringwald
4956621bec fix build 2015-07-29 14:35:51 +02:00
Matthias Ringwald
ef2fb8f565 fix build 2015-07-29 14:34:26 +02:00
Matthias Ringwald
95e65d5c30 fix build 2015-07-29 14:26:29 +02:00
Matthias Ringwald
e5c576e09f start adding l2cap_run and l2cap connection parameter update to l2cap_le 2015-07-29 14:23:58 +02:00
Matthias Ringwald
bc269d0df1 fix compile 2015-07-29 11:51:50 +02:00
Matthias Ringwald
4f55143247 fix compile, use bd_addr_type_t 2015-07-29 11:49:12 +02:00
Matthias Ringwald
c02646d03c fix arguments for auto connection API 2015-07-27 17:30:25 +02:00
Matthias Ringwald
808009956a add gap auto connection api 2015-07-27 17:29:45 +02:00
Milanka Ringwald
d7d7d1e4c5 mock: set max mtu fot att connection 2015-07-03 12:36:58 +02:00
Matthias Ringwald
6508a68d38 remove useless test 2015-07-02 16:22:06 +02:00
Milanka Ringwald
c4350632cc annotate/update api, handle multiline function def 2015-07-01 17:04:51 +02:00
Matthias Ringwald
45c102fdda add helper hci_le_advertisements_set_params function to avoid call to sm from hci, gap ddvertisement control complete 2015-06-12 19:28:46 +02:00
Matthias Ringwald
9cc64000ad provide getter for random address mode 2015-06-11 23:12:25 +02:00
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