Commits

Commit Message Author Age Changes
61a4a47d tools/btgatt-server: Add command support and the notify command. This patch adds a command REPL and introduces the "notify" command which allows sending notifications and indications. Arman Uguray 11 years ago 1 file, +231, -0
0b3245f8 tools/btgatt-server: Populate the database. This patch populates the GATT database with the GAP and GATT services. Arman Uguray 11 years ago 1 file, +257, -0
86cfcf72 tools/btgatt-server: Accept incoming connection and initialize server. This patch adds code that listens for incoming connections and creates a bt_gatt_server and bt_att structure once a connection is accepted. Arman Uguray 11 years ago 1 file, +237, -5
46da8d07 tools/btgatt-server: Introduce btgatt-server. This patch introduces tools/btgatt-server, which is a command-line tool for testing and debugging shared/gatt-server. Arman Uguray 11 years ago 3 files, +123, -3
01244de3 shared/gatt-db: Leave value untouched if realloc fails. gatt_db_attribute_write currently sets the attrib->value pointer to NULL and leaks the old memory block, since realloc leaves the initial block untouched if it fails and returns NULL. This patch fixes this so that the attribute value isn't modified if realloc fails. Arman Uguray 11 years ago 1 file, +8, -2
02c7e754 shared/gatt-client: Fix memory bug in service_changed_complete This patch fixes a bug that got accidentally introduced in a previous memory leak fix, where the temporary discovery_op structure held on to the newly discovered service pointers after passing their ownership to the client and incorrectly free'd their memory. This was correctly fixed in init_complete but missed in service_changed_complete. Arman Uguray 11 years ago 1 file, +5, -1
d21b8db3 android: Fix not setting max_clients If max_clients is not set the ipc send uninitialized bytes. Luiz Augusto von Dentz 11 years ago 9 files, +12, -0
b936623b shared/io-glib: Reduce duplicated code Luiz Augusto von Dentz 11 years ago 1 file, +94, -170
c6799519 unit/test-gatt: Add debug for bt_att Luiz Augusto von Dentz 11 years ago 1 file, +7, -3
bd4261d4 android/hal-handsfree: Minor whitespace cleanup Szymon Janc 11 years ago 1 file, +2, -2
1efe7dfb android/hal-handsfree: Fix missing message size in IPC handlers All handsfree events have now address parameter and require proper size to be defined in IPC handler. Otherwise IPC will reject those with invalid message size error and shutdown bluetooth. Szymon Janc 11 years ago 1 file, +8, -7
346dab1b doc: Update description of remote OOB commands Marcel Holtmann 11 years ago 1 file, +9, -0
43d84249 android/client: Fix build on Android Kitkat Fix missing kitkat build failure: external/bluetooth/bluez/android/client/if-hf.c: At top level: external/bluetooth/bluez/android/client/if-hf.c:108:1: error: unknown type name 'bthf_wbs_config_t' external/bluetooth/bluez/android/client/if-hf.c:108:1: error: unknown type name 'bthf_wbs_config_t' external/bluetooth/bluez/android/client/if-hf.c: In function 'str2bthf_wbs_config_t': external/bluetooth/bluez/android/client/if-hf.c:108:1: error: 'bthf_wbs_config_t' undeclared (first use in this function) external/bluetooth/bluez/android/client/if-hf.c:108:1: note: each undeclared identifier is reported only once for each function it appears in external/bluetooth/bluez/android/client/if-hf.c: At top level: external/bluetooth/bluez/android/client/if-hf.c:109:2: error: 'BTHF_WBS_NONE' undeclared here (not in a function) external/bluetooth/bluez/android/client/if-hf.c:110:2: error: 'BTHF_WBS_NO' undeclared here (not in a function) external/bluetooth/bluez/android/client/if-hf.c:111:2: error: 'BTHF_WBS_YES' undeclared here (not in a function) make: *** Jakub Tyszkowski 11 years ago 1 file, +2, -0
cffdf1b6 shared/att: Add API for sending ATT error response This patch adds bt_att_send_error_rsp which sends an ATT protocol error response PDU over the underlying link based on the parameters that are passed to it. This is a useful function since it reduces a lot of repeated code in shared/gatt-server that does the same thing. The "error" parameter is expressed as a signed integer (in line with the new shared/gatt-db APIs). bt_att_send_error_rsp correctly maps this (including possible UNIX errnos) to ATT protocol error codes. In addition, struct bt_att_pdu_error_rsp is introduced to represent a packed error response PDU which can be sent directly over the wire once properly encoded in network order. Arman Uguray 11 years ago 6 files, +145, -154
227370ec unit/test-gatt: Fix not calling test step function Marcin Kraglak 11 years ago 1 file, +19, -10
53f9bc2b android/gatt: dummy callback for indications Indications require a confirmation reply, and newer APIs require that a callback is provided. Add a dummy callback which ignores this confirmation to ensure future compatability. Michael Janssen 11 years ago 1 file, +13, -4
6c20c1df android/tester-gatt: deduplicate read-by-type PDUs These read-by-type PDUs are repeated multiple times throughout the code. Michael Janssen 11 years ago 1 file, +18, -45
e6b93dd2 android/tester-gatt: Fix search single PDUs The final PDU of the search single exchange was malformed on many of these: 0x11 instead of 0x10 in the "request opcode in error" slot. This patch fixes this bug and deduplicates the repeated PDUs by using a macro instead. Michael Janssen 11 years ago 1 file, +26, -80
e5d2140d android/handsfree: Send phone state to all connected devices Lukasz Rymanowski 11 years ago 1 file, +29, -22
ecab9f08 android/handsfree: Send indicator notif to all connected devices Lukasz Rymanowski 11 years ago 1 file, +14, -7
a0a57704 android/client: Add handsfree configure_wbs command Add command configure_wbs and helpers. Andrei Emeltchenko 11 years ago 1 file, +36, -0
12c3a0ad android/client: Fix help for handsfree haltest tool Andrei Emeltchenko 11 years ago 1 file, +28, -9
94339ef4 android/client: Add handsfree wbs_cb callback Andrei Emeltchenko 11 years ago 1 file, +11, -0
ca3a946e android/client: Fix argc count Andrei Emeltchenko 11 years ago 1 file, +1, -1
c2f62b97 android/pts: PTS tests results for SPP PTS version 5.3. Android version 5.0 Sebastian Chlad 11 years ago 1 file, +2, -2
e5ea904d android/hal-ipc-api: Update GATT service with Android 5 API This add definitions for commands and notifications introduced by Android 5 API. Szymon Janc 11 years ago 1 file, +266, -0
e5975d20 android/hal-ipc-api: Prefix GATT HAL with Client or Server GATT HAL implements both client and server. All commands and notifications are prefixed with proper role. Android 5 enhanced both client and server API with new commands and events so codes will no longer be continuous. This will make tracking client and server commands/notifications easier. Szymon Janc 11 years ago 1 file, +72, -69
37b5a8e8 android/hal-ipc-api: Documentation update and cleanup This patch clarifies that 0x80 opcode is reserved and not used. This is in case we need to introduce confirmations for notifications. Error response definition is moved into common place and all HALs are simply referring to it. This is to keep valid status values in single place. Valis status is also updated with 'Authentication Rejected' error added in Android 5.0 API. Szymon Janc 11 years ago 1 file, +21, -147
a0f72648 android/hal-gatt: Add stubs for Android 5 API calls This will help tracking what is missing in HAL implementation. Szymon Janc 11 years ago 1 file, +209, -0
5a1122d4 android/pts: PTS tests results for HDP PTS version 5.3. Android version 5.0 Sebastian Chlad 11 years ago 1 file, +2, -2
5d28feaf android/pts: PTS tests results for DID PTS version 5.3. Android version 5.0 Sebastian Chlad 11 years ago 1 file, +2, -2
3d2eb56d android/gatt: Cleanup unused variables Luiz Augusto von Dentz 11 years ago 1 file, +0, -21
3e465f5e android/gatt: Fix device name characteristic gap_read_cb was never calling gatt_db_attribute_read_result which now cause a timeout after 1 second. Luiz Augusto von Dentz 11 years ago 1 file, +10, -48
d778db94 android/gatt: Store Appearance and Privacy in db This stores Appearance and Privacy values in the db itself since they are static and don't depend in any context information. Luiz Augusto von Dentz 11 years ago 1 file, +29, -20
77a48be1 android/client: Fix help for bt_create_bond command Andrei Emeltchenko 11 years ago 1 file, +4, -0
022a64e7 android/client: Fix help for gatt client commands Andrei Emeltchenko 11 years ago 1 file, +5, -0
61b239ee android/client: Fix help for gatt server commands Andrei Emeltchenko 11 years ago 1 file, +4, -0
e966e940 android/client: Fix adding missing BT_PROFILE_AV_RC_CTRL_ID Add BT_PROFILE_AV_RC_CTRL_ID to profile_ids[]. Andrei Emeltchenko 11 years ago 1 file, +1, -0
3b192bed android/build: Fix bluetoothd build This fixes the following error: external/bluetooth/bluez/src/shared/gatt-db.c:787: error: undefined reference to 'timeout_remove' external/bluetooth/bluez/src/shared/gatt-db.c:879: error: undefined reference to 'timeout_remove' external/bluetooth/bluez/src/shared/gatt-db.c:825: error: undefined reference to 'timeout_add' external/bluetooth/bluez/src/shared/gatt-db.c:917: error: undefined reference to 'timeout_add' collect2: error: ld returned 1 exit status Jakub Tyszkowski 11 years ago 1 file, +1, -0
84f3de0d monitor: Fix AVRCP GetElementAttributes AttributeValueLength can be 0 which would lead to use uninitialized memory, with this changes it now workds properly: AVCTP Control: Response: type 0x00 label 0 PID 0x110e AV/C: Stable: address 0x48 opcode 0x00 Subunit: Panel Opcode: Vendor Dependent Company ID: 0x001958 AVRCP: GetElementAttributes pt Single len 0x0019 AttributeCount: 0x03 Attribute: 0x00000001 (Title) CharsetID: 0x006a (UTF-8) AttributeValueLength: 0x0000 AttributeValue: Attribute: 0x00000002 (Artist) CharsetID: 0x006a (UTF-8) AttributeValueLength: 0x0000 AttributeValue: Attribute: 0x00000003 (Album) CharsetID: 0x006a (UTF-8) AttributeValueLength: 0x0000 AttributeValue: Vikrampal Yadav 11 years ago 1 file, +2, -2
56dacf9b tools/sdptool: Add support for IrMC service record IrMC Record output captured from sdptool: Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x1000b Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x1104 - IrMCSync Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Data Sequence UUID16 : 0x0003 - RFCOMM Channel/Port (Integer) : 0xe Data Sequence UUID16 : 0x0008 - OBEX Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x9 - BluetoothProfileDescriptorList Data Sequence Data Sequence UUID16 : 0x1104 - IrMCSync Version (Integer) : 0x100 Attribute Identifier : 0x100 Data : 53 79 6e 63 68 72 6f 6e 69 7a 61 74 69 6f 6e 00 Attribute Identifier : 0x301 - SupportedDataStoresList Data Sequence Integer : 0x1 Gowtham Anandha Babu 11 years ago 1 file, +7, -1
600531aa tools/sdptool: Add support for PBAP service record PBAP Record output captured from sdptool: Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x1000a Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x112f - Phonebook Access (PBAP) - PSE Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Data Sequence UUID16 : 0x0003 - RFCOMM Channel/Port (Integer) : 0xf Data Sequence UUID16 : 0x0008 - OBEX Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x9 - BluetoothProfileDescriptorList Data Sequence Data Sequence UUID16 : 0x1130 - Phonebook Access (PBAP) Version (Integer) : 0x101 Attribute Identifier : 0x100 Data : 50 68 6f 6e 65 20 42 6f 6f 6b 20 41 63 63 65 73 73 00 Attribute Identifier : 0x314 - SupportedRepositories Integer : 0x1 Attribute Identifier : 0x317 - PbapSupportedFeatures Integer : 0x3 Gowtham Anandha Babu 11 years ago 1 file, +8, -1
068a9a47 src/profile: Add pbapsupportedfeatures to PSE Add PbapSupportedFeatures(0x0317) to PSE Record. PTS Test case passed: TP/SSM/BV-11-C [PSE Shares PbapSupportedFeatures bits]. Gowtham Anandha Babu 11 years ago 1 file, +3, -0
432f1f2f shared/gatt-client: Fix handling service changed If gatt-client discovers the "Service Changed" characteristic but doesn't discover a Client Characteristic Configuration descriptor for it then it should just invoke the ready callback instead of attempting to register a handler and failing. This patch addresses that. Arman Uguray 11 years ago 1 file, +8, -2
a4af59db shared/gatt-client: Fix bug in service changed This patch fixes a bug in which "0" was passed as the start and end handles of the service changed callback if no new service was found within the range. Arman Uguray 11 years ago 1 file, +11, -4
bfbc96b5 shared/gatt-db: Add timeout to read/write This adds a timeout (1 second) to attribute operations since these can cause unexpected transport disconnections if they take too long to complete. Luiz Augusto von Dentz 11 years ago 1 file, +61, -5
c1a01d08 android/hal: Fix last service id number Andrei Emeltchenko 11 years ago 1 file, +1, -1
b4b68cc0 android/handsfree-client: Handle disconnect command This function adds handling of handsfree client disconnect. This patch also moves device_set_state and device_destroy funtion in the file as this is needed by the handle_disconnect Lukasz Rymanowski 11 years ago 1 file, +80, -38
4b726a25 android/handsfree-client: Add support for outgoing connection Lukasz Rymanowski 11 years ago 1 file, +122, -7
1fb723bb android/handsfree-client: Add SLC creation procedure This patch implements SLC procedure for HFP HF. Lukasz Rymanowski 11 years ago 1 file, +555, -1
Previous Next