OSDN Git Service

android-x86/external-bluetooth-bluez.git
9 years agomonitor: Update Appearance categories and subtypes
Marcel Holtmann [Sun, 14 Sep 2014 17:42:19 +0000 (19:42 +0200)]
monitor: Update Appearance categories and subtypes

9 years agomonitor: Update GATT Characteristics UUID translations
Marcel Holtmann [Sun, 14 Sep 2014 17:29:26 +0000 (19:29 +0200)]
monitor: Update GATT Characteristics UUID translations

9 years agomonitor: Update UUID to string mapping table
Marcel Holtmann [Sun, 14 Sep 2014 17:04:56 +0000 (19:04 +0200)]
monitor: Update UUID to string mapping table

9 years agotools/l2cap-tester: Specify explicit IO capability when necessary
Johan Hedberg [Sat, 13 Sep 2014 02:52:40 +0000 (05:52 +0300)]
tools/l2cap-tester: Specify explicit IO capability when necessary

9 years agoemulator: Use explicit IO capability for bthost
Johan Hedberg [Sat, 13 Sep 2014 02:51:00 +0000 (05:51 +0300)]
emulator: Use explicit IO capability for bthost

9 years agoemulator: Fix clearing advertising state when connected
Johan Hedberg [Fri, 30 May 2014 10:12:25 +0000 (13:12 +0300)]
emulator: Fix clearing advertising state when connected

9 years agocore: Fix missing channel unref on cached session watch
Szymon Janc [Fri, 12 Sep 2014 08:54:07 +0000 (10:54 +0200)]
core: Fix missing channel unref on cached session watch

g_io_add_watch function takes own reference so local one needs to
be dropped. Fix following Valgrind report:

126 (120 direct, 6 indirect) bytes in 1 blocks are definitely lost in
    loss record 146 of 158
at 0x4C2745D: malloc (in /usr/lib64/valgrind/
   vgpreload_memcheck-amd64-linux.so)
by 0x4E7FE6E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4EBC5B7: g_io_channel_unix_new (in /usr/lib64/
   libglib-2.0.so.0.3800.2)
by 0x4496B4: search_completed_cb (sdp-client.c:129)
by 0x45217B: sdp_process (sdp.c:4350)
by 0x449814: search_process_cb (sdp-client.c:228)
by 0x4E7A2A5: g_main_context_dispatch (in /usr/
   lib64/libglib-2.0.so.0.3800.2)
by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7AA39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x404372: main (main.c:550)

9 years agodoc/obex-api: Add API for PBAP 1.2 features
Luiz Augusto von Dentz [Wed, 18 Jun 2014 08:31:42 +0000 (11:31 +0300)]
doc/obex-api: Add API for PBAP 1.2 features

These changes add support for PBAP 1.2 features, the idea is that upon
connecting the stack will auto retrieve the DatabaseIdentifier which will
very likely be used by applications to detect if anything should be done.

In case DatabaseIdentifier is present the user application can then
request the folder version via GetVersion.

Two new filter are added, Operator which should be used along with FilterBy
and ResetNewMissedCalls the later can only be used in mch and cch folders.

9 years agodoc/media-api: Remove obsolete properties
Luiz Augusto von Dentz [Thu, 11 Sep 2014 10:29:20 +0000 (12:29 +0200)]
doc/media-api: Remove obsolete properties

Properties related to HFP/HSP are no longer available since BlueZ has
no native support of those profiles.

9 years agoandroid/hal-ipc-api: Fix define for HF-Client
Lukasz Rymanowski [Wed, 10 Sep 2014 11:11:34 +0000 (13:11 +0200)]
android/hal-ipc-api: Fix define for HF-Client

9 years agoandroid/hal-ipc-api: Add missing peer features parameter
Lukasz Rymanowski [Wed, 10 Sep 2014 11:11:33 +0000 (13:11 +0200)]
android/hal-ipc-api: Add missing peer features parameter

