| 203f5cb2 |
client: Use g_dbus_proxy_path_lookup() |
ERAMOTO Masaya |
8 years ago |
2 files, +2, -18 |
| 529790b6 |
gdbus: Introduce g_dbus_proxy_path_lookup()
g_dbus_proxy_path_lookup() returns the path of the proxy that matches the
passed path. It also returns the index of the proxy coming next to the
matched proxy in the passed list. |
ERAMOTO Masaya |
8 years ago |
2 files, +22, -0 |
| 6be85ab3 |
tools/obexctl: Use g_dbus_proxy_lookup() instead of find_*
Uses g_dbus_proxy_lookup() instead of find_{session,transfer,message,opp,
map,ftp,pbap} |
ERAMOTO Masaya |
8 years ago |
1 file, +64, -148 |
| 7407f970 |
tools/bluetooth-player: Use g_dbus_proxy_lookup() instead of find_*
Uses g_dbus_proxy_lookup() instead of find_{player,folder,item} |
ERAMOTO Masaya |
8 years ago |
1 file, +35, -63 |
| 6bf4c63d |
client: Use g_dbus_proxy_lookup() |
ERAMOTO Masaya |
8 years ago |
2 files, +12, -41 |
| a5d01a31 |
gdbus: Make proxy_lookup() global
Also adds the following feature to g_dbus_proxy_lookup().
- It is more robust even if a proxy is NULL.
- It checks if the passed interface is NULL.
- It looks up from the position of the list specified by the index. |
ERAMOTO Masaya |
8 years ago |
2 files, +19, -6 |
| 40306fda |
tools/btpclient: Add set connectable command
This patch adds set connectable command for btp client. |
Grzegorz Kolodziejczyk |
8 years ago |
1 file, +51, -13 |
| 4dedbf6f |
tools/btpclient: Add start, stop discovery commands
This patch adds start and stop discovery command for btp client. |
Grzegorz Kolodziejczyk |
8 years ago |
1 file, +226, -0 |
| c236f8cf |
tools/btpclient: Add device found event
This patch adds device found event handler. It's called when rssi
property of device changes and new device interface is added. |
Grzegorz Kolodziejczyk |
8 years ago |
1 file, +45, -0 |
| d3ca1bcc |
tools/btpclient: Add advertising proxy to adapter
Advertising manager proxy is required to handle advertise related
operations in adapter context. |
Grzegorz Kolodziejczyk |
8 years ago |
1 file, +14, -0 |
| bdc4b854 |
tools/btpclient: Move string to address conversion to helper
This patch makes local helper with string to address conversion. |
Grzegorz Kolodziejczyk |
8 years ago |
1 file, +7, -3 |
| 0d1e3b9c |
Release 5.48 |
Marcel Holtmann |
8 years ago |
2 files, +19, -1 |
| 8f90b388 |
monitor: Fix uuid.h includes
Commit e0e7eb08d5d28a952221070a4b50794d63dcc625 tried to fix this, but
missed most of the files concerned.
Without the fix an out-of-tree build (e.g. make distcheck) will throw
errors like this:
CC monitor/l2cap.o
../monitor/l2cap.c:41:18: fatal error: uuid.h: No such file or directory
#include "uuid.h" |
Johan Hedberg |
8 years ago |
5 files, +5, -5 |
| b80e4f58 |
mesh: meshctl: Correct display security
The case of a security command without an argument is not handled
and throws a segv. |
Steve Brown |
8 years ago |
1 file, +7, -2 |
| 6005a23b |
AUTHORS: Update Grzegorz's email |
Szymon Janc |
8 years ago |
1 file, +1, -1 |
| 66b7839b |
shared/btp: Define gap device found flags as bit mask
This patch modifies gap device found flags to be bit masks as in other
defined flags groups in btp. |
Grzegorz Kolodziejczyk |
8 years ago |
1 file, +3, -3 |
| 1432f119 |
android/tester: Fix race in discovering devices
This makes sure that emulated device starts advertising only after
discovery is ongoing and that tests go further only after device
was found. Otherwise tests were randomly failing. |
Szymon Janc |
8 years ago |
2 files, +125, -81 |
| 04503d8e |
android/tester: Clarify default properties match names |
Szymon Janc |
8 years ago |
1 file, +9, -9 |
| e0e7eb08 |
monitor: Fix out of the tree build
When building outside the tree including uuid.h may not be found:
../monitor/packet.c:52:18: fatal error: uuid.h: No such file or directory |
Luiz Augusto von Dentz |
8 years ago |
1 file, +1, -1 |
| 4c948b8e |
android/tester: Fix remote advertising data
Advertising Data doesn't have terminator field like EIR. This was
causing error logs from kernel when data length was corrected. |
Szymon Janc |
8 years ago |
1 file, +1, -2 |
| a58b0d05 |
monitor: Use bt_appear_to_str
Remove appearance table used to decode appearance. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +2, -82 |
| 52e2d7a8 |
shared/util: Introduce bt_appear_to_str
This adds bt_appear_to_str which can decode the appearance code to a
human readable string. |
Luiz Augusto von Dentz |
8 years ago |
3 files, +89, -0 |
| 7a03b61e |
tools: Remove monitor/uuid.{c,h}
Use the shared/util.h helpers instead. |
Luiz Augusto von Dentz |
8 years ago |
14 files, +25, -840 |
| 709bcef1 |
shared/util: Add helpers to decode UUIDs strings
This adds helpers functions to decode UUIDs strings. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +746, -0 |
| 9fbde4df |
shared/gatt-client: Fix memory leak of ready callback
72 bytes in 3 blocks are definitely lost in loss record 161 of 244
at 0x4C2FB6B: malloc (vg_replace_malloc.c:299)
by 0x48D07D: btd_malloc (util.c:45)
by 0x493992: bt_gatt_client_ready_register (gatt-client.c:1924)
by 0x472BD7: gatt_client_init (device.c:4785)
by 0x472BD7: device_attach_att (device.c:4919)
by 0x4740A2: att_connect_cb (device.c:4963)
by 0x445024: connect_cb (btio.c:232)
by 0x50CEBB6: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.5400.2)
by 0x50CEF5F: ??? (in /usr/lib64/libglib-2.0.so.0.5400.2)
by 0x50CF271: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.5400.2)
by 0x40BDE8: main (main.c:770) |
Szymon Janc |
8 years ago |
1 file, +8, -1 |
| 4691b951 |
shared/att: Fix possible crash when security is changed
When resending a PDU due to secure change the timeout_id shall also be
removed otherwise the following crash may occur:
Invalid read of size 8
at 0x489639: timeout_cb (att.c:405)
by 0x49417C: timeout_callback (timeout-glib.c:34)
by 0x4E84AB2: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
by 0x4E84049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
by 0x4E843EF: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
by 0x4E84711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
by 0x40B51F: main (main.c:770)
Address 0x6ce5830 is 32 bytes inside a block of size 192 free'd
at 0x4C2EDEB: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x48A89D: disconnect_cb (att.c:593)
by 0x493D54: watch_callback (io-glib.c:170)
by 0x4E84049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
by 0x4E843EF: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
by 0x4E84711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
by 0x40B51F: main (main.c:770) |
Luiz Augusto von Dentz |
8 years ago |
1 file, +6, -0 |
| 2d58cc85 |
gdbus: Fix crash on proxy remove
If proxy was freed due to interface being removed remaining references
are left with NULL client pointer. We need to cancel pending calls that
require client when getting reply.
This fix following crash:
bluetoothd[2773]: src/gatt-database.c:proxy_removed_cb() Proxy removed - removing service: /test/app/hci0/service2
bluetoothd[2773]: src/gatt-database.c:gatt_db_service_removed() Local GATT service removed
bluetoothd[2773]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
bluetoothd[2773]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
bluetoothd[2773]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10008
bluetoothd[2773]: src/gatt-database.c:client_disconnect_cb() Client disconnected
==2773== Invalid read of size 8
==2773== at 0x485220: proxy_added (client.c:288)
==2773== by 0x485220: get_all_properties_reply (client.c:316)
==2773== by 0x515A041: ??? (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.6)
==2773== by 0x515DA60: dbus_connection_dispatch (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.6)
==2773== by 0x47F2BF: message_dispatch (mainloop.c:72)
==2773== by 0x4E84049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
==2773== by 0x4E843EF: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
==2773== by 0x4E84711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2)
==2773== by 0x40B51F: main (main.c:770)
==2773== Address 0x88 is not stack'd, malloc'd or (recently) free'd |
Szymon Janc |
8 years ago |
1 file, +6, -0 |
| 0c6ec937 |
mesh: meshctl: Make composition-get argument optional
It can't be both optional and required.
[config: Target = 0100]# composition-get 0
Unable to parse optional command arguments |
Steve Brown |
8 years ago |
1 file, +1, -1 |
| f34557fb |
gatt: Mark AcquireWrite and AcquireNotify as stable
AcquireWrite and AcquireNofify are required by meshctl. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +6, -8 |
| c07b067f |
mesh: meshctl: make model parsing more manageable
Extract functionality for finding an existing model from
parse_configuration_models() into new function find_configured_model().
This removes confusing logic from overloaded implementation of
parse_configuration_models(). |
Inga Stotland |
8 years ago |
1 file, +42, -12 |
| 6c91d284 |
client: Print Address type in show and info commands |
Szymon Janc |
8 years ago |
1 file, +20, -2 |
| 4e3c8e9a |
device: Add support for AddressType property |
Szymon Janc |
8 years ago |
1 file, +19, -0 |
| cb40fbe0 |
adapter: Add support for AddressType property |
Szymon Janc |
8 years ago |
1 file, +18, -0 |
| 2a225e92 |
Add AddressType property for Adapter1 and Device1 interfaces
This provides information about address type being used. It is needed
for L2CAP sockets and PTS testing purposes. |
Szymon Janc |
8 years ago |
2 files, +25, -0 |
| 557d6368 |
mesh: meshctl: Add Company ID parameter to pub-set and pub-get
Add a CID parameter to both commands similar to bind.
Correct the prior assumption that a model id > 0xffff
was a vendor model.
pub-set 0100 c000 1 0 0 1000
03 0001 00c0 01 00 ff 00 00 0010
pub-set 0100 c000 1 0 0 1000 1
03 0001 00c0 01 00 ff 00 00 0100 0010 |
Steve Brown |
8 years ago |
1 file, +9, -8 |
| fa5084a1 |
mesh: meshctl: Add get/set relay
Sets the relay state in node 0100 to 1
[config: Target = 0100]# relay-set 1 0 0
Node 0100 Relay state: 0x01 count: 0 steps: 0
Fetches the relay state of node 0100
[config: Target = 0100]# relay-get
Node 0100 Relay state: 0x01 count: 0 steps: 0 |
Steve Brown |
8 years ago |
1 file, +42, -0 |
| 0a8d9c69 |
mesh: meshctl: Add get/set identity
Setting identity will cause connectable identity
beacons to be transmitted. The connect command
has an option to connect in this mode.
Sets the identity state to 1 in node 0100 on network
0000.
[config: Target = 0100]# ident-set 0 1
Network index 0x0000 has Node Identity state 0x01 Success
Fetched the identity state from node 0100
[config: Target = 0100]# ident-get 0
Network index 0x0000 has Node Identity state 0x01 Success |
Steve Brown |
8 years ago |
1 file, +62, -0 |
| f832f66f |
mesh: meshctl: Add set/get proxy
Set the current proxy state of node 0100
Setting the proxy state to 0 will disconnect
the GATT proxy connection.
[config: Target = 0100]# proxy-set 1
Node 0100 Proxy state: 0x01
Get the current proxy state of element 0100
[config: Target = 0100]# proxy-get
Node 0100 Proxy state: 0x01 |
Steve Brown |
8 years ago |
1 file, +40, -0 |
| 1a53ed0c |
mesh: meshctl: Add get publish
Get the publish address for model 1001 in element 0100
[config: Target = 0100]# pub-get 0100 1001
Set publication for node 0100 status: Success
Publication address: 0xc000
Period: 0 ms
Retransmit count: 0
Retransmit Interval Steps: 0 |
Steve Brown |
8 years ago |
1 file, +38, -0 |
| 8087cd3d |
mesh: meshctl: Add get app keys
List application keys of model 1000 in element 0100.
[config: Target = 0100]# app-get 0100 1000
Model App Key list for node 0100 length: 7 status: Success
Element Addr: 0100
Model ID: 1000
Model App Key: 0001 |
Steve Brown |
8 years ago |
1 file, +51, -1 |
| d6f74e4a |
mesh: meshctl: Add set heartbeat publish
Sets heartbeat for node 0100
[config: Target = 0100]# hb-set 0100 0 0 0 0
Set heartbeat for node 0100 status: Success
Destination: 0100
Count: 00
Period: 00
TTL: ff
Features: 0000
Net_Idx: 0000 |
Steve Brown |
8 years ago |
2 files, +79, -1 |
| 61ca29df |
mesh: meshctl: Add add/get subscribe
Adds a subscription for group address c000 to
model 1000 in element 0100.
[config: Target = 0100]# sub-add 0100 c000 1000
Subscription changed for node 0100 status: Success
ModelId 1000
Element Addr: 0100
Subscr Addr: c000
Gets the current subscription list for model 1000
on element 0100.
[config: Target = 0100]# sub-get 0100 1000
Subscription list for node 0100 length: 7 status: Success
Element Addr: 0100
Model ID: 1000
Subscr Addr: c000 |
Steve Brown |
8 years ago |
1 file, +107, -0 |
| 37aafbbf |
mesh: meshctl: Change command names to <cmd>-<get/set>
Fix lines over 80 chars
Move cmd_default()
Add parameter to pub-set to control retransmit count |
Steve Brown |
8 years ago |
1 file, +41, -37 |
| a157235d |
client: Only set the discovery filter when necessary
Only set the discovery filter when the user wants execute the scan
command. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +45, -56 |
| 093768cd |
client: Add generator for scan:clear
This adds tab generator for scan:clear:
[bluetooth]# clear
duplicate-data pathloss rssi transport uuids |
Luiz Augusto von Dentz |
8 years ago |
1 file, +22, -1 |
| b80e11bf |
client: Make scan:clear clear individual fields
This reintroduces the option to clear individual fields which was
removed when redesining the commands which now read the fields when
no arguments are provided. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +56, -5 |
| 94c0774c |
client: Group discovery filter variables into a struct
This should be easier to read and maintain. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +35, -47 |
| 902ff0e0 |
client: Fix command scan:clear
Command clear shall clear all filters including DuplicateData. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +1, -0 |
| 3d152981 |
client: Rename set-filter-clear to clear
All commands under scan submenu are related to set-filter so remove its
portion from it and make the command return the current value if no
parameters. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +2, -2 |
| cd2dcedf |
client: Rename set-filter-duplicate-data to duplicate-data
All commands under scan submenu are related to set-filter so remove its
portion from it and make the command return the current value if no
parameters:
[bluetooth]# duplicate-data on
SetDiscoveryFilter success
[bluetooth]# duplicate-data
DuplicateData: on |
Luiz Augusto von Dentz |
8 years ago |
1 file, +10, -7 |