Skip to content
Snippets Groups Projects
  1. Dec 26, 2017
    • Marcel Holtmann's avatar
      Release 5.48 · 0d1e3b9c
      Marcel Holtmann authored
      5.48
      0d1e3b9c
    • Johan Hedberg's avatar
      monitor: Fix uuid.h includes · 8f90b388
      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"
      8f90b388
  2. Dec 25, 2017
  3. Dec 22, 2017
  4. Dec 21, 2017
  5. Dec 20, 2017
    • Luiz Augusto von Dentz's avatar
      shared/att: Fix possible crash when security is changed · 4691b951
      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)
      4691b951
    • Szymon Janc's avatar
      gdbus: Fix crash on proxy remove · 2d58cc85
      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
      2d58cc85
    • Steve Brown's avatar
      mesh: meshctl: Make composition-get argument optional · 0c6ec937
      Steve Brown authored
      It can't be both optional and required.
      
      [config: Target = 0100]# composition-get 0
      Unable to parse optional command arguments
      0c6ec937
  6. Dec 19, 2017
  7. Dec 18, 2017
    • Steve Brown's avatar
      mesh: meshctl: Add Company ID parameter to pub-set and pub-get · 557d6368
      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
      557d6368
    • Steve Brown's avatar
      mesh: meshctl: Add get/set relay · fa5084a1
      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
      fa5084a1
    • Steve Brown's avatar
      mesh: meshctl: Add get/set identity · 0a8d9c69
      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
      0a8d9c69
    • Steve Brown's avatar
      mesh: meshctl: Add set/get proxy · f832f66f
      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
      f832f66f
    • Steve Brown's avatar
      mesh: meshctl: Add get publish · 1a53ed0c
      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
      1a53ed0c
    • Steve Brown's avatar
      mesh: meshctl: Add get app keys · 8087cd3d
      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
      8087cd3d
    • Steve Brown's avatar
      mesh: meshctl: Add set heartbeat publish · d6f74e4a
      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
      d6f74e4a
    • Steve Brown's avatar
      mesh: meshctl: Add add/get subscribe · 61ca29df
      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
      61ca29df
    • Steve Brown's avatar
      mesh: meshctl: Change command names to <cmd>-<get/set> · 37aafbbf
      Steve Brown authored
      Fix lines over 80 chars
      Move cmd_default()
      Add parameter to pub-set to control retransmit count
      37aafbbf
  8. Dec 16, 2017
  9. Dec 14, 2017
Loading