| 8af7aac2 |
Fix obex protocol for powerpc
omtu and imtu is define as uint16_t in l2cap_get function (use with va_arg). |
Fabien Proriol |
9 years ago |
2 files, +4, -4 |
| 5f2c8a15 |
client: Don't attach stdin in connect_handler()
connect_handler() gets called when we're connected to D-Bus but before
introspection of the remote service (org.bluez) is complete. The
client_ready() callback otoh waits until the introspection is complete
and is already also taking care of attaching input. |
Johan Hedberg |
9 years ago |
1 file, +0, -3 |
| c560b507 |
Release 5.41 |
Marcel Holtmann |
9 years ago |
2 files, +9, -1 |
| 8caffd41 |
build: Update library version |
Marcel Holtmann |
9 years ago |
1 file, +1, -1 |
| 91758e0a |
lib: Update company identifiers |
Marcel Holtmann |
9 years ago |
1 file, +13, -1 |
| 3c6dffca |
doc/mgmt-api: Add new bus types |
Marcel Holtmann |
9 years ago |
1 file, +4, -0 |
| 432609df |
doc/mgmt-api: Add note about changes in 1.13 |
Johan Hedberg |
9 years ago |
1 file, +3, -0 |
| e3199baa |
test/example-gatt-server: Fix error on Property.GetAll
get_properties is a method not a dictionary which cause the following
error:
TypeError: 'method' object is not subscriptable |
Luiz Augusto von Dentz |
9 years ago |
1 file, +3, -3 |
| 1040ee7f |
monitor: Remove uuid128_to_str
uuid128_to_str is no longer necessary since all the user have been
converted to use uuidstr_to_str. |
Luiz Augusto von Dentz |
9 years ago |
2 files, +0, -7 |
| 805fa1f5 |
monitor: Fix using uuid128_to_str
This function always return "Unknown" regardless of the input, instead
uuidstr_to_str shall be used for UUID 128 bit format since it can return
proper friendly names:
> ACL Data RX: Handle 3585 flags 0x02 dlen 26
ATT: Read By Group Type Response (0x11) len 21
Attribute data length: 20
Attribute group list: 1 entry
Handle range: 0x0001-0x0015
UUID: Eddystone Configuration Service (a3c87500-8ed3-4bdf-8a39-a01bebede295) |
Luiz Augusto von Dentz |
9 years ago |
1 file, +4, -3 |
| c1774754 |
shared/gatt-client: Don't use exchange MTU with BR/EDR links
Accourding to the spec MTU should ne negotiated using L2CAP channel
configuration procedures:
BLUETOOTH SPECIFICATION Version 4.2 [Vol 3, Part G] page 546:
4.3.1 Exchange MTU
This sub-procedure shall not be used on a BR/EDR physical link since
the MTU size is negotiated using L2CAP channel configuration
procedures. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +13, -2 |
| 05bdde05 |
shared/att: Fix MTU size for when using BR/EDR links
BR/EDR links uses L2CAP commands to setup the MTU. |
Luiz Augusto von Dentz |
9 years ago |
3 files, +52, -4 |
| fc9ccf61 |
core/gatt: Print address type
The code actually listen for ATT connection in both BR/EDR and LE so
it shouldn't assume all the connections are LE. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +3, -2 |
| d8c47f12 |
doc: Update with mgmt-api version 1.13 |
Marcel Holtmann |
9 years ago |
1 file, +2, -1 |
| e9982bcc |
doc/mgmt-api: Add Authentication Failure code to Disconnected event
This error code will be set if authentication (enabling encryption)
failed with 'PIN or Key Missing' error. This will allow userspace
to take actions (eg ask user for consent for rebonding) when remote
device lost bond. |
Szymon Janc |
9 years ago |
1 file, +1, -0 |
| 6fd2662d |
client: Clarify D-Bus disconnected prompt
Make it clear that bluetoothctl is waiting to connect to bluetoothd
instead of showing something that looks like a prompt but which
doesn't accept any input. |
Johan Hedberg |
9 years ago |
1 file, +1, -1 |
| aed475dd |
client: Remove input handling if disconnected from D-Bus
When started, bluetoothctl doesn't process input until it has
connected to bluetoothd. To be consistent if the D-Bus connection is
later lost also remove the input processing then. |
Johan Hedberg |
9 years ago |
1 file, +43, -37 |
| 32710599 |
core/gatt: Fix attribute permissions |
Luiz Augusto von Dentz |
9 years ago |
1 file, +3, -3 |
| ecf24957 |
core/device: Don't persist private devices
Device which address is private should not be allowed to reset the
temporary flag since its settings cannot be stored and the address
may never be used again after disconnecting. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +3, -0 |
| 91b1b67b |
lib: Update company identifiers |
Marcel Holtmann |
9 years ago |
1 file, +74, -2 |
| 12cd2eda |
lib: Define HCI_PRIMARY and use it instead of HCI_BREDR |
Marcel Holtmann |
9 years ago |
10 files, +22, -20 |
| 03f04976 |
obexd: Add a detailed failure message for exchanging business cards
When sending the ExchangeBusinessCards() command, the command returns
a failure. It isn't clear what that failure is. Upon looking through
the code, it is obvious the function is not implemented.
This patch just adds an extra detail message 'Not Implemented' to make
the failure a little more clear about what the problem is. |
Don Zickus |
9 years ago |
1 file, +2, -1 |
| 6c75f43e |
obexd: Return dummy_data instead of int in phonebook-dummy
There are two functions in phonebook-dummy that were returning
'int's instead of 'struct dummy_data'
phonebook_create_cache
phonebook_get_entry
As a result, when an obex-client sends the GetSize command, the obexd
on the server segfaults.
Fix this by storing the id and returning the dummy_data struct.
The GetSize test now passes correctly. |
Marek Kasik |
9 years ago |
1 file, +8, -7 |
| 16102009 |
obexd: Allow CreateFolder to create a directory
When the remote device sends the 'CreateFolder' command, obexd
first tries to verify the path in ftp_setpath(). Because we are
creating a new directory, the verify_path() is expected to fail (it does
not exist yet; ENOENT).
Trap that special case and cause the function to fail directly to the
create directory path. |
Marek Kasik |
9 years ago |
1 file, +2, -0 |
| faac2826 |
emulator: Fix status value for DHKey Complete event
The value wasn't properly initialized, leading to arbitrary values. |
Johan Hedberg |
9 years ago |
1 file, +1, -0 |
| f9591e60 |
core/adapter: Fix scan type for filtered discovery
The default type when using SetDiscoveryFilter shall be based on the
current adapter settings since the ControllerMode may set a different
mode or in case the adapter is single mode the code shall never assume
the adapter is SCAN_TYPE_DUAL by default. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +6, -7 |
| 17360a49 |
client: Fix filtered scan
Empty list of UUIDs should be allowed to be passed to
set-scan-filter-uuids as bluetoothd accepts it to enable filtering
every UUID. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +89, -47 |
| 1ca09244 |
core/device: Make filtered discovery able to detect beacons
This makes it possible to use SetDiscoveryFilter to disable checking
discoverable flags making it possible to see beacons such as the ones
create by tools/eddystone that doesn't show on regular discovery sessions
since they are not discoverable/connectable. |
Luiz Augusto von Dentz |
9 years ago |
2 files, +6, -2 |
| 42c648cc |
doc/supported-features: Fix SPP version number
The SPP version on the SDP record is actually 0x0102. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +1, -1 |
| 7b945b3f |
core/device: Don't even attempt to load name if address is private
Device with private address does not have their name stored so it makes
not sense to attempt to load their names. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +3, -0 |
| 3e15a874 |
core/gatt-client: Always use bt_gatt_client_read_long_value
bt_gatt_client_read_long_value always reads the full value so the code
don't have to check if there is more data to be read. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +3, -46 |
| 262145fb |
core/gatt-client: Allow clients to call ReadValue in parallel
This queues ReadValue messages if the offset is the same so all the
client interested in reading the attribute value are replied when the
operation is completed. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +163, -155 |
| c89d0f20 |
shared/att: Fix size of opcode
ATT opcode are 1 octect long not 2. |
Luiz Augusto von Dentz |
9 years ago |
1 file, +1, -1 |
| 61b5700e |
src/gatt-client: Fix iteration through options
Fix infinite loop when trying to read/write a characteristic or
a descriptor and the ReadValue/WriteValue call has at least one
option. |
Tobias Svehagen |
9 years ago |
1 file, +2, -0 |
| 0b8e372a |
tools/gatt-service: Do not call parse_options on reply message
A call to dbus_message_iter_get_arg_type will cause an assertion
since it is called on the wrong type of iterator. |
Tobias Svehagen |
9 years ago |
1 file, +0, -4 |
| 619297bc |
tools/gatt-service: Fix iteration through options
Fixes an infinite loop when trying to read a descriptor and the
ReadValue call has at least one option. |
Tobias Svehagen |
9 years ago |
1 file, +2, -0 |
| 0688527e |
monitor: Remove some dead code
new0 and queue_new cannot fail. |
Szymon Janc |
9 years ago |
1 file, +0, -12 |
| f70216f3 |
monitor: Add support for counting unknown opcodes in analyze
Count unknown opcodes and print them in summary instead of failing
to analyze btsnoop file. |
Szymon Janc |
9 years ago |
1 file, +17, -2 |
| 91740c65 |
monitor: Display all events type in analyze
This add support for counting all event types in analyze. |
Szymon Janc |
9 years ago |
1 file, +51, -0 |
| d058d1d3 |
monitor: Add support for analyzing index info
Will now show vendor name if it was provided in snoop file. |
Szymon Janc |
9 years ago |
1 file, +29, -1 |
| 9f83f7b8 |
audio/avdtp: Fix memory leak
Fixes not freeing the stream if endpoint response with an error
causing the followin trace:
146 (104 direct, 42 indirect) bytes in 1 blocks are definitely lost in loss record 209 of 244
at 0x4C2A988: calloc (vg_replace_malloc.c:711)
by 0x50CE580: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.4600.2)
by 0x42600F: avdtp_setconf_cmd (avdtp.c:1474)
by 0x42600F: avdtp_parse_cmd (avdtp.c:1966)
by 0x42600F: session_cb (avdtp.c:2165)
by 0x50C8E59: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4600.2)
by 0x50C91EF: ??? (in /usr/lib64/libglib-2.0.so.0.4600.2)
by 0x50C9511: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.4600.2)
by 0x40BFC8: main (main.c:687) |
Luiz Augusto von Dentz |
9 years ago |
1 file, +1, -0 |
| 0a986f83 |
audio/avrcp: Fix crash if no player is available
It seems some Samsung Android devices may actually report no players
at all causing the following crash:
Program terminated with signal 11, Segmentation fault.
#0 set_ct_player (player=0x0, session=<value optimized out>)
at profiles/audio/avrcp.c:3139
#1 0xb76c0aab in player_remove (data=0xb849a100)
at profiles/audio/avrcp.c:3278 |
Luiz Augusto von Dentz |
9 years ago |
1 file, +10, -1 |
| 2e2edc36 |
core/service: Allow disconnected -> connected state change
By ignoring case where service->state == BTD_SERVICE_STATE_DISCONNECTED
in btd_service_connecting_complete(), state_callbacks don't get
executed. Such case occurs when e.g., phone using a2dp-source profile
connects to the bluez. Because no state_callbacks are executed
(including one added by policy plugin) no reconnection is attempted
after connection timeout, although if situation is reversed (bluez
connects to the phone) reconnection works. |
Miroslav Koskar |
9 years ago |
1 file, +2, -1 |
| 142093f1 |
doc: Update test coverage |
Johan Hedberg |
9 years ago |
1 file, +2, -2 |
| 69326f7c |
tools/mgmt-tester: Add cross-transport LE SC test case |
Johan Hedberg |
9 years ago |
1 file, +96, -1 |
| 28de3782 |
emulator: Include Link Key in key distribution if BR/EDR is supported |
Johan Hedberg |
9 years ago |
3 files, +21, -8 |
| 00eba5fd |
unit: Add test case for h6 link key conversation function |
Marcel Holtmann |
9 years ago |
2 files, +45, -6 |
| ea940e67 |
shared: Add helper function for h6 link key derivation |
Marcel Holtmann |
9 years ago |
2 files, +13, -2 |
| 55192ae2 |
test/simple-endpoint: Fix ClearConfiguration signature |
Luiz Augusto von Dentz |
9 years ago |
1 file, +3, -3 |
| 4989b799 |
Release 5.40 |
Marcel Holtmann |
9 years ago |
2 files, +11, -1 |