| 8519cdbf |
emulator: Fix command line parameters with optional argument
Some parameters were missing the indication that additional
argument could be expected. |
Olivier Martin |
5 years ago |
1 file, +4, -2 |
| 8fcbb6b0 |
doc: Update documentation for HSP and HFP profiles
Fix information about default rfcomm channel number in HFP HS role
(it is 7, not 6) and add documentation about default values. |
Pali Rohár |
5 years ago |
1 file, +25, -2 |
| bc3cd6a3 |
profile: Return -ENOENT for HSP AG
HSP AG role doesn't have any supported features. |
Luiz Augusto von Dentz |
5 years ago |
1 file, +1, -1 |
| 8a73c868 |
mesh: Add Time-outs to critical dbus send-with-replies
JoinComplete() dbus method calls are the only time that node tokens are
delivered to client Applications, so if the call fails for any reason
(including time-outs) the daemon has a way to clean-up the stale unused
node data. |
Brian Gix |
5 years ago |
3 files, +51, -5 |
| fda1a557 |
tools/mesh-cfgclient: Add waiting for 'JoinComplete' |
Przemysław Fierek |
5 years ago |
1 file, +46, -32 |
| a4ead011 |
mesh: Change API to deliver tokens via JoinComplete
This patch changes Import and CreateNetwork API to deliver tokens via
the JoinComplete method call. When application doesn't raise any error
during handling JoinComplete then it is assumed that the token has been
saved, otherwise when application replies with an error message then the
node is removed. |
Przemysław Fierek |
5 years ago |
1 file, +53, -15 |
| 2fb966d8 |
doc/mesh: Change API to deliver tokens via JoinComplete
If Application is not be able to reliably store the token, the daemon
will end up with a uncontrollable node in its database.
Let's fix the issue by always delivering tokens using JoinComplete call,
and expecting a reply - if the application return an error, daemon will
get rid of the node. |
Michał Lowas-Rzechonek |
5 years ago |
1 file, +17, -13 |
| e3b8a648 |
profile: Add default SDP record for Headset role of HSP 1.2
This would allow D-Bus agents to implement HS role of HSP profile. |
Pali Rohár |
5 years ago |
1 file, +63, -0 |
| 040bd56a |
profile: Export Remote Audio Volume Control SDP value
Remote Audio Volume Control property in SDP record for HSP HS role
indicates if device supports volume control.
It is required for D-Bus agents which implements audio part of HSP
profile to know if remote device supports volume control or not.
With this change bluez exports status of this SDP property via firt bit
in Features entry in NewConnection() DBus callback method, like for HFP
profile. |
Pali Rohár |
5 years ago |
1 file, +14, -2 |
| b84bd5ee |
profile: Remove duplicate initialization of version and profile
These values are always set later by send_new_connection. |
Luiz Augusto von Dentz |
5 years ago |
1 file, +0, -3 |
| 6a7fe599 |
profile: Fix not setting default features for HFP 1.7
When HFP AG features are not set then according to HFP 1.7.2
specification it has value 0b001001. |
Pali Rohár |
5 years ago |
1 file, +14, -6 |
| d5cc4ffd |
mesh: Fix invalid app_path on 'Join'
This patch fixes invalid app_path on 'Join' method call - the daemon
tried to use the value of app_root API argument, while it should use
path discovered by scanning result of GetManagedObjects() call. |
Przemysław Fierek |
5 years ago |
1 file, +1, -3 |
| 42703325 |
test/example-advertisement: Fix advertising when discoverable
If adapter is discoverable (or LE-only) advertising was failing due
to too big adv data being set. Make sure there is enough space left
for flags if needed. |
Szymon Janc |
5 years ago |
1 file, +1, -1 |
| 60423fed |
mesh: Ignore beacons with IVU if IV already updated
When daemon receives beacon with IV=n+1, IVU=False it will
start sending messages with new IV and set sequence to 0.
However if daemon receives another beacon with IV=n+1, IVU=True it
will go back to sending messages with old IV=n (IVU set to True).
Because sequence number has been reset those messages will be dropped
by replay protection and node will lose communication.
Once IV is updated daemon should not go back to using the old value.
This patch adds beacon rejection if IV has already been updated. |
Rafał Gajda |
5 years ago |
1 file, +8, -0 |
| 5b294a56 |
monitor: Add support for opening extra mgmt socket for events |
Marcel Holtmann |
5 years ago |
3 files, +9, -2 |
| cbbb0c2e |
shared/att: Check the signature of att packets
Tested to pass these BT certification test
SM/MAS/SIGN/BV-03-C
SM/MAS/SIGN/BI-01-C |
Archie Pusaka |
5 years ago |
1 file, +16, -17 |
| 18169e7c |
unit/test-crypto: test for bt_crypto_verify_att_sign
Adding tests for verifying att signature |
Archie Pusaka |
5 years ago |
1 file, +59, -0 |
| 992ce8be |
shared/crypto: Add bt_crypto_verify_att_sign
This is used to verify the signature of incoming ATT packets. |
Archie Pusaka |
5 years ago |
2 files, +28, -2 |
| 397cbeb8 |
client: Make advertise instances default to discoverable
The more common case is that advertisements are discoverable not the
other way around. |
Luiz Augusto von Dentz |
5 years ago |
1 file, +1, -0 |
| 31003c95 |
tools/mesh-cfgclient: Default to highest security
To encourage best practices, we request the highest level of
security available in common between provision initiator and
acceptor. |
Brian Gix |
5 years ago |
1 file, +1, -1 |
| 5fc60b2c |
unit: Exit test-mesh-crypto on any detected fail
Unit test would signal failures if run on commandline, but not if
run as part of a unit test sweep. This change forces an exit(1) on
any detected fail, and is caught by test suite runner. |
Brian Gix |
5 years ago |
1 file, +25, -3 |
| 59aae8b1 |
mesh: Remove redundant code from mesh/crypto
- Remove application_encrypt/application_decrypt
- Make mesh_crypto_privacy_counter private, add mesh_crypto_pecb
- Make *_nonce functions private and align their implementation to be
more consistent
- Refactor network_encrypt/network_decrypt to use *_nonce functions and
rename them to packet_encrypt/packet_decrypt
- Refactor packet_encode/packet_decode |
Michał Lowas-Rzechonek |
5 years ago |
4 files, +291, -447 |
| e45b7a21 |
gatt: Fix not sending any data when server supports AcquireWrite
msg.msg_iovlen should be set to 1 to forward the data received over the
file descriptor. |
Luiz Augusto von Dentz |
5 years ago |
1 file, +1, -0 |
| 590a11b8 |
gatt: Fix AcquireWrite and AcquireNotify server support
Register read handler only for notify IO and handle socket
disconnection in sock_io_read. |
Szymon Janc |
5 years ago |
1 file, +2, -3 |
| 2a7df932 |
monitor: Fix off-by-one error with IRKs and LTKs |
Marcel Holtmann |
5 years ago |
1 file, +2, -2 |
| ba3cbc5b |
lib: Update company identifiers |
Marcel Holtmann |
5 years ago |
1 file, +2434, -68 |
| 14301cf0 |
doc: Define bus controller value for VIRTIO transport |
Marcel Holtmann |
5 years ago |
1 file, +1, -0 |
| c580e4b3 |
tools/hciattach_ath3k: Load BT board data based on country code
BT board data file PS_ASIC-<country-code>.pst is loaded based
on country code. If not exist, default BT board data file
PS_ASIC.pst would be loaded.
This patch doesn't define how to get the country code at the moment, but
future patches can supply the country code in the region parameter of
get_ps_file_name. |
Sonny Sasaka |
5 years ago |
1 file, +23, -9 |
| 7dc7bee5 |
tools/mesh-cfgclient: Store "index" as integer in config
Write "index", "elementIndex", "boundNetKey" as integers
rather than hex strings in configuration file. |
Inga Stotland |
5 years ago |
1 file, +56, -108 |
| ee436b6e |
tools/mescfg-client: Use local routines for config write
This removes dependencies on internal structures of
mesh/mesh-config-json.c. |
Inga Stotland |
5 years ago |
2 files, +78, -18 |
| 50ac8102 |
lib: Add details for reading security information command |
Marcel Holtmann |
5 years ago |
1 file, +7, -0 |
| 47b5609d |
tools: Add command for reading the security information |
Marcel Holtmann |
5 years ago |
1 file, +97, -0 |
| 9c9e8419 |
doc: Add Read Security Information command description |
Marcel Holtmann |
5 years ago |
1 file, +43, -0 |
| 35a22bb9 |
tools: Fix command for reading extended controller information |
Marcel Holtmann |
5 years ago |
1 file, +17, -10 |
| de5aa22b |
tools: Add command for toggling wideband speech feature |
Marcel Holtmann |
5 years ago |
1 file, +7, -0 |
| 65c24b09 |
lib: Add missing text for wideband speech command |
Marcel Holtmann |
5 years ago |
1 file, +1, -0 |
| f64f05a5 |
gatt: Fix Acquire* reply handling
Originally these operation did not set any owner_queue which caused
them to crash if the attribute is freed before the respose, to fix that
the reply will now check if owner_queue was reset to NULL which means
the attribute is no longer available but the owner_queue was never set
in the first place so this ensures they are now setup properly. |
Luiz Augusto von Dentz |
5 years ago |
1 file, +3, -2 |
| 55d06e0c |
mesh: Fix segfault related to idle config write
If node configuration is completely removed from the system,
remove all pending writes to the configuration file.
Fixes the segfault below:
mesh/cfgmod-server.c:node_reset() Node Reset
mesh/mesh-config-json.c:mesh_config_destroy() Delete node config /var/lib/bluetooth/mesh/02040d0a060e0a08090b0103070f050c
mesh/util.c:del_fobject() RM /var/lib/bluetooth/mesh/02040d0a060e0a08090b0103070f050c/rpl/00000000/0001
mesh/util.c:del_fobject() RMDIR /var/lib/bluetooth/mesh/02040d0a060e0a08090b0103070f050c/rpl/00000000
mesh/util.c:del_fobject() RMDIR /var/lib/bluetooth/mesh/02040d0a060e0a08090b0103070f050c/rpl
mesh/util.c:del_fobject() RM /var/lib/bluetooth/mesh/02040d0a060e0a08090b0103070f050c/node.json.bak
mesh/util.c:del_fobject() RM /var/lib/bluetooth/mesh/02040d0a060e0a08090b0103070f050c/node.json
mesh/util.c:del_fobject() RMDIR /var/lib/bluetooth/mesh/02040d0a060e0a08090b0103070f050c
Segmentation fault
Program terminated with signal SIGSEGV, Segmentation fault.
0x0000563a35df2ed0 in ?? ()
0x00007fd6b131689f in json_object_to_json_string_length (jso=jso@entry=0x563a35dd8d30, flags=flags@entry=2, |
Inga Stotland |
5 years ago |
1 file, +26, -5 |
| 4e42f2ed |
mesh: Move SEQ_MASK define in mesh-defs.h |
Inga Stotland |
5 years ago |
3 files, +1, -2 |
| 1b17e098 |
tools/mesh-cfgclient: Add commands for Key Refresh Phase
This adds two new menu commands:
"kr-phase-get" - sends Config Key Refresh Phase Get message
"kr-phase-set" - sends Config Key Refresh Phase Set message |
Inga Stotland |
5 years ago |
3 files, +100, -0 |
| 2f4dcb4e |
tools/mesh-cfgclient: Save subnet key refresh phase
This records Key Refresh phase of a subnet either as a consequence
of successful execution of subnet-update or subnet-set-phase commands. |
Inga Stotland |
5 years ago |
5 files, +90, -16 |
| 3eaf2f11 |
mesh: Clear prov capabilities structure before reading
Capabilities need to be zero'd before realtime reading fresh values,
because they are mostly bitmasks, which are set when capabilities are
detected, and never otherwise cleared. |
Brian Gix |
5 years ago |
1 file, +2, -0 |
| 96c50477 |
doc/mesh-api: OOB Information field is 16 bit, not 32 |
Michał Lowas-Rzechonek |
5 years ago |
1 file, +1, -1 |
| 1695ec1e |
mesh: Honor provisioner's capabilities
This patch makes the daemon select authentication method based from
capabilities supported by both provisioned node and provisioner
application. |
Michał Lowas-Rzechonek |
5 years ago |
2 files, +58, -31 |
| f333ce2d |
mesh: Refresh provisioner's capabilities
As provisioner's capabilities might change during application lifetime
(e.g. no network link to download OOB key), let's query the agent again
after application calls AddNode(). |
Michał Lowas-Rzechonek |
5 years ago |
5 files, +153, -36 |
| 037d4524 |
mesh: Clean up naming of provisioning callbacks |
Michał Lowas-Rzechonek |
5 years ago |
2 files, +10, -10 |
| 4b2d782f |
mesh: Remove unused 'server' argument |
Michał Lowas-Rzechonek |
5 years ago |
3 files, +1, -3 |
| 5be1ae4d |
tools/mesh-cfgclient: Display unprovisioned OOB data |
Michał Lowas-Rzechonek |
5 years ago |
1 file, +13, -0 |
| 14c8ccf2 |
monitor: Fix missing setting string
Add wideband speech to setting string |
Howard Chung |
5 years ago |
1 file, +1, -0 |
| b58ec70b |
gatt: Check error before retrying if Acquire* failed
If the method has timed out it probably means the application is not
responding so a follow up method call might have the same result, also
in case the application returns org.bluez.Error.Failed it indicates the
operation has been attempted but failed which again most likely will
have the same result if reattempted. |
Luiz Augusto von Dentz |
5 years ago |
1 file, +35, -13 |