| 51cae76d |
hog: add more debugging to HoG device init
Add more debugging to HoG device init, so that it is easier to see
whether the HoG device init completes successfully. |
Petri Gynther |
10 years ago |
1 file, +7, -0 |
| 57f3f1a8 |
src/device: gatt database persistence
This patch adds whole gatt database persistence for paired LE devices.
Storing whole database can have big impact on reconnection time for paired
devices, because full discovery can take up to 10 seconds.
Sample how stored database looks in cache file:
[Attributes]
0001=2800:0005:1801
0002=2803:0003:20:2a05
0014=2800:001c:1800
0015=2803:0016:02:2a00
0017=2803:0018:02:2a01
0019=2803:001a:02:2aa6
0028=2800:ffff:0000180d-0000-1000-8000-00805f9b34fb
0029=2803:002a:10:00002a37-0000-1000-8000-00805f9b34fb
002b=2803:002c:02:00002a38-0000-1000-8000-00805f9b34fb
002d=2803:002e:08:00002a39-0000-1000-8000-00805f9b34fb |
Jakub Pawlowski |
10 years ago |
1 file, +415, -1 |
| 2a2c41bf |
doc/settings-storage: describe gatt attributes storage format |
Jakub Pawlowski |
10 years ago |
1 file, +36, -1 |
| e39be1cb |
lib/uuid: Fix bt_uuid_strcmp
bt_uuid_strcmp shall first convert the strings to bt_uuid_t using
bt_string_to_uuid since bt_uuid_to_string can produce different formats
depending on the type. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +6, -1 |
| 2a2997fe |
core/gatt: Fix not exporting new services
Ever since cache validation was introduced the services are no longer
cleared on disconnect so checking for queue empty is not valid anymore. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +4, -5 |
| 324c585b |
Release 5.34 |
Marcel Holtmann |
10 years ago |
2 files, +10, -1 |
| 7dd976a6 |
build: Update library version |
Marcel Holtmann |
10 years ago |
1 file, +1, -1 |
| 36f81e21 |
monitor: Update vendor defined 16-bit UUID entries |
Marcel Holtmann |
10 years ago |
1 file, +5, -1 |
| e513efa8 |
lib: Update company identifiers |
Marcel Holtmann |
10 years ago |
1 file, +22, -0 |
| 4eeb9f49 |
build: Move valgrind.supp into tools directory |
Marcel Holtmann |
10 years ago |
3 files, +15, -15 |
| f2d17bea |
test: Add test-gatt-profile
test-gatt-profile can be used to register a GATT based profile using
GattManager1 interface. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +62, -1 |
| e91aab1a |
core/gatt: Cleanup service probe
This cleanup code related to service probe making it use a single
function, because of that now all driver must implement device_probe in
order for the service probe to work properly.
In addition to that a new flag called external was introduced to
btd_profile to be possible to distinguish whether it is a internal
plugin or external client, this was needed in order to decide if an
attribute should be claimed which whould prevent it to be exported over
D-Bus. |
Luiz Augusto von Dentz |
10 years ago |
4 files, +84, -125 |
| cde3bb8a |
audio/avrcp: Assing ids when registering a player
This gives the local player an id so when respoding to GetFolderItem they
are distinguishable. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +2, -0 |
| d6bb0111 |
audio/avrcp: Add GetFolderItems support
Support added to handle Get Folder Items browsing PDU
for media player scope in TG role.
e.g.
AVCTP Browsing: Response: type 0x00 label 0 PID 0x110e
AVRCP: GetFolderItems: len 0x0030
Status: 0x04 (Success)
UIDCounter: 0x0000 (0)
NumOfItems: 0x0001 (1)
Item: 0x01 (Media Player)
Length: 0x0028 (40)
PlayerID: 0x0000 (0)
PlayerType: 0x0001 (Audio)
PlayerSubType: 0x00000001 (Audio Book)
PlayStatus: 0x01 (PLAYING)
Features: 0x0000000000000007FFF0007000000000
CharsetID: 0x006a (UTF-8)
NameLength: 0x000c (12)
Name: SimplePlayer |
Bharat Panda |
10 years ago |
3 files, +156, -0 |
| c8367395 |
core/gatt: Fix not setting auto connect flag
Profiles registered via org.bluez.GattManager1.RegisterProfile shall
properly register a driver and cause the device to be marked to auto
connect if the device supports the UUID given. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +14, -2 |
| 0f7ea37c |
shared/att: Make crypto really optional
If bt_crypt_new fails or ext_signed should disable any signing operation
but currently only incoming operations were being ignored and only if
ext_signed is set which ignores the fact that bt_crypt_new can still
fail if the necessary kernel modules are not available. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +2, -4 |
| e7ae5cf8 |
TODO: Add item for agent queueing |
Luiz Augusto von Dentz |
10 years ago |
1 file, +6, -0 |
| dfd8fa85 |
audio/avrcp: Fix not listing all players
To list the available player GetFolderItems with scope 0x00 is used but
the code currently don't set the range which means only the first player
is returned. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +2, -0 |
| fa093a1d |
main.conf: Remove %h and %d from example Name
%h and %d are no longer supported. |
Jonas Holmberg |
10 years ago |
1 file, +2, -4 |
| ac626bbd |
android/handsfree: Fix missing HFP WBS callback |
Will Wang |
10 years ago |
1 file, +7, -0 |
| 6a475553 |
android/hal-handsfree: Fix missing HFP WBS callback |
Will Wang |
10 years ago |
2 files, +18, -0 |
| eac1f5d9 |
audio/avrcp: Add player name support
Add support to player name mapping it to Identity property from MPRIS. |
Bharat Panda |
10 years ago |
2 files, +25, -0 |
| 24e8a284 |
emulator: Update LE supported commands |
Mariusz Skamra |
10 years ago |
1 file, +9, -0 |
| b371a4f5 |
audio/avrcp: Fix sending wrong player id and uid counter
memset only takes the first byte so it obviously cannot be used as
memcpy. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +2, -4 |
| e412f2a9 |
audio/media - Fix crash at deferencing NULL pointer
The boolean pointer passed in to config_cb could be NULL
in media_endpoint_cancel(). In that case we should not
derefence it but pass FALSE instead to indicate error.
Below is the core dump to demonstrate the crash:
config_cb (endpoint=0xb814ff40, ret=0x0, size=-1,
user_data=0xb8157758) at profiles/audio/media.c:537
0xb6eb7ba4 in media_endpoint_cancel (request=0xb815b4d0)
at profiles/audio/media.c:141
0xb6eb7c98 in media_endpoint_cancel_all (endpoint=0xb814ff40)
at profiles/audio/media.c:149
clear_endpoint (endpoint=endpoint@entry=0xb814ff40)
at profiles/audio/media.c:250
0xb6eb7e74 in endpoint_reply (call=<optimized out>, user_data=0xb815b4d0)
at profiles/audio/media.c:277
0xb6d50336 in ?? () from /usr/lib/libdbus-1.so.3 |
Hsin-Yu Chao |
10 years ago |
1 file, +1, -1 |
| cdcea177 |
audio/avrcp: Fix memory leak
This frees settings list after used otherwise it leaks as follow:
48 (24 direct, 24 indirect) bytes in 1 blocks are definitely lost in loss record 152 of 239
at 0x4C28C50: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4E84679: g_malloc (in /usr/lib64/libglib-2.0.so.0.4400.1)
by 0x4E9BCD2: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.4400.1)
by 0x4E7A6E5: g_list_prepend (in /usr/lib64/libglib-2.0.so.0.4400.1)
by 0x4E6E44B: g_hash_table_get_keys (in /usr/lib64/libglib-2.0.so.0.4400.1)
by 0x426D5A: list_settings (media.c:1003)
by 0x4336B4: player_list_settings (avrcp.c:1390)
by 0x4336B4: avrcp_handle_register_notification (avrcp.c:1514)
by 0x436711: handle_vendordep_pdu (avrcp.c:1827)
by 0x42EB6F: session_cb (avctp.c:1025)
by 0x4E7EA89: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4400.1)
by 0x4E7EE1F: ??? (in /usr/lib64/libglib-2.0.so.0.4400.1)
by 0x4E7F141: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.4400.1) |
Luiz Augusto von Dentz |
10 years ago |
1 file, +2, -0 |
| 8a29308b |
audio/avrcp: Bump TG to version 1.5
1.4 is deprecated and 1.5 should be used instead. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +6, -4 |
| 60050fe4 |
audio/avrcp: Fix crash on RegisterNotification
When registering AVRCP_EVENT_ADDRESSED_PLAYER_CHANGED there may not be
any player available causing a crash. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +20, -2 |
| 18fe3cf4 |
audio/avrcp: Fix invalid read
Player pointer cannot be used after being freed. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +2, -1 |
| bfd8cd9f |
android/hal-ipc-api: Fix missing HFP WBS callback
Add definition of HFP WBS Command notification |
Will Wang |
10 years ago |
1 file, +8, -0 |
| 886b9473 |
doc/pts: Update OPP PTS test results
PTS issues got resolved after updating the ETS file attached in
https://www.bluetooth.org/pts/issues/view_issue.cfm?id=13842,
which will be updated in next PTS release. |
Gowtham Anandha Babu |
10 years ago |
1 file, +3, -3 |
| 6dd75332 |
shared/tester: Add valgrind support
This add a call to VALGRIND_DO_ADDED_LEAK_CHECK at the end of each test. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +8, -0 |
| a21b661c |
build: Add support for running make check with valgrind
This check if valgrind tool is available adding it to be run with make
check. |
Luiz Augusto von Dentz |
10 years ago |
3 files, +23, -0 |
| 7f3eda34 |
unit/test-gdbus-client: Fix memory leak
The following memory leak is causes if not all interfaces are freed
once closing the connecting:
7,738 (232 direct, 7,506 indirect) bytes in 1 blocks are definitely lost in loss record 302 of 302
at 0x4C2A9C7: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x519517F: ??? (in /usr/lib64/libdbus-1.so.3.8.13)
by 0x519EF8E: ??? (in /usr/lib64/libdbus-1.so.3.8.13)
by 0x519F462: ??? (in /usr/lib64/libdbus-1.so.3.8.13)
by 0x5193419: ??? (in /usr/lib64/libdbus-1.so.3.8.13)
by 0x517E6AE: ??? (in /usr/lib64/libdbus-1.so.3.8.13)
by 0x517A06B: ??? (in /usr/lib64/libdbus-1.so.3.8.13)
by 0x4076B9: g_dbus_setup_private (mainloop.c:314)
by 0x404B8C: client_force_disconnect (test-gdbus-client.c:882)
by 0x410B52: run_callback (tester.c:417)
by 0x4E7EA89: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4400.1)
by 0x4E7EE1F: ??? (in /usr/lib64/libglib-2.0.so.0.4400.1) |
Luiz Augusto von Dentz |
10 years ago |
1 file, +4, -0 |
| cb352a0b |
lib: Update company identifiers |
Marcel Holtmann |
10 years ago |
1 file, +34, -0 |
| 20e0b896 |
monitor: Add vendor defined 16-bit UUID entries |
Marcel Holtmann |
10 years ago |
1 file, +120, -0 |
| 3a6a9316 |
monitor/avctp: Fix GetFolderItems field values
Replaced field names for GetFolderItems response with
correct names, values and fix allignments.
AVCTP Browsing: Response: type 0x00 label 0 PID 0x110e
AVRCP: GetFolderItems: len 0x0030
Status: 0x04 (Success)
UIDCounter: 0x0000 (0)
NumOfItems: 0x0001 (1)
Item: 0x01 (Media Player)
Length: 0x0028 (40)
PlayerID: 0x0000 (0)
PlayerType: 0x0001 (Audio)
PlayerSubType: 0x00000001 (Audio Book)
PlayStatus: 0x01 (PLAYING)
Features: 0x0000000000b701ef0200000000000000
CharsetID: 0x006a (UTF-8)
NameLength: 0x000c (12)
Name: SimplePlayer |
Bharat Panda |
10 years ago |
1 file, +17, -11 |
| 4827d6b6 |
audio/avrcp: Add Set Addressed Player support
Support added to handle Set Addressed Player PDU in TG role.
Send EVENT_ADDRESSED_PLAYER_CHANGED on SetAddressedPlayer
SUCCESS and follow procedure to reject all player specific events
currently registered with the player.
Channel: 64 len 15 [PSM 23 mode 0] {chan 0}
AVCTP Control: Command: type 0x00 label 0 PID 0x110e
AV/C: Control: address 0x48 opcode 0x00
Subunit: Panel
Opcode: Vendor Dependent
Company ID: 0x001958
AVRCP: SetAddressedPlayer pt Single len 0x0002
PlayerID: 0x0000 (0)
Channel: 64 len 15 [PSM 23 mode 0] {chan 0}
AVCTP Control: Response: type 0x00 label 0 PID 0x110e
AV/C: Accepted: address 0x48 opcode 0x00
Subunit: Panel
Opcode: Vendor Dependent
Company ID: 0x001958
AVRCP: SetAddressedPlayer pt Single len 0x0002
Status: 0x04 (Success)
Channel: 64 len 18 [PSM 23 mode 0] {chan 0}
AVCTP Control: Response: type 0x00 label 0 PID 0x110e
AV/C: Changed: address 0x48 opcode 0x00
Subunit: Panel
Opcode: Vendor Dependent
Company ID: 0x001958
AVRCP: RegisterNotification pt Single len 0x0005
EventID: 0x0b (EVENT_ADDRESSED_PLAYER_CHANGED)
PlayerID: 0x0000 (0)
UIDCounter: 0x0000 (0) |
Bharat Panda |
10 years ago |
1 file, +117, -2 |
| e316a77f |
audio: Fix service state
When profile .disconnect is called the state of the service is already
set to disconnecting this is make no sense to call
btd_service_connect_complete as it will do nothing and the state will
never be updated to disconnected as it should. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +2, -2 |
| a1a01a6f |
audio: Fix not resetting connect_id
Ever since discovery can be canceled connect_id is now set while
discovering so it needs to be reset on the callback otherwise it will
cause .connect to always return -EBUSY until .disconnect is called. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +4, -0 |
| a9f78621 |
emulator: Fix parameter order in le_conn_update()
The values are passed by the only caller in min, max order, which
makes sense since that's how they are over HCI as well. Update the
function to match this. |
Johan Hedberg |
10 years ago |
1 file, +1, -1 |
| b58a5e5b |
gatt-database: Return meaningful ecodes for ccc write
Removed generic ATT protocol error codes and added
Common Profile and Service Error Codes. |
Gowtham Anandha Babu |
10 years ago |
1 file, +3, -9 |
| 5f6f6623 |
tools/l2test: Fix resource leaks |
Luiz Augusto von Dentz |
10 years ago |
1 file, +1, -0 |
| 457d44d3 |
tools/hcidump: Fix resource leaks |
Luiz Augusto von Dentz |
10 years ago |
1 file, +10, -12 |
| fa7c60eb |
tools/hciattach: Fix not checking the size given to strcat
strcat will attempt to append the 2 strings but it assumes the
destination is big enough to hold the result. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +6, -0 |
| 9db45f05 |
lib/sdp: Fix resource leak in sdp_get_supp_feat
In case dtd is unknow it would jump to fail without freeing what has
been allocated in subseq which is not appended to tseq so it could not
be freed. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +1, -1 |
| a3344c7d |
tools/sdptool: Fix resource leaks |
Luiz Augusto von Dentz |
10 years ago |
1 file, +8, -1 |
| 30dfb626 |
tools/rctest: Fix resource leaks |
Luiz Augusto von Dentz |
10 years ago |
1 file, +6, -2 |
| d72f1713 |
tools/hciconfig: Add missing hci_close_dev
Add hci_close_dev for commands using hci_open_dev, this is mostly to be
consistent with other commands that do cleanup but in practice makes no
difference since hciconfig will exit anyway. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +17, -0 |
| 302e4163 |
audio/avdtp: Fix resuming only the first SEID
AVDTP_Start can contain several Stream Endpoing IDs to be resumed. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +2, -3 |