9 years agoandroid/hal-ipc-api: Use Tone instead of Code DTMF
Lukasz Rymanowski [Wed, 10 Sep 2014 11:11:32 +0000 (13:11 +0200)]
android/hal-ipc-api: Use Tone instead of Code DTMF

To be consistent with existing code for handsfree

9 years agoandroid/hal-ipc-api: Use 2 bytes for location in dial memory
Lukasz Rymanowski [Wed, 10 Sep 2014 11:11:31 +0000 (13:11 +0200)]
android/hal-ipc-api: Use 2 bytes for location in dial memory

9 years agodoc: Update Android tests coverage
Szymon Janc [Thu, 11 Sep 2014 08:18:57 +0000 (10:18 +0200)]
doc: Update Android tests coverage

9 years agoandroid/tester: Make GATT tests names more descriptive
Szymon Janc [Thu, 11 Sep 2014 08:18:13 +0000 (10:18 +0200)]
android/tester: Make GATT tests names more descriptive

9 years agoandroid/tester: Verify GATT instace IDs in callbacks
Marcin Kraglak [Thu, 11 Sep 2014 06:08:52 +0000 (08:08 +0200)]
android/tester: Verify GATT instace IDs in callbacks

9 years agoandroid/tester: Add GATT Get Included Service 3 test case
Marcin Kraglak [Thu, 11 Sep 2014 06:08:51 +0000 (08:08 +0200)]
android/tester: Add GATT Get Included Service 3 test case

No included service should be returned in this case.

9 years agoandroid/tester: Add GATT Get Included Service 2 test case
Marcin Kraglak [Thu, 11 Sep 2014 06:08:50 +0000 (08:08 +0200)]
android/tester: Add GATT Get Included Service 2 test case

It will test searching include services with 128 bit UUID.

9 years agoandroid/tester: Add GATT Get Included Service 1 test case
Marcin Kraglak [Thu, 11 Sep 2014 06:08:49 +0000 (08:08 +0200)]
android/tester: Add GATT Get Included Service 1 test case

Verify if included service with 16-bit UUID can be found.

9 years agoandroid/tester: Add support for GATT Get Included Service callback
Marcin Kraglak [Thu, 11 Sep 2014 06:08:48 +0000 (08:08 +0200)]
android/tester: Add support for GATT Get Included Service callback

Service and verify GATT Client Get Included Service callback.

9 years agoandroid/gatt: Fix sending Get Descriptor callback
Marcin Kraglak [Thu, 11 Sep 2014 06:08:47 +0000 (08:08 +0200)]
android/gatt: Fix sending Get Descriptor callback

GATT_STATUS_SUCCESS or GATT_STATUS_FAILURE should be send in this
callback.

9 years agoandroid/tester: Add GATT Get Descriptor 3 test case
Marcin Kraglak [Thu, 11 Sep 2014 06:08:46 +0000 (08:08 +0200)]
android/tester: Add GATT Get Descriptor 3 test case

No descriptors will be found in this test case.

9 years agoandroid/gatt: Fix descripors instance IDs
Marcin Kraglak [Thu, 11 Sep 2014 06:08:45 +0000 (08:08 +0200)]
android/gatt: Fix descripors instance IDs

First descriptor should have instance ID with 1.

9 years agoandroid/tester: Add GATT Get Descriptor 2 test case
Marcin Kraglak [Thu, 11 Sep 2014 06:08:44 +0000 (08:08 +0200)]
android/tester: Add GATT Get Descriptor 2 test case

It tests searching muliple descriptors in characteristic.

9 years agoandroid/tester: Add GATT Get Descriptor 1 test case
Marcin Kraglak [Thu, 11 Sep 2014 06:08:43 +0000 (08:08 +0200)]
android/tester: Add GATT Get Descriptor 1 test case

It tests searching for descriptors in characteristic.

