OSDN Git Service
Luiz Augusto von Dentz [Wed, 17 Sep 2014 12:49:44 +0000 (15:49 +0300)]
emulator/btdev: Add iovec support
This convert btdev_set_send_handler to take struct iovec for doing
scatter io.
Johan Hedberg [Wed, 17 Sep 2014 10:38:26 +0000 (13:38 +0300)]
emulator: Add support for LE connection parameter update procedure
Johan Hedberg [Wed, 17 Sep 2014 09:52:03 +0000 (12:52 +0300)]
doc/test-coverage: Update mgmt-tester test count
Johan Hedberg [Wed, 17 Sep 2014 09:51:34 +0000 (12:51 +0300)]
mgmt-tester: Add confirm rejection SMP acceptor test case
Johan Hedberg [Wed, 17 Sep 2014 09:48:09 +0000 (12:48 +0300)]
mgmt-tester: Rename reject_ssp to reject_confirm
Johan Hedberg [Wed, 17 Sep 2014 08:40:34 +0000 (11:40 +0300)]
doc/test-coverage: Update mgmt-tester test count
Johan Hedberg [Wed, 17 Sep 2014 08:39:13 +0000 (11:39 +0300)]
mgmt-tester: Add MITM LE Pairing Acceptor test case
Johan Hedberg [Wed, 17 Sep 2014 08:38:54 +0000 (11:38 +0300)]
mgmt-tester: Use setup_pairing_acceptor also for LE tests
Johan Hedberg [Wed, 17 Sep 2014 08:38:22 +0000 (11:38 +0300)]
mgmt-tester: Rename setup_ssp_acceptor to setup_pairing_acceptor
Gowtham Anandha Babu [Tue, 16 Sep 2014 12:50:03 +0000 (18:20 +0530)]
obexd/client: Add support for MAP Event Report 1.1
This adds support for Event Report 1.1 of MAP 1.2 which includes the
following atributes: Subject, datetime, sender_name, priority.
Andrei Emeltchenko [Tue, 16 Sep 2014 14:03:50 +0000 (17:03 +0300)]
tools/btgatt-client: Fix memory leak
Simplify code and fix memory leaks
Johan Hedberg [Tue, 16 Sep 2014 19:07:51 +0000 (22:07 +0300)]
emulator: Failed encryption shouldn't affect success of LTK reply
Johan Hedberg [Tue, 16 Sep 2014 13:37:33 +0000 (16:37 +0300)]
doc/test-coverage: Update mgmt-tester test count
Johan Hedberg [Tue, 16 Sep 2014 13:36:32 +0000 (16:36 +0300)]
tools/mgmt-tester: Add basic LE pairing acceptor test case
Johan Hedberg [Tue, 16 Sep 2014 13:35:46 +0000 (16:35 +0300)]
emulator: Indicate encryption failure if LTKs don't match
Johan Hedberg [Tue, 16 Sep 2014 12:13:34 +0000 (15:13 +0300)]
emulator: Fix up SMP Pairing Confirm/Random handling
Johan Hedberg [Tue, 16 Sep 2014 11:30:44 +0000 (14:30 +0300)]
emulator: Add support for specifying SMP authentication requirement
Szymon Janc [Tue, 16 Sep 2014 10:08:30 +0000 (12:08 +0200)]
android/gatt: Fix whitespace and style issues
Szymon Janc [Tue, 16 Sep 2014 10:05:02 +0000 (12:05 +0200)]
android/gatt: Fix bogus device unref
remove_autoconnect_device() already drops device reference internally.
Szymon Janc [Tue, 16 Sep 2014 09:44:29 +0000 (11:44 +0200)]
android/gatt: Move bt_le_discovery_stop_cb up in the file
This is to avoid forward declaration.
Andrei Emeltchenko [Tue, 16 Sep 2014 08:30:19 +0000 (11:30 +0300)]
tools: Fix dereference before NULL check
Andrei Emeltchenko [Tue, 16 Sep 2014 08:10:47 +0000 (11:10 +0300)]
android/tester: Fix wrong check
Johan Hedberg [Tue, 16 Sep 2014 08:16:12 +0000 (11:16 +0300)]
TODO: Minor formatting fix
Johan Hedberg [Tue, 16 Sep 2014 08:11:23 +0000 (11:11 +0300)]
TODO: Remove obsolete Management Interface task
Johan Hedberg [Tue, 16 Sep 2014 08:10:05 +0000 (11:10 +0300)]
TODO: Remove obsolete Low Energy task entries
Gowtham Anandha Babu [Mon, 15 Sep 2014 06:10:05 +0000 (11:40 +0530)]
tools/seq2bseq : Fix the same expression issue in if condition
Fix the usage of same expression on both sides of '||' in if
Gowtham Anandha Babu [Mon, 15 Sep 2014 06:10:04 +0000 (11:40 +0530)]
tools/btsnoop : Fix variable reassigning issue
The Variable 'written' is reassigned a value before the old one has been used.
Gowtham Anandha Babu [Mon, 15 Sep 2014 12:59:16 +0000 (18:29 +0530)]
obexd/client/map: Check msg value is valid
Checks for NULL value before passing to the callback.
Marcel Holtmann [Mon, 15 Sep 2014 22:03:23 +0000 (00:03 +0200)]
tools: Update bluemoon firmware and harware variant strings
Marcel Holtmann [Mon, 15 Sep 2014 21:48:01 +0000 (23:48 +0200)]
tools: Fix usage text for address parameter
Luiz Augusto von Dentz [Mon, 15 Sep 2014 18:40:02 +0000 (21:40 +0300)]
android/hal-sco: Fix coding style
Luiz Augusto von Dentz [Mon, 15 Sep 2014 10:41:20 +0000 (13:41 +0300)]
obexd/mns: Check event value is valid
This adds a common check before passing the event value to the callback.
Luiz Augusto von Dentz [Mon, 15 Sep 2014 10:30:46 +0000 (13:30 +0300)]
obexd/client: Fix leaking memory on MNS
In case an event is received twice, due to remote side misbehaving or
not, it would leak the previous data.
Alban Crequy [Tue, 15 Jul 2014 10:29:41 +0000 (11:29 +0100)]
gdbus: Fix match rule for NameOwnerChanged
When subscribing to the D-Bus signal NameOwnerChanged from the bus driver,
specify the object path and the sender in the match rule. Otherwise, random
connections on the bus could impersonate the bus driver.
Vikrampal Yadav [Fri, 12 Sep 2014 13:16:56 +0000 (18:46 +0530)]
Monitor: Modify design of AVRCP callback functions
Modified the design of AVRCP callback functions.
Marcel Holtmann [Sun, 14 Sep 2014 17:51:01 +0000 (19:51 +0200)]
monitor: Update GATT Descriptor UUID translations
Marcel Holtmann [Sun, 14 Sep 2014 17:48:31 +0000 (19:48 +0200)]
monitor: Update GATT Service UUID translations
Marcel Holtmann [Sun, 14 Sep 2014 17:42:19 +0000 (19:42 +0200)]
monitor: Update Appearance categories and subtypes
Marcel Holtmann [Sun, 14 Sep 2014 17:29:26 +0000 (19:29 +0200)]
monitor: Update GATT Characteristics UUID translations
Marcel Holtmann [Sun, 14 Sep 2014 17:04:56 +0000 (19:04 +0200)]
monitor: Update UUID to string mapping table
Johan Hedberg [Sat, 13 Sep 2014 02:52:40 +0000 (05:52 +0300)]
tools/l2cap-tester: Specify explicit IO capability when necessary
Johan Hedberg [Sat, 13 Sep 2014 02:51:00 +0000 (05:51 +0300)]
emulator: Use explicit IO capability for bthost
Johan Hedberg [Fri, 30 May 2014 10:12:25 +0000 (13:12 +0300)]
emulator: Fix clearing advertising state when connected
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)
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.
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.
Lukasz Rymanowski [Wed, 10 Sep 2014 11:11:34 +0000 (13:11 +0200)]
android/hal-ipc-api: Fix define for HF-Client
Lukasz Rymanowski [Wed, 10 Sep 2014 11:11:33 +0000 (13:11 +0200)]
android/hal-ipc-api: Add missing peer features parameter
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
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
Szymon Janc [Thu, 11 Sep 2014 08:18:57 +0000 (10:18 +0200)]
doc: Update Android tests coverage
Szymon Janc [Thu, 11 Sep 2014 08:18:13 +0000 (10:18 +0200)]
android/tester: Make GATT tests names more descriptive
Marcin Kraglak [Thu, 11 Sep 2014 06:08:52 +0000 (08:08 +0200)]
android/tester: Verify GATT instace IDs in callbacks
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Arman Uguray [Wed, 10 Sep 2014 16:36:27 +0000 (09:36 -0700)]
TODO: Reference counted notify functions implemented
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.
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.
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.
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.
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.
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.
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
Lukasz Rymanowski [Tue, 9 Sep 2014 09:02:10 +0000 (11:02 +0200)]
sdp-client: Minor code style fix
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
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
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.
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.
Lukasz Rymanowski [Thu, 4 Sep 2014 13:49:45 +0000 (15:49 +0200)]
android/hal-ipc-api: Add Handsfree client IPC API
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.
Marcel Holtmann [Mon, 8 Sep 2014 03:20:15 +0000 (05:20 +0200)]
Release 5.23
Marcel Holtmann [Mon, 8 Sep 2014 03:08:02 +0000 (05:08 +0200)]
build: Update library version
Marcel Holtmann [Mon, 8 Sep 2014 03:03:20 +0000 (05:03 +0200)]
lib: Update company identifiers
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.
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.
Andrei Emeltchenko [Fri, 5 Sep 2014 14:00:54 +0000 (17:00 +0300)]
tools/gatt: Fix accessing NULL cmd
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.
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.
Luiz Augusto von Dentz [Fri, 5 Sep 2014 12:49:10 +0000 (15:49 +0300)]
client: Fix typo
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.
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.
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.
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.
Luiz Augusto von Dentz [Tue, 2 Sep 2014 14:51:05 +0000 (17:51 +0300)]
android/tester: Add AVRCP Disconnect - 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
Luiz Augusto von Dentz [Mon, 1 Sep 2014 14:49:02 +0000 (17:49 +0300)]
android/tester: Add AVRCP init - Success test case
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.