Matthias Ringwald
589f5a99a3
sm: sm_notify_client_authorization -> sm_notify_client_status for use with SM_EVENT_PAIRING_COMPLETE
2018-02-01 16:07:24 +01:00
Matthias Ringwald
16a1a3e5b4
bluetooth.h: fix typo in SM_REASON_PASSKEY_ENTRY_FAILED
2018-02-01 16:07:24 +01:00
Matthias Ringwald
6420f61ec7
sm: remove dead code
2018-02-01 16:06:43 +01:00
Matthias Ringwald
47181045ae
gatt_client: add gatt_client_request_can_write_without_response_event()
2018-02-01 15:17:03 +01:00
Matthias Ringwald
71af96a130
btstack_event: add GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE
2018-02-01 13:50:36 +01:00
Matthias Ringwald
047a7fd38a
att_dispatch: request another can send now event if needed
2018-02-01 12:28:31 +01:00
Matthias Ringwald
7a705a928c
att_dispatch: round robin for client & server
2018-02-01 12:19:12 +01:00
Matthias Ringwald
53e41ec1de
att_dispatch: store client and server in array, simplify packet handler
2018-02-01 12:08:41 +01:00
Matthias Ringwald
25684bfca7
att_dispatch: fix packet type for ATT_EVENT_MTU_EXCHANGE_COMPLETE, extract emit_mtu_exchange_complete
2018-02-01 11:55:50 +01:00
Matthias Ringwald
45f2a74090
gatt_client: requeue gatt client after send for fairness
2018-02-01 11:40:58 +01:00
Matthias Ringwald
544128c36f
gatt_client: extract gatt_client_run_for_peripheral, don't abort gatt_client_run if one gatt client is in SENT_MTU_EXCHANGE state, request can_send_now when sending any packet
2018-02-01 11:32:42 +01:00
Matthias Ringwald
4e5e1eb09e
att_db_util: return attribute handle for new servics, improve header documentation
2018-01-31 16:13:17 +01:00
Matthias Ringwald
838e632c8e
gatt_client: drop gatt_client_pts_suppress_mtu_exchange function, replaced by gatt_client_mtu_enable_auto_negotiation(0)
2018-01-30 19:12:48 +01:00
Jakob Krantz
5cf6c43447
gatt_client: Adds configuration for when or if a MTU negotiation should be made.
...
- Disable automatic MTU negotiation for gatt_client. Add method to manually
send a MTU negotiation
2018-01-30 19:12:48 +01:00
Jakob Krantz
b12646c53b
att_dispatch: Propogate MTU update to both att_server and gatt_client.
...
According to the BT 5.0 spec. A MTU negotiation shall only be required in one
direction. I.e. We must propogate the negotiated MTU between gatt_client
and att_server.
2018-01-30 19:12:33 +01:00
Matthias Ringwald
25818320b7
l2cap: allow to set the max LE MTU
2018-01-30 19:01:33 +01:00
Jakob Krantz
8f37572a30
Adds missing emit of GATT_EVENT_MTU when the MTU has changed.
2018-01-30 18:52:21 +01:00
Matthias Ringwald
9c77c9db73
hci: fix handling of le connection complete with ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER as result of hci le create connection cancel command
2018-01-30 18:49:31 +01:00
Matthias Ringwald
46eb6b51b8
att_db_util.c: fix include path
2018-01-30 17:33:30 +01:00
Matthias Ringwald
9f28d85d18
att_db_util: add functions to create descriptors. document how to calculate cccd attribute handle
2018-01-30 17:29:10 +01:00
Jakob Krantz
b489552907
Fixes bug where the descriptor UUID16 was not set even thought it had one.
...
When deserializeing a characteristic_descriptor the UUID16 wouldn't be set even
thought it had an 16 bit UUID. This adds check to see if the descriptor has a
UUID16, if so, we read the UUID16 and set it to the gatt_client_characteristic_descriptor_t.
2018-01-30 17:02:31 +01:00
Jakob Krantz
cbe54ab248
Adds option to set the connection_scan_interval and connection_scan_window.
2018-01-30 16:59:28 +01:00
Jakob Krantz
c4c88f1bc9
Adds functionality for setting the master-slave role policy. Fixes bug when handling HCI_EVENT_ROLE_CHANGE.
2018-01-30 16:54:57 +01:00
Jakob Krantz
658d4117be
Fixes bug where the att_db would not be updated if realloc returnes a new chunk of memory.
2018-01-30 16:52:11 +01:00
Matthias Ringwald
87050a0b56
l2cap: add missing l2cap_emit_le_channel_closed
2018-01-30 11:30:12 +01:00
Matthias Ringwald
e3ee42a534
avrcp: fix compile warning
2018-01-29 15:04:18 +01:00
Matthias Ringwald
2cf36df7f5
l2cap: emit le open/close events for le data channels on disconnect
2018-01-26 14:19:39 +01:00
Matthias Ringwald
b5803aaff8
l2cap: use l2cap_max_mtu as MPS for le data channels
2018-01-19 16:15:12 +01:00
Matthias Ringwald
9c6e867ea6
sm: moved sm_encryption_key_size, sm_authenticated, sm_authorization_state into gap.h
2018-01-19 16:08:14 +01:00
Matthias Ringwald
895ff4a54f
l2cap: use log_debug for le data channel feedback
2018-01-17 22:43:26 +01:00
Milanka Ringwald
6276d22a9a
sbc: fix unused parameter compile error
2018-01-17 16:53:41 +01:00
Milanka Ringwald
d6ec9a32b8
sbc test: add new param to decoder test to introduce partial frame corruption
2018-01-17 16:39:48 +01:00
Milanka Ringwald
04ec07bf78
msbc: reset decoder on invalid params status
2018-01-17 16:39:48 +01:00
Milanka Ringwald
a305eb5351
sbc: handle more errors, assert liveliness
2018-01-17 16:39:48 +01:00
Milanka Ringwald
ad75da140d
avrcp browsing: AVRCP msg fragmentation
2018-01-17 16:39:48 +01:00
Matthias Ringwald
d5e694a307
l2cap: fix parsing of CONNECTION_PARAMETER_UPDATE_REQUEST
2018-01-17 12:05:42 +01:00
Matthias Ringwald
efd3b3273d
hci: switch to main baud rate after EM_CpuReset for EM9304
2018-01-16 20:31:45 +01:00
Matthias Ringwald
e021ff1e59
hci: reset baud rate after init script for EM9304 as well
2018-01-16 18:25:59 +01:00
Matthias Ringwald
f41911ede3
hci: use btstack_chipset_result_t enum
2018-01-16 18:03:19 +01:00
Matthias Ringwald
7c5b4db433
sbc decoder: don't give up if no new data can be added to input buffer
2018-01-16 16:07:48 +01:00
Milanka Ringwald
89425bfc53
hfp: clean up send cmd
2018-01-10 12:27:23 +01:00
Milanka Ringwald
1cc1d9e923
hfp ag: clean up command string construction
2018-01-09 16:06:14 +01:00
Milanka Ringwald
971b696e3d
avdtp: fix issue #96
2018-01-09 15:25:48 +01:00
Milanka Ringwald
5e71456c39
hfp ag: fix issue #97
2018-01-09 13:07:26 +01:00
Matthias Ringwald
8e7087f4b8
avrcp: fix size of emitted event
2017-12-24 00:28:03 +01:00
Matthias Ringwald
bc5322e78d
em9304: fix compile
2017-12-20 23:13:24 +01:00
Matthias Ringwald
aed1d832fa
em9304: fix RDY->RX transition
2017-12-20 23:04:07 +01:00
Matthias Ringwald
24b2b71b6f
em9304: enforce 4-byte alignment on SPI operations
2017-12-20 23:04:07 +01:00
Matthias Ringwald
fc46bba0b0
em9304: process all received data at once, cleanup state machine
2017-12-20 23:04:07 +01:00
Matthias Ringwald
f2e99339cd
em9304: change interface to provide callback on data available
2017-12-20 23:04:07 +01:00