9 years agoandroid/tester: Add support for GATT Get Descriptor callback
Marcin Kraglak [Thu, 11 Sep 2014 06:08:42 +0000 (08:08 +0200)]
android/tester: Add support for GATT Get Descriptor callback

Service and verify GATTT Client Get Descriptor callback.

9 years agoandroid/gatt: Fix sending callback in get_characteristic
Marcin Kraglak [Thu, 11 Sep 2014 06:08:41 +0000 (08:08 +0200)]
android/gatt: Fix sending callback in get_characteristic

Notification should be send to client in case of error.

9 years agoandroid/tester: Add GATT Get Characteristic 2 test case
Marcin Kraglak [Thu, 11 Sep 2014 06:08:40 +0000 (08:08 +0200)]
android/tester: Add GATT Get Characteristic 2 test case

It tests getting characteristics of non existing service.

9 years agoandroid/tester: Fix characteristic instance ID
Marcin Kraglak [Thu, 11 Sep 2014 06:08:39 +0000 (08:08 +0200)]
android/tester: Fix characteristic instance ID

Characteristics instance id starts from 1.

9 years agocore: Remove not used device_set_conn_param function
Szymon Janc [Wed, 10 Sep 2014 20:13:07 +0000 (22:13 +0200)]
core: Remove not used device_set_conn_param function

This function is not used since connection parameters are stored from
adapter.c. Also remove no longer needed members from struct btd_device.

9 years agocore: Fix storing connection parameters without store hint set
Szymon Janc [Wed, 10 Sep 2014 20:13:06 +0000 (22:13 +0200)]
core: Fix storing connection parameters without store hint set

If store hint is not set those should not be stored persistently.

9 years agoTODO: Reference counted notify functions implemented
Arman Uguray [Wed, 10 Sep 2014 16:36:27 +0000 (09:36 -0700)]
TODO: Reference counted notify functions implemented

9 years agotools/btgatt-client: Add "unregister-notify" command.
Arman Uguray [Wed, 10 Sep 2014 16:36:26 +0000 (09:36 -0700)]
tools/btgatt-client: Add "unregister-notify" command.

This patch adds the "unregister-notify" command which can be used to test the
bt_gatt_client_unregister_notify function.

9 years agotools/btgatt-client: Add the "register-notify" command.
Arman Uguray [Wed, 10 Sep 2014 16:36:25 +0000 (09:36 -0700)]
tools/btgatt-client: Add the "register-notify" command.

This patch adds the "register-notify" command, which registers a
notification/indication handler for a given characteristic value handle.

9 years agoshared/gatt-client: Handle incoming not/ind PDUs.
Arman Uguray [Wed, 10 Sep 2014 16:36:24 +0000 (09:36 -0700)]
shared/gatt-client: Handle incoming not/ind PDUs.

bt_gatt_client now registers an incoming PDU handler for notification and
indication PDUs. The PDU is parsed and routed to the notify handler registered
with bt_gatt_client_register_notify for the corresponding characteristic value
handle. A confirmation PDU is sent automatically for received indications.

This patch removes the bt_gatt_register function from shared/gatt-helpers.

9 years agoshared/gatt-client: Implement bt_gatt_client_unregister_notify.
Arman Uguray [Wed, 10 Sep 2014 16:36:23 +0000 (09:36 -0700)]
shared/gatt-client: Implement bt_gatt_client_unregister_notify.

This patch implements bt_gatt_client_unregister_notify, which is used to remove
a previous registered notification/indication handler. This function decreases
the per-characteristic count of handlers, and if the count drops to 0, a write
request is sent to the CCC descriptor to disable notifications/indications.

9 years agoshared/gatt-client: Implement bt_gatt_client_register_notify.
Arman Uguray [Wed, 10 Sep 2014 16:36:22 +0000 (09:36 -0700)]
shared/gatt-client: Implement bt_gatt_client_register_notify.

