- Dec 26, 2017
-
-
Marcel Holtmann authored
-
Johan Hedberg authored
Commit e0e7eb08 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"
-
- Dec 25, 2017
-
-
Steve Brown authored
The case of a security command without an argument is not handled and throws a segv.
-
- Dec 22, 2017
-
-
Szymon Janc authored
-
Grzegorz Kolodziejczyk authored
This patch modifies gap device found flags to be bit masks as in other defined flags groups in btp.
-
Szymon Janc authored
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 authored
-
- Dec 21, 2017
-
-
Luiz Augusto von Dentz authored
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
-
Szymon Janc authored
Advertising Data doesn't have terminator field like EIR. This was causing error logs from kernel when data length was corrected.
-
Luiz Augusto von Dentz authored
Remove appearance table used to decode appearance.
-
Luiz Augusto von Dentz authored
This adds bt_appear_to_str which can decode the appearance code to a human readable string.
-
Luiz Augusto von Dentz authored
Use the shared/util.h helpers instead.
-
Luiz Augusto von Dentz authored
This adds helpers functions to decode UUIDs strings.
-
Szymon Janc authored
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)
-
- Dec 20, 2017
-
-
Luiz Augusto von Dentz authored
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)
-
Szymon Janc authored
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
-
Steve Brown authored
It can't be both optional and required. [config: Target = 0100]# composition-get 0 Unable to parse optional command arguments
-
- Dec 19, 2017
-
-
Luiz Augusto von Dentz authored
AcquireWrite and AcquireNofify are required by meshctl.
-
Inga Stotland authored
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().
-
Szymon Janc authored
-
Szymon Janc authored
-
Szymon Janc authored
-
Szymon Janc authored
This provides information about address type being used. It is needed for L2CAP sockets and PTS testing purposes.
-
- Dec 18, 2017
-
-
Steve Brown authored
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 authored
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 authored
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 authored
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 authored
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 authored
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 authored
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 authored
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 authored
Fix lines over 80 chars Move cmd_default() Add parameter to pub-set to control retransmit count
-
- Dec 16, 2017
-
-
Luiz Augusto von Dentz authored
Only set the discovery filter when the user wants execute the scan command.
-
Luiz Augusto von Dentz authored
This adds tab generator for scan:clear: [bluetooth]# clear duplicate-data pathloss rssi transport uuids
-
Luiz Augusto von Dentz authored
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 authored
This should be easier to read and maintain.
-
- Dec 14, 2017
-
-
Luiz Augusto von Dentz authored
Command clear shall clear all filters including DuplicateData.
-
Luiz Augusto von Dentz authored
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 authored
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 authored
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]# transport le SetDiscoveryFilter success [bluetooth]# transport Transport: le
-