mila@ringwald.ch
|
7c40ac80c0
|
rewrote gatt_client state handling: API uses handles instaed of context structs (adapted examples and daemon)
|
2014-10-02 20:06:29 +00:00 |
|
mila@ringwald.ch
|
01159b07a8
|
added ATT_ERROR_TIMEOUT
|
2014-10-02 19:56:07 +00:00 |
|
matthias.ringwald@gmail.com
|
c37a3166d2
|
added gap_update_connection_parameters
|
2014-09-21 19:43:59 +00:00 |
|
mila@ringwald.ch
|
5b09aef38a
|
check client handler before calling it att_server
|
2014-09-07 19:27:54 +00:00 |
|
matthias.ringwald@gmail.com
|
22f6379b3a
|
set state before notifying user
|
2014-09-05 14:59:16 +00:00 |
|
mila@ringwald.ch
|
d80fc61e5a
|
checks splitted and moved to appropriate palaces in the switch statement
|
2014-08-28 09:05:58 +00:00 |
|
matthias.ringwald@gmail.com
|
756ca330b0
|
don't call sm_run before event handler, avoids warning. don't check for l2cap_can_send_now if no connection
|
2014-08-28 07:50:13 +00:00 |
|
matthias.ringwald
|
b1bb02c964
|
move check for acl packets after state machines for CMAC, key generation, random address generation
|
2014-08-27 12:52:20 +00:00 |
|
matthias.ringwald
|
d37bc63c22
|
use READ_BT_32 to avoid crash beacuse of non-aligned data access
|
2014-08-27 12:50:09 +00:00 |
|
mila@ringwald.ch
|
9da54300b6
|
use log_info instead of printf, remove trailing newline from log calls
|
2014-08-15 21:26:50 +00:00 |
|
matthias.ringwald@gmail.com
|
219eea5f01
|
fix compile
|
2014-08-14 21:31:36 +00:00 |
|
matthias.ringwald@gmail.com
|
e5e1518d8a
|
add l2cap_max_le_mtu
|
2014-08-14 15:36:00 +00:00 |
|
matthias.ringwald@gmail.com
|
97e8ef4a90
|
fix warnings
|
2014-08-11 22:09:43 +00:00 |
|
matthias.ringwald@gmail.com
|
c51c539d70
|
remove unused function
|
2014-08-11 22:07:10 +00:00 |
|
matthias.ringwald@gmail.com
|
d27c46f584
|
fix compile
|
2014-08-11 22:00:51 +00:00 |
|
matthias.ringwald@gmail.com
|
f9a298a27e
|
use l2cap_can_send_fixed_channel_packet_now
|
2014-08-11 21:58:44 +00:00 |
|
matthias.ringwald@gmail.com
|
6cd4da6bc4
|
provide l2cap_can_send_fixed_channel_packet_now that takes handle as input
|
2014-08-11 21:49:15 +00:00 |
|
matthias.ringwald@gmail.com
|
a35252c8fd
|
use hci_can_send_acl_packet_now instead of hci_can_send_packet_now_using_packet_buffer, hci_can_send_prepared_acl_packet_now instead of hci_can_send_packet_now - providing handle if available
|
2014-08-11 21:40:02 +00:00 |
|
matthias.ringwald@gmail.com
|
d94d3caf6b
|
use hci_can_send_command_packet_now instead of hci_can_send_packet_now_using_packet_buffer(HCI_COMMAND_DATA_PACKET)
|
2014-08-11 21:20:07 +00:00 |
|
matthias.ringwald@gmail.com
|
826f734756
|
replace hci_send_acl_packet(data,size) with hci_send_acl_packet_buffer(size) to document that ACL packet have to be prepared in the hci packet buffer
|
2014-07-30 20:46:27 +00:00 |
|
matthias.ringwald@gmail.com
|
eb036bf832
|
use ATT_DEFAULT_MTU instead of l2cap classic mtu
|
2014-07-15 20:55:01 +00:00 |
|
matthias.ringwald@gmail.com
|
c9420e0c91
|
added default ATT MTU
|
2014-07-15 20:54:07 +00:00 |
|
mila@ringwald.ch
|
d3b1c40fa3
|
renamed gatt client register handler function
|
2014-07-04 08:42:30 +00:00 |
|
mila@ringwald.ch
|
94a521cb7e
|
gatt client: api docu
|
2014-07-03 13:42:30 +00:00 |
|
mila@ringwald.ch
|
59bda8dea8
|
gatt client: api docu
|
2014-07-03 10:41:45 +00:00 |
|
matthias.ringwald@gmail.com
|
a93597fce0
|
return after sending an l2cap packet
|
2014-07-01 22:03:40 +00:00 |
|
matthias.ringwald@gmail.com
|
252bfddcb7
|
removed obsolete include left over from testing
|
2014-07-01 20:07:17 +00:00 |
|
mila@ringwald.ch
|
659c39066f
|
gatt client: adding docu
|
2014-06-27 15:24:31 +00:00 |
|
matthias.ringwald@gmail.com
|
a2cfedb666
|
more Python 3 fixes: open .gatt as unicode and use StringIO from io module
|
2014-06-22 21:26:07 +00:00 |
|
matthias.ringwald@gmail.com
|
2b1addd97e
|
add missing function
|
2014-06-20 21:49:02 +00:00 |
|
mila@ringwald.ch
|
f64240626f
|
gatt client: implemented signed write
|
2014-06-19 22:20:43 +00:00 |
|
mila@ringwald.ch
|
22332a8a16
|
corrected cmd att opcode name
|
2014-06-19 22:19:26 +00:00 |
|
matthias.ringwald
|
49cbe0bc2d
|
trigger user response before calucation local confirm as Iniiator, too
|
2014-06-15 16:02:56 +00:00 |
|
matthias.ringwald
|
b107f94044
|
extracted sm_trigger_user_response() and extend for Initiator role
|
2014-06-15 15:43:05 +00:00 |
|
matthias.ringwald
|
c915297a5f
|
label RESPONDER states, drop _STATE from SM_STATES
|
2014-06-15 15:27:04 +00:00 |
|
matthias.ringwald
|
dd11c3c76d
|
sort other setup vars after phases
|
2014-06-15 10:55:02 +00:00 |
|
matthias.ringwald
|
566ca003b2
|
sm_aes128_plaintext -> sm_c1_t3_value to document usage
|
2014-06-15 10:42:39 +00:00 |
|
matthias.ringwald
|
a674d4c1e6
|
don't use sm_aes128_plaintext for ltk calculation
|
2014-06-15 10:40:36 +00:00 |
|
matthias.ringwald
|
9c8b3a52e3
|
don't use sm_aes128_plaintext for ltk calculation
|
2014-06-15 10:38:00 +00:00 |
|
matthias.ringwald
|
0685b7b19c
|
calculate keys in Initiator role, too
|
2014-06-15 10:35:03 +00:00 |
|
matthias.ringwald
|
937643c571
|
calculate local CSRK for key distribution
|
2014-06-15 10:26:41 +00:00 |
|
matthias.ringwald
|
eb1157bb12
|
sort setup fields by phases, use addr type of device to find in central db
|
2014-06-14 21:11:34 +00:00 |
|
matthias.ringwald
|
afb65a03fb
|
use sm_peer_address/addr_type for receiving keys and use local addrress/addr_type directly from hci
|
2014-06-14 20:45:50 +00:00 |
|
matthias.ringwald
|
cb7e8bd038
|
store all received keys (aside from peer addr and type)
|
2014-06-13 18:37:12 +00:00 |
|
matthias.ringwald
|
e14eb8abef
|
finish key distribution for initiator role
|
2014-06-13 15:50:55 +00:00 |
|
matthias.ringwald
|
641f306499
|
encryption with STK in initiator role working
|
2014-06-13 15:28:41 +00:00 |
|
matthias.ringwald
|
8e9a149871
|
use local/peer instead of m/s for confirm
|
2014-06-13 13:36:13 +00:00 |
|
matthias.ringwald
|
dd03900d94
|
use local/peer instead of m/s for random
|
2014-06-13 13:31:16 +00:00 |
|
matthias.ringwald
|
9f1de16289
|
Phase 2 of sm setup working for initiator
|
2014-06-13 13:22:41 +00:00 |
|
matthias.ringwald
|
24139500d2
|
rename sm_s_ltk into sm_ltk (it's used as sm_stk, too)
|
2014-06-13 12:42:10 +00:00 |
|