This patch introduces the bt_gatt_client_register_notify and
bt_gatt_client_unregister_notify functions and implements the latter. The
bt_gatt_client_register_notify function does the following:

  - If the given characteristic has a CCC descriptor, it writes to it based on
    which notify/indicate properties are present in the characteristic
    properties bit field.

  - It maintains a per-characteristic count of how many callbacks have been
    registered, so that the CCC descriptor is written to only if the count is 0.

  - It stores the passed in callback and user data in bt_gatt_client, which will
    be invoked when a notification/indication is received from the corresponding
    characteristic.

  - It queues register requests if the count is 0 and a CCC write is pending,
    and processes them once the write request has completed.

9 years agoshared/gatt-client: Introduce struct bt_gatt_characteristic_iter.
Arman Uguray [Wed, 10 Sep 2014 16:36:21 +0000 (09:36 -0700)]
shared/gatt-client: Introduce struct bt_gatt_characteristic_iter.

shared/gatt-client currently defines a service iterator which returns service
data in a copy. The user then accesses the service's characteristics by manually
going through an array of bt_gatt_characteristic_t.

This patch changes this by restricting access to individual characteristic
entries via a new characteristic iterator. This is done so that gatt-client code
can internally store private data on each characteristic (e.g. reference count
for notification sessions) which shouldn't be exposed to external code.

The code also changes the service iterator functions to return a pointer to an
internally stored bt_gatt_service_t structure rather than returning its contents
in a copy.

9 years agoandroid/avrcp: Clean up command order
Lukasz Rymanowski [Wed, 10 Sep 2014 10:01:35 +0000 (12:01 +0200)]
android/avrcp: Clean up command order

Idea about order in this file is that commands goes first and
notifications in the end of file.

This patch moves AVRCP commands up in the file

9 years agosdp-client: Minor code style fix
Lukasz Rymanowski [Tue, 9 Sep 2014 09:02:10 +0000 (11:02 +0200)]
sdp-client: Minor code style fix

9 years agosdp-client: Add disconnect watch for cached session
Lukasz Rymanowski [Tue, 9 Sep 2014 09:02:09 +0000 (11:02 +0200)]
sdp-client: Add disconnect watch for cached session

SDP client keeps sdp session alive for 2 more second after usage in case
there is need for reuse it. However, if ACL is disconnected and
reconnected during that time, sdp session becomes outdated. This patch
makes sure that cached sdp session will be cleaned up on ACL disconnect

9 years agosdp-client: Extract cleanup function for cached session
Lukasz Rymanowski [Tue, 9 Sep 2014 09:02:08 +0000 (11:02 +0200)]
sdp-client: Extract cleanup function for cached session

Cleanup function will be used by next patch

9 years agoandroid/tester: Fix not handled ssp requests in AVRCP cases
Jakub Tyszkowski [Tue, 9 Sep 2014 10:51:58 +0000 (12:51 +0200)]
android/tester: Fix not handled ssp requests in AVRCP cases

Those were previously passing because of ssp handler being not cleaned
between test cases. This is now fixed in tester framework thus test cases
needs to be updated.

9 years agoandroid/hf_client: Import Android hf_client header
Lukasz Rymanowski [Thu, 4 Sep 2014 13:49:46 +0000 (15:49 +0200)]
android/hf_client: Import Android hf_client header

This header file has been taken from Codeaurora forum.

9 years agoandroid/hal-ipc-api: Add Handsfree client IPC API
Lukasz Rymanowski [Thu, 4 Sep 2014 13:49:45 +0000 (15:49 +0200)]
android/hal-ipc-api: Add Handsfree client IPC API

9 years agoandroid/client: Check if hex string is byte format
Grzegorz Kolodziejczyk [Fri, 5 Sep 2014 13:55:41 +0000 (15:55 +0200)]
android/client: Check if hex string is byte format

Data strings should be byte format.

9 years agoRelease 5.23
Marcel Holtmann [Mon, 8 Sep 2014 03:20:15 +0000 (05:20 +0200)]
Release 5.23

