| 0c041e7c |
tools: Define power off CoD test with a timeout |
Johan Hedberg |
13 years ago |
1 file, +2, -2 |
| 0b0195aa |
tools: Add support for defining mgmt tests with a timeout |
Johan Hedberg |
13 years ago |
1 file, +18, -1 |
| 6c61fc4e |
shared: Add timeout support for test cases |
Johan Hedberg |
13 years ago |
2 files, +43, -13 |
| 3b664c20 |
tools: Do more generic tracking of unmet test conditions in mgmt-tester |
Johan Hedberg |
13 years ago |
1 file, +31, -31 |
| b224aaf2 |
tools: Fix test for unset settings in mgmt-tester |
Johan Hedberg |
13 years ago |
1 file, +1, -1 |
| e73dcb3f |
tools: Add power off test for testing correct class of dev |
Johan Hedberg |
13 years ago |
1 file, +32, -0 |
| 54552320 |
tools: Fix waiting for expected events in mgmt-tester |
Johan Hedberg |
13 years ago |
1 file, +6, -3 |
| d883fcae |
tools: Add class of device change monitoring support to mgmt-tester |
Johan Hedberg |
13 years ago |
1 file, +57, -4 |
| d42d7767 |
tools: Add basic power off test to mgmt-tester |
Johan Hedberg |
13 years ago |
1 file, +16, -0 |
| d57a9e5d |
tools: Add mgmt-tester support for testing for unset settings |
Johan Hedberg |
13 years ago |
1 file, +8, -0 |
| 53da9df4 |
unit: Add tests for SDP integer Data Elements
SDP_DATA_NIL does not have a value, but its sdp_data_t val field is
zeroed by memset(), so just treat it as UINT8 with zero value to
simplify checking (and not require a separate macro.)
SDP_BOOL is handled by SDP library as a INT8.
SDP_UINT128/SDP_INT128 are just byte arrays converted to host order, so
use memcmp() to compare them (converting from host to network order
first.) |
Anderson Lizardo |
13 years ago |
1 file, +84, -0 |
| cc291810 |
unit: Add {TEXT,URL}_STR{8,16} tests for sdp_extract_attr()
These tests are for valid data. Other tests might be added later to
check for error paths, but will require separate macros.
{TEXT,URL}_STR32 cannot be tested with the same macros because
sdp_extract_attr() does not support them. They will be tested
separately with other SDP library functions.
As example of failure output, if commit
504a0cf46ad89cab8005ce9cffb22e41048f6a30 is reverted for testing, the
STR16 test will fail with:
ERROR:unit/test-sdp.c:776:test_sdp_de_attr: assertion failed
(test->input_size == size): (7 == 11) |
Anderson Lizardo |
13 years ago |
1 file, +78, -0 |
| ba40ce26 |
tools: Add HCI command checking for mgmt_set_dev_class test |
Johan Hedberg |
13 years ago |
1 file, +4, -0 |
| c0748015 |
core: Fix checking for device object creation failures |
Johan Hedberg |
13 years ago |
1 file, +6, -0 |
| 34320f64 |
core: Log device interface registration failures |
Johan Hedberg |
13 years ago |
1 file, +1, -0 |
| 7fb8db0a |
monitor: Differentiate between E0 and AES-CCM encryption |
Marcel Holtmann |
13 years ago |
1 file, +89, -1 |
| d4657287 |
tools: Add some basic mgmt_set_dev_class test cases |
Johan Hedberg |
13 years ago |
1 file, +40, -0 |
| 2c78de09 |
tools: Add some basic mgmt_start_discovery failure test cases |
Johan Hedberg |
13 years ago |
1 file, +35, -0 |
| eee0456f |
AVRCP: Fix sending volume changed when not registered
Notifications should only be sent if remote device has registered using
RegisterNotification. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +4, -1 |
| 81337f95 |
AVRCP: Check version before sending volume changed event/SetAbsoluteVolume
Volume change event and SetAbsoluteVolume command are only available
starting from 1.4, so we should not attempt to send these commands for
versions before that. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +3, -0 |
| eddda4ea |
audio: Bump AVRCP CT version to 1.5 |
João Paulo Rechi Vita |
13 years ago |
1 file, +1, -1 |
| 68e3509a |
avrcp: Handle SetAbsoluteVolume command |
João Paulo Rechi Vita |
13 years ago |
1 file, +28, -0 |
| b27a4dbc |
transport: Update volume passing only audio_device |
João Paulo Rechi Vita |
13 years ago |
2 files, +21, -0 |
| a17e2e70 |
transport: Keep a list o all existent transports |
João Paulo Rechi Vita |
13 years ago |
1 file, +6, -0 |
| d8019264 |
avrcp: Notify remote of volume changes |
João Paulo Rechi Vita |
13 years ago |
1 file, +21, -7 |
| 46c08c01 |
avrcp: Handle RegisterNotification for volume
This commit answers a NOTIFY command to register for nofications of
EVENT_VOLUME_CHANGED with an INTERIM response containing the current
absolute volume value. |
João Paulo Rechi Vita |
13 years ago |
4 files, +22, -8 |
| cc0af043 |
transport: Get volume passing only audio_device |
João Paulo Rechi Vita |
13 years ago |
2 files, +22, -0 |
| be8954bd |
transport: Get volume from transport |
João Paulo Rechi Vita |
13 years ago |
2 files, +7, -0 |
| 86b55893 |
avrcp: Add EVENT_VOLUME_CHANGED to CT capabilities |
João Paulo Rechi Vita |
13 years ago |
1 file, +3, -0 |
| 2e6b80ed |
transport: Store the value set through the 'Volume' property |
João Paulo Rechi Vita |
13 years ago |
1 file, +2, -0 |
| ea55754a |
transport: Initialize the "Volume" property |
João Paulo Rechi Vita |
13 years ago |
1 file, +5, -3 |
| 12d88291 |
core: Fix handling mgmt socket write failures
If a write to the socket fails we should properly notify the command
callback and remove the command from the queue. |
Johan Hedberg |
13 years ago |
1 file, +9, -2 |
| a32adc61 |
core: Move valid discovery type check to mgmt_start_discovery |
Johan Hedberg |
13 years ago |
1 file, +5, -5 |
| 7d60c20c |
core: Fix connect list usage for non-LE adapters |
Johan Hedberg |
13 years ago |
2 files, +14, -6 |
| 06f72008 |
core: Don't try to start discovery with invalid address type |
Johan Hedberg |
13 years ago |
1 file, +5, -0 |
| 44d1a733 |
core: Add more debug logs to start_discovery functions |
Johan Hedberg |
13 years ago |
1 file, +4, -0 |
| b9a89a51 |
core: Add debug log to mgmt_start_discovery() |
Johan Hedberg |
13 years ago |
1 file, +2, -0 |
| 363e5577 |
obexd: Remove transferred file only if the GET operation failed
Since 9606375649e12f1b9f302bbb5bb8f87957387ddd xfer_complete() sets the
transfer status rather than the size. Adapt obc_transfer_free to check
for the completed status to avoid deletion of completed transfers. |
Christian Fetzer |
13 years ago |
1 file, +2, -1 |
| b4f48237 |
tools: Fix map-client to use new print syntax
print now requires () on newer python:
File "./map-client", line 101
print err
^ |
Luiz Augusto von Dentz |
13 years ago |
1 file, +1, -1 |
| 86de5862 |
obexd: Change behavior of parse_filter_read
Calls to ListMessages with filter 'Read' set to true should
request the MSE to send read messages only.
The old code requests the MSE to send unread messages only.
This behavior is not matching the other filters. |
Christian Fetzer |
13 years ago |
1 file, +2, -2 |
| d0b4698c |
obexd: Use defines for values in parse_filter_read parse_filter_priority |
Christian Fetzer |
13 years ago |
1 file, +18, -4 |
| 499d0a4e |
obexd: Fix segfault in parse_filter_read and parse_filter_priority
Calls to ListMessages with filter 'Read' or 'Priority' caused a segfault
in parse_filter_read / parse_filter_priority. The functions read
D-Bus boolean values (uint32) into uint8.
0 0x00007ffff730332d in ?? () from /usr/lib/libdbus-1.so.3
1 0x00007ffff7304219 in dbus_message_iter_next () from /usr/lib/libdbus-1.so.3
2 0x000000000043ef0f in parse_message_filters (
apparam=<error reading variable: Cannot access memory at address 0x7ffffeffff08>,
iter=<error reading variable: Cannot access memory at address 0x7ffffeffff00>)
at obexd/client/map.c:1246 |
Christian Fetzer |
13 years ago |
1 file, +6, -4 |
| 90322684 |
obexd: Fix FILTER_ALL in MAP client to set 16 bit
The MAP specification defines ParameterMask as a bitmask of 32 bit / 4 bytes.
For the lower 16 bit the specification defines parameters, the higher 16 bit
remain reserved for future use. Therefore FILTER_ALL is set to 0x0000FFFF.
(Reserved bits have to be set to 0)
In addition this fixes the issue that ListFilterFields didn't show all fields. |
Christian Fetzer |
13 years ago |
1 file, +1, -1 |
| a1d1ea32 |
obexd: Fix infinite loop in ListMessages with filter "Types"
Calls to ListMessages with filter 'Types' make obexd hang in an infinite loop.
This is caused by a missing dbus_message_iter_next in parse_filter_type.
0 0x00007ffff7304ca7 in dbus_message_iter_get_basic ()
from /usr/lib/libdbus-1.so.3
1 0x0000000000434fba in parse_filter_type (iter=0x7fffffffd7d0, apparam=
0x6987f0) at obexd/client/map.c:1086
2 parse_message_filters (iter=0x7fffffffd730, apparam=0x6987f0)
at obexd/client/map.c:1222
3 map_list_messages (connection=<optimized out>, message=0x669ae0, user_data=
0x698a60) at obexd/client/map.c:1273
4 0x00000000004109a1 in process_message (connection=0x662b20,
message=<optimized out>, iface_user_data=<optimized out>,
method=<optimized out>, method=<optimized out>) at gdbus/object.c:285
5 0x00007ffff7308e15 in ?? () from /usr/lib/libdbus-1.so.3
6 0x00007ffff72fb070 in dbus_connection_dispatch ()
from /usr/lib/libdbus-1.so.3
7 0x000000000040e3d8 in message_dispatch (data=0x662b20)
at gdbus/mainloop.c:76
8 0x00007ffff703d3cb in ?? () from /usr/lib/libglib-2.0.so.0
9 0x00007ffff703c845 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
10 0x00007ffff703cb78 in ?? () from /usr/lib/libglib-2.0.so.0
11 0x00007ffff703cf72 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
12 0x000000000040df82 in main (argc=1, argv=0x7fffffffdd88)
at obexd/src/main.c:323 |
Christian Fetzer |
13 years ago |
1 file, +2, -0 |
| 0b6a5b50 |
obexd: Add property exist functions to map client
This fixes crashes in MAP client when the server does not send optional properties.
0 0x00007ffff6a792c5 in raise () from /usr/lib/libc.so.6
1 0x00007ffff6a7a748 in abort () from /usr/lib/libc.so.6
2 0x00007ffff731c145 in ?? () from /usr/lib/libdbus-1.so.3
3 0x00007ffff7312a25 in ?? () from /usr/lib/libdbus-1.so.3
4 0x00007ffff73050d6 in dbus_message_iter_append_basic () from /usr/lib/libdbus-1.so.3
5 0x0000000000433cc5 in get_replyto (property=<optimized out>, iter=<optimized out>,
data=<optimized out>) at obexd/client/map.c:484
6 0x00000000004103b6 in append_property (p=p@entry=0x6594c0 <map_msg_properties+192>,
dict=dict@entry=0x7fffffffd8e0, iface=0x6a3720) at gdbus/object.c:547
7 0x0000000000410472 in append_properties (data=data@entry=0x6a3720, iter=iter@entry=
0x7fffffffd960) at gdbus/object.c:576
8 0x00000000004104d1 in append_interface (data=0x6a3720, user_data=0x7fffffffda40)
at gdbus/object.c:591
9 0x00007ffff7058a4d in g_slist_foreach () from /usr/lib/libglib-2.0.so.0
10 0x0000000000411d05 in emit_interfaces_added (data=0x6a2ff0) at gdbus/object.c:623
11 process_changes (user_data=0x6a2ff0) at gdbus/object.c:1006
12 0x00007ffff703c845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
13 0x00007ffff703cb78 in ?? () from /usr/lib/libglib-2.0.so.0
14 0x00007ffff703cf72 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
15 0x000000000040df82 in main (argc=1, argv=0x7fffffffdd88) at obexd/src/main.c:323 |
Christian Fetzer |
13 years ago |
1 file, +68, -8 |
| 5e358f18 |
obexd: Handle empty path name in SetPath
If the empty path is given, an empty name should be sent via OBEX.
Currently the name field is not set at all and later checks which
depend on data->index will access invalid memory regions as g_strsplit
returns NULL when an empty string is given.
0 0x000000000041a181 in g_obex_setpath (obex=obex@entry=0x662eb0, path=
0x20 <Address 0x20 out of bounds>, func=func@entry=0x42d300 <setpath_cb>,
user_data=user_data@entry=0x668f10, err=err@entry=0x7fffffffda08)
at gobex/gobex.c:1397
1 0x000000000042d395 in setpath_cb (obex=0x662eb0, err=0x0, rsp=<optimized out>,
user_data=0x668f10) at obexd/client/session.c:902
2 0x0000000000418e54 in handle_response (obex=obex@entry=0x662eb0, err=err@entry=0x0,
rsp=rsp@entry=0x668f40) at gobex/gobex.c:948
3 0x0000000000419d7a in incoming_data (io=<optimized out>, cond=<optimized out>,
user_data=0x662eb0) at gobex/gobex.c:1191
4 0x00007ffff703c845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
5 0x00007ffff703cb78 in ?? () from /usr/lib/libglib-2.0.so.0
6 0x00007ffff703cf72 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
7 0x000000000040def2 in main (argc=1, argv=0x7fffffffdd88) at obexd/src/main.c:323 |
Christian Fetzer |
13 years ago |
1 file, +1, -1 |
| b456fffd |
doc: Fix trivial typo in adapter-api |
Mikel Astiz |
13 years ago |
1 file, +1, -1 |
| 4bf61983 |
monitor: Add decoding for minor class for wearable major class |
Marcel Holtmann |
13 years ago |
1 file, +25, -1 |
| 5b8d0082 |
core: Rename adapter->disc_sessions to discov_sessions for clarity |
Johan Hedberg |
13 years ago |
1 file, +22, -19 |
| 854e34ad |
monitor: Add GATT-based Service UUIDs |
Marcel Holtmann |
13 years ago |
1 file, +19, -0 |