Commits

Commit Message Author Age Changes
23fbc19d tools/csr_usb: Fix compilation failure GCC's "format-nonliteral" security check is enabled as an error in recent versions of Fedora. Given the limited formats, pass a boolean to switch between the 2 different formats. tools/csr_usb.c: In function 'read_value': tools/csr_usb.c:82:2: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] n = fscanf(file, format, &value); ^ Bastien Nocera 6 years ago 1 file, +10, -6
b406f287 build: Enable BIND_NOW Partial RELRO means that the object is GNU_RELRO but not BIND_NOW. This reduces the effectiveness of RELRO. bluez triggers this because it enables PIE during the build, and rpmdiff takes this as an indicator that the best possible hardening is desired. https://bugzilla.redhat.com/show_bug.cgi?id=983161 Florian Weimer 6 years ago 1 file, +1, -1
35979605 build: Add a few default configure options Add 3 optional features that are currently used and distributed in the Fedora packages to the default build configuration. The additional build time is minimal, and it ensures that the build gets maximum coverage. Bastien Nocera 6 years ago 1 file, +3, -0
97b8bbc4 mesh: Add CreateNetwork method() implementation This implements CreateNetwork() method on org.bluez.mesh.Network1 interface. Invoking this method generates a self-provisioned local node associated with a brand new mesh network. This new network is bare bones: only one network key is defined. The new node assumes the role of mesh network manager and will be able to use soon to be implemented methods of org.bluez.mesh.Management1 interface to provision remote nodes into its network and to add/update/remove network and application keys. Inga Stotland 6 years ago 3 files, +218, -78
b723fafb client: Fix crash when setting advertising.discoverable on DBUS_TYPE_BOOLEAN expect a pointer to dbus_bool_t not bool. Luiz Augusto von Dentz 6 years ago 1 file, +3, -2
8784c67d a2dp: Fix memory when loading of LastUsed fails This fixes the following trace: 3 bytes in 1 blocks are definitely lost in loss record 2 of 246 at 0x483880B: malloc (vg_replace_malloc.c:309) by 0x491BDC5: g_malloc (in /usr/lib64/libglib-2.0.so.0.5800.3) by 0x490CF2B: ??? (in /usr/lib64/libglib-2.0.so.0.5800.3) by 0x490E7CF: g_key_file_get_string (in /usr/lib64/libglib-2.0.so.0.5800.3) by 0x41E85B: load_remote_sep (a2dp.c:1987) by 0x41E85B: load_remote_seps (a2dp.c:2030) by 0x41EC86: avdtp_state_cb (a2dp.c:2053) by 0x421F77: avdtp_set_state (avdtp.c:700) by 0x42818B: avdtp_connect_cb (avdtp.c:2313) by 0x42847C: avdtp_new (avdtp.c:2389) by 0x41B4BB: connect_cb (a2dp.c:2145) by 0x46D993: accept_cb (btio.c:203) Luiz Augusto von Dentz 6 years ago 1 file, +1, -0
64670a4a mesh: Use node uuids as storage directory names Instead of keeping track of unique 16bit node identifiers, reuse their UUIDs to create both storage directories and dbus objects. Because of that: - UUID is no longer stored in the JSON file, it's inferred from the directory name instead - Join(), CreateNetwork() and ImportLocalNode() APIs return an error if given UUID already registered within the daemon Michał Lowas-Rzechonek 6 years ago 8 files, +72, -109
08c45ed6 tools: Walk rp->opcodes directly instead of interim variable Marcel Holtmann 6 years ago 1 file, +2, -5
acb2de0d peripheral: Walk rp->opcodes directly instead of interim variable Marcel Holtmann 6 years ago 1 file, +1, -3
0284bf0b adapter: Walk rp->opcodes directly instead of interim variable Marcel Holtmann 6 years ago 1 file, +1, -4
44658f11 shared: Walk rp->opcodes directly instead of interim variable Marcel Holtmann 6 years ago 1 file, +1, -4
d2925918 build: Switch to -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 Marcel Holtmann 6 years ago 1 file, +1, -1
0a191dc1 doc/settings-storage: Update LastUsed documentation This updates LastUsed description to reflect the lastest changes. Luiz Augusto von Dentz 6 years ago 1 file, +3, -3
e9436ecc a2dp: Reword LastUsed In addition to storing the remote endpoint also store the local one as well so we it can properly be restore. Luiz Augusto von Dentz 6 years ago 3 files, +119, -34
f4a1e13c a2dp: Fix useless statement Checking for NULL path doesn't really matter since NULL is returned anyway. Luiz Augusto von Dentz 6 years ago 1 file, +1, -2
626e923e a2dp: Fix reconfiguring when there multiple devices connected When there are multiple devices connected streams need to be matched with the sessions they belong. Luiz Augusto von Dentz 6 years ago 1 file, +4, -0
1fc30725 a2dp: Update last used on open indication This updates the last used endpoint also when receiving an open request from the remote end. Luiz Augusto von Dentz 6 years ago 1 file, +29, -26
5071fadb a2dp: Try aborting when switching endpoints If ongoing stream cannot be closed try aborting since the setup may still be ongoing. Luiz Augusto von Dentz 6 years ago 1 file, +11, -2
b22f56e8 a2dp: Fix crash when endpoint respond with an error If endpoint respond with an error the callback will be called with size set to -1 not 0. Luiz Augusto von Dentz 6 years ago 1 file, +1, -1
d6dce2bd mesh: Unify processing of GetManagedObjects result This combines processing of results obtained from GetManagedObjects request for both Attach() and Join() methods Inga Stotland 6 years ago 2 files, +182, -182
0639e177 mesh: Consolidate processing of mesh element properties Consolidate functions to parse and process properties of mesh element objects. Also, add validation of element composition when processing Attach() method. Inga Stotland 6 years ago 1 file, +167, -102
65844fe2 mesh: Clean up processing of Attach() method This changes the prototype for the callback function of Attach() method call: remove unused node_path argument and make the callback more generalized and re-usable for other method calls. Inga Stotland 6 years ago 3 files, +39, -58
d76a4cd4 mesh: Remove Node interface if node owner disconnects This unregisters Node interface associated with a specific node application when this application disconnects from D-Bus. Inga Stotland 6 years ago 1 file, +7, -3
852fedd6 advertising: Timeout of 0 should not fire a callback Setting a timeout of 0 on an advertisement should let the advertisement run forever. The client was released immediately after, although the advertisement was still in the air. Troels Dalsgaard Hoffmeyer 6 years ago 1 file, +3, -2
f7e04866 a2dp: Fixed warn_unused_result warning This used to break builds when using maintainer mode via ./bootstrap-configure: profiles/audio/a2dp.c:1775:2: error: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Werror=unused-result] asprintf(&sep->path, "%s/sep%d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michał Lowas-Rzechonek 6 years ago 1 file, +9, -2
d1996527 a2dp: Fix not calling SelectConfiguration on other available endpoints Endpoint may not be able to select a valid configuration but there could be other endpoints available that could be used, so instead of just using the first match this collects all the matching endpoints and put them into a queue (ordered by priority) then proceed to next endpoint only failing if none of the available endpoits can select a valid configuration. Luiz Augusto von Dentz 6 years ago 1 file, +50, -27
a79e4238 doc/settings-storage: Document LastUsed Endpoints entry Document the use of LastUsed entry inside Endpoints group. Luiz Augusto von Dentz 6 years ago 1 file, +6, -1
017c362a a2dp: Store last used endpoint This stores the last used endpoint whenever it is considered open and then prefer to use it when attempting to reconnect. Luiz Augusto von Dentz 6 years ago 1 file, +92, -13
732d61aa mesh: Add APIs for Provisioner and Config Client The added D-Bus APIs enable Applications to function in a Provisioner Initiator role, and as a Configuration Client. Brian Gix 6 years ago 1 file, +478, -14
4dbe6f78 mesh: Fix the cleanup of failed Join call This fixes the accidental swap of conditional checks: on failure, remove agent info if agent is registered and remove temporary node, if one has been created. Inga Stotland 6 years ago 1 file, +2, -2
1e5e98c3 mesh: Fix structure memeber initialization This fixes incorrectly reversed assignment of "friend" value in convert_node_to_storage() Inga Stotland 6 years ago 1 file, +1, -1
ecf001da mesh: Allow only one app attachment per node If a node is already attached to an application process, disallow another appication to attach to the same node. This means that an Attach() method called with the token identifying a node that is already in use, returns an error org.bluez.mesh.Error.AlreadyExists Inga Stotland 6 years ago 2 files, +7, -2
88c8968a test: Enable test-mesh to send raw vendor commands This adds a sample vendor model to the first element of the mesh node. A new menu entry allows to generate and send a raw vendor command. Inga Stotland 6 years ago 1 file, +32, -1
1cb6b17b test: Drive test-mesh with a string-based menu Switch to string interactive commands to drive testing of bluetooth-meshd. Re-work the menu to allow global setting of destination address and AppKey index for outbound mesh messages. Inga Stotland 6 years ago 1 file, +317, -222
0cf59dd1 mesh: Fix network information cleanup This fixes issues caused by accessing invalidated entries of nets queue that were left around when removing network info in mesh_net_detach() Inga Stotland 6 years ago 1 file, +1, -0
4d3c4fd6 mesh: Fix decryption when on more than one Network Multiple networks use different IV Index's, so we should only use decryption cache after successful decoding. Brian Gix 6 years ago 1 file, +7, -4
64afcf40 shared/gatt-db: Simplify attribute lookup This consolidates attribute lookup into gatt_db_foreach_in_range and instead of using custom code for each operation. Luiz Augusto von Dentz 6 years ago 2 files, +105, -152
c051df3c mesh: Create and store random token per node Fix issue with device key being used as a token. Token now seperate, and with a portable representation in the node database. Brian Gix 6 years ago 6 files, +70, -5
9f7659a4 a2dp: Fix UUID of remote Sinks Sinks were being reported as Sources. Luiz Augusto von Dentz 6 years ago 1 file, +1, -1
65988b31 shared/gatt-db: Skip ahead if handle range is not within service This checks if a range is within service handles skipping if it is not, it also convert the direct search to use gatt_db_foreach_service_in_range instead so all operation that do lookups in a range can benefit from such optimization. Luiz Augusto von Dentz 6 years ago 1 file, +19, -21
713f1931 build: Check if explicit_bzero is missing This check gets around the redefinition of explicit_bzero in ELL In file included from ell/random.c:34:0: ell/missing.h:59:20: error: static declaration of ‘explicit_bzero’ follows non-static declaration static inline void explicit_bzero(void *s, size_t n) ^~~~~~~~~~~~~~ In file included from ./ell/util.h:26:0, from ell/private.h:26, from ell/random.c:33: /usr/include/string.h:435:13: note: previous declaration of ‘explicit_bzero’ was here extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1)); ^~~~~~~~~~~~~~ Brian Gix 6 years ago 1 file, +2, -0
56d78211 emulator: Fix handling of Set Event Mask Page 2 Command This command is also valid for BR/EDR only (was introduced in 3.0) and for LE only controllers (Authenticated Payload Timeout Expired Event). Szymon Janc 6 years ago 1 file, +2, -2
3ad90901 mesh: Store node state variables prior to response Remotely set node state variables need to be saved to the file system or other NVM prior to returning success status. Brian Gix 6 years ago 3 files, +83, -29
b1adefb0 mesh: Fix json-c calling conventions Fix issue assuming that failed calls to json_object_object_get_ex() will always NULL the out parameter. Re-coded to always check the returned boolean for success or failure. Brian Gix 6 years ago 1 file, +82, -122
a5958b5b autopair: Add pin codes to try for gaming input devices As well as remote controls. Bastien Nocera 6 years ago 1 file, +12, -0
c8ef6d8a autopair: Add more common PIN codes for audio devices PIN codes "1111", and "1234" are fairly common PIN codes used for audio devices such as speakers and headsets. This replaces similar quirks already present in gnome-bluetooth's PIN database. Bastien Nocera 6 years ago 1 file, +14, -4
b9b070ff mesh: Fix adding model app key binding This fixes the situation when a new app key binding is being added to a model and the list of bindings does not exist yet. If the list does not exist, it is created and the binding is added to it. Also, remove unnecessary memory alloc check when model subscriptions are added. Inga Stotland 6 years ago 1 file, +3, -2
b57dd2de mesh: Correctly initialize node's vendor models This fixes vendor model initialization based on node properties collected during Join() method call. Inga Stotland 6 years ago 1 file, +9, -6
7a9a2068 advertising: Fix typo Fix value 'Codec' instead of 'Coded' phy. Luiz Augusto von Dentz 6 years ago 1 file, +1, -1
962ff221 shared/gatt-db: Remove update_attribute It is not longer needed to access the last attribute handle to figure out its attribute since the handle is either passed directly or the db->last_handle is used. Luiz Augusto von Dentz 6 years ago 1 file, +3, -16
Previous Next