9 years agobuild: Update library version
Marcel Holtmann [Mon, 8 Sep 2014 03:08:02 +0000 (05:08 +0200)]
build: Update library version

9 years agolib: Update company identifiers
Marcel Holtmann [Mon, 8 Sep 2014 03:03:20 +0000 (05:03 +0200)]
lib: Update company identifiers

9 years agotools/smp-tester: Remove incorrect invalid data test case
Johan Hedberg [Fri, 5 Sep 2014 20:32:54 +0000 (23:32 +0300)]
tools/smp-tester: Remove incorrect invalid data test case

Latest upstream kernel simply ignores unexpected data without
disconnecting so trying to wait for a HCI_Disconnect will only lead to a
test timeout.

9 years agoshared/tester: Change handling of tester_setup_failed event
Marcin Kraglak [Tue, 2 Sep 2014 09:34:43 +0000 (11:34 +0200)]
shared/tester: Change handling of tester_setup_failed event

If tester_setup_failed() was called, execute post_teardown() to clean
data created in pre_setup phase. In some cases android-tester
couldn't start daemon, and setup failed, but hciemu created in
pre_setup was not removed.

9 years agotools/gatt: Fix accessing NULL cmd
Andrei Emeltchenko [Fri, 5 Sep 2014 14:00:54 +0000 (17:00 +0300)]
tools/gatt: Fix accessing NULL cmd

9 years agocore: Fix concurrent authorizations
Luiz Augusto von Dentz [Fri, 5 Sep 2014 12:49:12 +0000 (15:49 +0300)]
core: Fix concurrent authorizations

In case multiple authorizations happen it can trigger a second call to
agent_authorize_service while the first is still ongoing causing all
authorization to fail.

9 years agoclient: Force redisplay on rl_printf
Luiz Augusto von Dentz [Fri, 5 Sep 2014 12:49:11 +0000 (15:49 +0300)]
client: Force redisplay on rl_printf

It seems some in some version of readline rl_redisplay does not update
when rl_printf is called, so this uses rl_forced_update_display which
should force the new lines to be displayed.

9 years agoclient: Fix typo
Luiz Augusto von Dentz [Fri, 5 Sep 2014 12:49:10 +0000 (15:49 +0300)]
client: Fix typo

9 years agocore: Fix idle watch not being removed properly
Luiz Augusto von Dentz [Fri, 5 Sep 2014 12:49:09 +0000 (15:49 +0300)]
core: Fix idle watch not being removed properly

The idle watch used to dispatch authorization should be removed when
waiting services to be resolved.

9 years agoandrod/client: Extend history line size and depth
Grzegorz Kolodziejczyk [Fri, 5 Sep 2014 12:48:26 +0000 (14:48 +0200)]
androd/client: Extend history line size and depth

For some commands current history line size isn't enough to store it
complete. For complex/long run, extended history depth can be helpful.

9 years agoemulator/bthost: Fix not matching cid data properly
Luiz Augusto von Dentz [Wed, 3 Sep 2014 09:39:41 +0000 (12:39 +0300)]
emulator/bthost: Fix not matching cid data properly

When using bthost_add_l2cap_server the caller expect that both scid and
dcid are the same since the callback only take one value.

9 years agolib/sdp: Split error handing for length and transaction id
Luiz Augusto von Dentz [Wed, 3 Sep 2014 09:33:31 +0000 (12:33 +0300)]
lib/sdp: Split error handing for length and transaction id

This split the handling of invalid PDU length and not matching
transaction id adding proper debug logs.

9 years agoandroid/tester: Add AVRCP Disconnect - Success test case
Luiz Augusto von Dentz [Tue, 2 Sep 2014 14:51:05 +0000 (17:51 +0300)]
android/tester: Add AVRCP Disconnect - Success test case

9 years agoandroid/tester: Add AVRCP Connect - Success test case
Luiz Augusto von Dentz [Tue, 2 Sep 2014 14:35:26 +0000 (17:35 +0300)]
android/tester: Add AVRCP Connect - Success test case

9 years agoandroid/tester: Add AVRCP init - Success test case
Luiz Augusto von Dentz [Mon, 1 Sep 2014 14:49:02 +0000 (17:49 +0300)]
android/tester: Add AVRCP init - Success test case

9 years agoandroid/hidhost: Remove reconnect logic
Lukasz Rymanowski [Fri, 5 Sep 2014 10:37:37 +0000 (12:37 +0200)]
android/hidhost: Remove reconnect logic

GATT can handle reconnect now, so lets remove that part of code from
here.

9 years agomonitor: Remove superfluous call to l2cap_frame_pull
Vikrampal Yadav [Thu, 4 Sep 2014 10:22:38 +0000 (15:52 +0530)]
monitor: Remove superfluous call to l2cap_frame_pull

Removed superfluous call to l2cap_frame_pull.

9 years agomonitor: Add AVRCP InformDisplayableCharacterSet support
Vikrampal Yadav [Tue, 26 Aug 2014 14:20:52 +0000 (19:50 +0530)]
monitor: Add AVRCP InformDisplayableCharacterSet support

Support for decoding AVRCP InformDisplayableCharacterSet added in
Bluetooth monitor.

9 years agomonitor: Add AVRCP GetPlayerApplicationSettingValueText support
Vikrampal Yadav [Tue, 26 Aug 2014 14:20:51 +0000 (19:50 +0530)]
monitor: Add AVRCP GetPlayerApplicationSettingValueText support

Support for decoding AVRCP GetPlayerApplicationSettingValueText
added in Bluetooth monitor.

9 years agomonitor: Add AVRCP GetPlayerApplicationSettingAttributeText support
Vikrampal Yadav [Tue, 26 Aug 2014 14:20:50 +0000 (19:50 +0530)]
monitor: Add AVRCP GetPlayerApplicationSettingAttributeText support

Support for decoding AVRCP GetPlayerApplicationSettingAttributeText
added in Bluetooth monitor.

9 years agomonitor: Add AVRCP SetPlayerApplicationSettingValue support
Vikrampal Yadav [Tue, 26 Aug 2014 14:20:49 +0000 (19:50 +0530)]
monitor: Add AVRCP SetPlayerApplicationSettingValue support

Support for decoding AVRCP SetPlayerApplicationSettingValue
added in Bluetooth monitor.

9 years agomonitor: Add AVRCP GetCurrentPlayerApplicationSettingValue support
Vikrampal Yadav [Thu, 4 Sep 2014 08:40:13 +0000 (14:10 +0530)]
monitor: Add AVRCP GetCurrentPlayerApplicationSettingValue support

Support for decoding AVRCP GetCurrentPlayerApplicationSettingValue
added in Bluetooth monitor.

9 years agoandroid/tester: Use default ssp handler in A2dp - Suspend test case
Marcin Kraglak [Fri, 5 Sep 2014 08:09:56 +0000 (10:09 +0200)]
android/tester: Use default ssp handler in A2dp - Suspend test case

Because ssp_handler was incorrectly overriden with default_ssp_req_cb
in previous test case, this test case used it also. Now it is needed
to define it for each test case where it should be used.

9 years agoandroid/tester: Set ssp_request_cb to default value in teardown
Marcin Kraglak [Fri, 5 Sep 2014 08:09:55 +0000 (10:09 +0200)]
android/tester: Set ssp_request_cb to default value in teardown

It could be set te default_ssp_req_cb and should be set again to
ssp_request_cb.

9 years agoandroid/gatt: Remove device from white list on device destroy
Lukasz Rymanowski [Wed, 3 Sep 2014 14:42:32 +0000 (16:42 +0200)]
android/gatt: Remove device from white list on device destroy

9 years agoandroid/gatt: Make sure GATT will reconnect after disconnection
Lukasz Rymanowski [Wed, 3 Sep 2014 14:42:31 +0000 (16:42 +0200)]
android/gatt: Make sure GATT will reconnect after disconnection

With this patch once remote is disconnected there is decision taken if
BfA should wait for reconnect or not.

Removing device from the autoconnect list has been removed from
connect_cb as it is now handled during disconnection

9 years agoandroid/gatt: Extract remove_autoconnect_device helper
Lukasz Rymanowski [Wed, 3 Sep 2014 14:42:30 +0000 (16:42 +0200)]
android/gatt: Extract remove_autoconnect_device helper

9 years agoandroid/gatt: Unsubscribe from autoconnect on unregister
Lukasz Rymanowski [Wed, 3 Sep 2014 14:42:29 +0000 (16:42 +0200)]
android/gatt: Unsubscribe from autoconnect on unregister

When application does unregister, lets make sure that BfA does not keep
any auto connect devices for this app.

9 years agoandroid/gatt: Add API to remove autoconnect GATT based device
Lukasz Rymanowski [Wed, 3 Sep 2014 14:42:28 +0000 (16:42 +0200)]
android/gatt: Add API to remove autoconnect GATT based device

9 years agodoc/coding-style: Minor formatting fix
Johan Hedberg [Fri, 5 Sep 2014 08:45:47 +0000 (11:45 +0300)]
doc/coding-style: Minor formatting fix

9 years agobuild: Add initial HACKING
Luiz Augusto von Dentz [Mon, 1 Sep 2014 11:26:15 +0000 (14:26 +0300)]
build: Add initial HACKING

9 years agodoc: Add initial documentation for coding style
Luiz Augusto von Dentz [Mon, 1 Sep 2014 11:18:14 +0000 (14:18 +0300)]
doc: Add initial documentation for coding style

9 years agoshared/gatt-client: Fix invalid access during descriptor discovery.
Arman Uguray [Wed, 3 Sep 2014 20:26:28 +0000 (13:26 -0700)]
shared/gatt-client: Fix invalid access during descriptor discovery.

This patch fixes an off-by-one error during descriptor discovery, which results
in an invalid access if more than one descriptor declaration exists within a
service handle range.

9 years agoTODO: tools/btgatt-client introduced
Arman Uguray [Wed, 3 Sep 2014 19:46:11 +0000 (12:46 -0700)]
TODO: tools/btgatt-client introduced

9 years agotools/btgatt-client: Added the "write-long-value" command.
Arman Uguray [Wed, 3 Sep 2014 19:46:10 +0000 (12:46 -0700)]
tools/btgatt-client: Added the "write-long-value" command.

Added the "write-long-value" command which can be used to perform the "long
write" procedure.

9 years agotools/btgatt-client: Added the "write-value" command.
Arman Uguray [Wed, 3 Sep 2014 19:46:09 +0000 (12:46 -0700)]
tools/btgatt-client: Added the "write-value" command.

Added the "write-value" command which can be used to perform "write" and "write
without response" procedures.

9 years agotools/btgatt-client: Added the "read-long-value" command.
Arman Uguray [Wed, 3 Sep 2014 19:46:08 +0000 (12:46 -0700)]
tools/btgatt-client: Added the "read-long-value" command.

Added the "read-long-value" command which can be used to read long
characteristic and descriptor values.

9 years agotools/btgatt-client: Added the "read-value" command.
Arman Uguray [Wed, 3 Sep 2014 19:46:07 +0000 (12:46 -0700)]
tools/btgatt-client: Added the "read-value" command.

Added the "read-value" command which sends a simple read request to the
specified handle.

9 years agoTODO: GATT read/write functions moved to shared/gatt-client.
Arman Uguray [Wed, 3 Sep 2014 19:46:06 +0000 (12:46 -0700)]
TODO: GATT read/write functions moved to shared/gatt-client.

9 years agoshared/gatt-client: Added bt_gatt_client_write_long_value.
Arman Uguray [Wed, 3 Sep 2014 19:46:05 +0000 (12:46 -0700)]
shared/gatt-client: Added bt_gatt_client_write_long_value.

Moved the bt_gatt_write_long_value function from shared/gatt-helpers to
shared/gatt-client as bt_gatt_client_write_long_value.

Multiple requests to start a long write operation are queued by bt_gatt_client.
This is to avoid canceling a prepared write to an unintended handle as well as
to prevent multiple long write requests to the same handle from resulting in an
unintended attribute value due to interleaving.

9 years agoshared/gatt-client: Added simple write operations.
Arman Uguray [Wed, 3 Sep 2014 19:46:04 +0000 (12:46 -0700)]
shared/gatt-client: Added simple write operations.

Moved the bt_gatt_write_without_response and bt_gatt_write_value functions from
shared/gatt-helpers to shared/gatt-client.

9 years agoshared/gatt-client: Added bt_gatt_client_read_long_value.
Arman Uguray [Wed, 3 Sep 2014 19:46:03 +0000 (12:46 -0700)]
shared/gatt-client: Added bt_gatt_client_read_long_value.

Moved the bt_gatt_read_long_value function from shared/gatt-helpers to
shared/gatt-client as bt_gatt_client_read_long_value.

9 years agoshared/gatt-client: Added bt_gatt_client_read_value.
Arman Uguray [Wed, 3 Sep 2014 19:46:02 +0000 (12:46 -0700)]
shared/gatt-client: Added bt_gatt_client_read_value.

Moved the bt_gatt_read_value function from shared/gatt-helpers to
shared/gatt-client as bt_gatt_client_read_value.

9 years agoandroid/tester: Use default SSP handler in socket tests
Szymon Janc [Thu, 4 Sep 2014 12:02:48 +0000 (14:02 +0200)]
android/tester: Use default SSP handler in socket tests

9 years agoemulator/btdev: Fix returning correct remote extended features
Johan Hedberg [Thu, 4 Sep 2014 11:02:48 +0000 (14:02 +0300)]
emulator/btdev: Fix returning correct remote extended features

9 years agoandroid/tester: Fix not cleaning up step lists
Jakub Tyszkowski [Wed, 3 Sep 2014 08:56:41 +0000 (10:56 +0200)]
android/tester: Fix not cleaning up step lists

There were missing some cleanups for few testers.

9 years agoandroid/tester: Indentation fix
Jakub Tyszkowski [Wed, 3 Sep 2014 08:56:40 +0000 (10:56 +0200)]
android/tester: Indentation fix

9 years agoandroid/tester: Fix hdp cases not handling ssp correctly
Jakub Tyszkowski [Wed, 3 Sep 2014 08:56:39 +0000 (10:56 +0200)]
android/tester: Fix hdp cases not handling ssp correctly

9 years agoandroid/hidhost: Fix indentation
Jakub Tyszkowski [Wed, 3 Sep 2014 08:56:38 +0000 (10:56 +0200)]
android/hidhost: Fix indentation

9 years agolib/sdp: Fix typo
Jakub Tyszkowski [Wed, 3 Sep 2014 08:56:37 +0000 (10:56 +0200)]
lib/sdp: Fix typo

9 years agoandroid/pts: test IOPT TC_SDAS_BV_03_I against PTS 5.2
Sebastian Chlad [Thu, 4 Sep 2014 08:27:18 +0000 (10:27 +0200)]
android/pts: test IOPT TC_SDAS_BV_03_I against PTS 5.2

9 years agoandroid/pts: Move PTS issues to line with test name
Szymon Janc [Thu, 4 Sep 2014 08:36:02 +0000 (10:36 +0200)]
android/pts: Move PTS issues to line with test name

This makes stat scripting easier.

9 years agotools: Show the mgmt settings as bondable instead of pairable
Marcel Holtmann [Thu, 4 Sep 2014 06:25:58 +0000 (08:25 +0200)]
tools: Show the mgmt settings as bondable instead of pairable