| 77d7625e |
Makefile for meshd |
Inga Stotland |
7 years ago |
2 files, +42, -0 |
| d38013e7 |
mesh: Sample device composition in JSON format
This is a sample unprovisioned device composition described
in JSON format. |
Inga Stotland |
7 years ago |
1 file, +44, -0 |
| e594ed81 |
mesh: Read and write mesh configuration in JSON format
This adds implementation for parsing and writing Mesh configuration
into JSON format. Also, parse stored unprovisioned device composiotion. |
Inga Stotland |
7 years ago |
2 files, +1504, -0 |
| 6a090431 |
mesh: Mesh config server model |
Inga Stotland |
7 years ago |
1 file, +1194, -0 |
| 7c47188f |
mesh: Source code for handling access layer mux/demux |
Inga Stotland |
7 years ago |
1 file, +1274, -0 |
| e594aefd |
mesh: Source files for mesh access layer and utilities
This adds initial implementation of BT Mesh access layer
functionality plus utilities. |
Inga Stotland |
7 years ago |
8 files, +2893, -0 |
| 6fbc4c83 |
mesh: Header files for mesh access layer and utilities
This adds initial implementation of Mesh access layer functionality |
Inga Stotland |
7 years ago |
9 files, +600, -0 |
| ef602192 |
mesh: Add Accessors to Transport layer data |
Brian Gix |
7 years ago |
1 file, +549, -0 |
| 37ebf9eb |
mesh: Upper and Lower mesh transport |
Brian Gix |
7 years ago |
1 file, +3639, -0 |
| 16af0cf9 |
mesh: Provisioning logic for mesh |
Brian Gix |
7 years ago |
2 files, +1881, -0 |
| 22d61076 |
mesh: Initial Mesh Friendship support |
Brian Gix |
7 years ago |
1 file, +1116, -0 |
| 4120a514 |
mesh: Infrastructure for Mesh daemon |
Brian Gix |
7 years ago |
3 files, +912, -0 |
| 7c9a8c71 |
mesh: Mesh crypto support |
Brian Gix |
7 years ago |
1 file, +1545, -0 |
| 603743a6 |
mesh: Shared private meshd interfaces |
Brian Gix |
7 years ago |
9 files, +1009, -0 |
| a35a0167 |
tools/mesh: Fix reclaiming address range
The computations for reclaiming released unicast addresses back
into address pool were off by 1. Also, the adjacent pools need
to be merged, if the released range fills the gap between two
address pools. |
Inga Stotland |
7 years ago |
1 file, +26, -6 |
| a34bc428 |
gitlint: Add .gitlint configuration
This adds a configuration for gitlint matching the preferred format. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +48, -0 |
| 0fd4b27d |
build: Fix conditional check for enable-mesh |
Inga Stotland |
7 years ago |
1 file, +2, -2 |
| ee1067c9 |
doc/adapter-api: Fix working of Discoverable filter |
Luiz Augusto von Dentz |
7 years ago |
1 file, +2, -2 |
| 847dcb2a |
client: Fix not resetting filters on scan.clear
If call to SetDiscoveryFilter comes with any value set the daemon will
not attempt to clear the filters, instead the client is suppose to send
an empty dict. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +28, -11 |
| 151a80b6 |
client: Commit changes to scan filter if active
This detects if the command scan has been triggered and if so commit
changes to filter immediately so they take effect in the current
session. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +38, -17 |
| 4f162b55 |
adapter: Fix not keeping discovery filters
If the discovery has been stopped and the client has set filters those
should be put back into filter list since the client may still be
interested in using them the next time it start a scanning. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +16, -9 |
| 9a57d906 |
client: Add scan.clear discoverable
This implements scan.clear for discoverable filter. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +8, -1 |
| 170ff3b8 |
client: Add scan.discoverable command
This adds discoverable command to scan menu which can be used to set
if adapter should become discoverable while scanning:
[bluetooth]# scan.discoverable on
[bluetooth]# scan on
SetDiscoveryFilter success
[CHG] Controller XX:XX:XX:XX:XX:XX Discoverable: yes
Discovery started
[CHG] Controller XX:XX:XX:XX:XX:XX Discovering: yes
[bluetooth]# scan off
Discovery stopped
[CHG] Controller XX:XX:XX:XX:XX:XX Discoverable: no |
Luiz Augusto von Dentz |
7 years ago |
1 file, +29, -0 |
| d04eb02f |
adapter: Discovery filter discoverable
This implements the discovery filter discoverable and tracks which
clients had enabled it and restores the settings when the last client
enabling it exits. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +54, -2 |
| bbf1cd01 |
doc/adapter-api: Add Discoverable option to SetDiscoveryFilter
This enables the client to set its discoverable setting while
discovering which is very typical situation as usually the setings
application would allow incoming pairing request while scanning, so
this would reduce the number of calls setting Discoverable and
DiscoverableTimeout and restoring after done with discovery. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +6, -0 |
| dad3ca2f |
monitor: Fix 2-DH5 packet type print
3-DH5 is printed instaed of 2-DH5 |
Jaganath Kanakkassery |
7 years ago |
1 file, +1, -1 |
| dce29db5 |
mgmt-tester: Update Supported_settings to reflect PHY_CONFIGURATION |
Jaganath Kanakkassery |
7 years ago |
1 file, +9, -9 |
| fb3acecd |
mgmt-tester: Add support ext create connection and enh conn complete |
Jaganath Kanakkassery |
7 years ago |
1 file, +42, -7 |
| 8c07fd41 |
mgmt-tester: Add tests for extended scanning and device found |
Jaganath Kanakkassery |
7 years ago |
1 file, +245, -0 |
| 9b61bf4e |
mgmt-tester: Add PHY Configuration test cases |
Jaganath Kanakkassery |
7 years ago |
1 file, +176, -0 |
| 02c9edab |
mgmt-tester: Add extended advertising test cases |
Jaganath Kanakkassery |
7 years ago |
1 file, +1512, -93 |
| 61458883 |
emulator: Add BREDR 2M & 3M, 3 & 5 Slot packet type support |
Jaganath Kanakkassery |
7 years ago |
1 file, +10, -0 |
| 426693e8 |
monitor: Add BREDR PHYs in PHY configuration commands |
Jaganath Kanakkassery |
7 years ago |
1 file, +25, -14 |
| 9213ff76 |
agent: Make the first agent to register the default
This simplifies the handling of default agent and enforce the IO
capabilities to be set whenever there is an agent available in the
system. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +6, -8 |
| 1880b299 |
core: Add AlwaysPairable to main.conf
This adds a new option called AlwaysPairable to main.conf, it can be
used to enable Adapter.Pairable even in case there is no Agent
available.
Since that could be consider a security problem to allow pairing
without user's consent the option defaults to false. |
Luiz Augusto von Dentz |
7 years ago |
6 files, +39, -3 |
| 45969a7a |
adapter: Check pending when setting DiscoverableTimeout
This makes DiscoverableTimeout check if discoverable is already pending
and don't attempt to set it once again which may cause discoverable to
be re-enabled when in fact the application just want to set the timeout
alone. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +13, -1 |
| 6324acf2 |
adapter: Track pending settings
This tracks settings being changed and in case the settings is already
pending considered it to be done. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +28, -2 |
| ee863d9d |
client: Make show command print DiscoverableTimeout
Controller XX:XX:XX:XX:XX:XX (public)
Name: Vudentz's T460s
Alias: Intel-1
Class: 0x004c010c
Powered: yes
Discoverable: no
DiscoverableTimeout: 0x00000000
Pairable: yes
UUID: Headset AG (00001112-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: SIM Access (0000112d-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0532
Discovering: no |
Luiz Augusto von Dentz |
7 years ago |
1 file, +1, -0 |
| 2796d545 |
client: Add discoverable-timeout command
This adds discoverable-timeout command which can be used to get/set
DiscoverableTimeout property:
[bluetooth]# discoverable-timeout 180
Changing discoverable-timeout 180 succeeded |
Luiz Augusto von Dentz |
7 years ago |
1 file, +43, -0 |
| 6e2eb99f |
shared/gatt-client: Fix crash on ext prop read failure
Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
ext_prop_read_cb (success=false, att_ecode=0 '\000', value=0x0,
length=0, user_data=0x72ad30) at src/shared/gatt-client.c:711
711 src/shared/gatt-client.c: No such file or directory.
(gdb) bt
0 ext_prop_read_cb (success=false, att_ecode=0 '\000', value=0x0,
length=0, user_data=0x72ad30)
at src/shared/gatt-client.c:711
1 0x000000000049b8cc in disc_att_send_op (data=0x7199b0)
at src/shared/att.c:547
2 0x000000000049cb44 in disconnect_cb (io=<optimized out>,
user_data=0x716070) at src/shared/att.c:580
3 0x00000000004a6405 in watch_callback (channel=<optimized out>,
cond=<optimized out>, user_data=<optimized out>)
at src/shared/io-glib.c:170
4 0x00007ffff78c704a in g_main_context_dispatch ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
5 0x00007ffff78c73f0 in ?? ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
6 0x00007ffff78c7712 in g_main_loop_run ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
7 0x000000000040c620 in main (argc=1, argv=0x7fffffffe5a8)
at src/main.c:781 |
Szymon Janc |
7 years ago |
1 file, +3, -0 |
| 9f4ce272 |
tools: Fix btmon-logger service unit
Bluetooth sockets can be only created in initial network namespace thus
btmon-logger will fail to open monitor socket with PrivateNetwork=true
since this sets up new network namespace for created process. |
Andrzej Kaczmarek |
7 years ago |
1 file, +0, -1 |
| 0b740353 |
emulator: Fix unsupported command for WRITE_LE_HOST_SUPPORTED
WRITE_LE_HOST_SUPPORTED command needs check for BTDEV_TYPE_LE as well. |
Jaganath Kanakkassery |
7 years ago |
1 file, +1, -0 |
| 9ded410e |
monitor: Allow Ellisys injection when reading from TTY |
Andrzej Kaczmarek |
7 years ago |
1 file, +2, -0 |
| 3f99c59c |
device: Fix loading devices without Service Changed CCC
This patch provides fix for loading devices which were saved before
support for storing Service Changed CCC was added (a0b886e26).
Without this fix, after daemon is upgraded from pre-a0b886e26 to
current version we do not indicate Service Changed to any previously
bonded device since "loaded" CCC value is 0. This means that even if
locla GATT database is changed, bonded peer can assume it did not
change and continue to access structure which yields unexpected
results and this is exactly what happens on iOS devices.
With this patch, if "ServiceChanged" group (added by mentioned commit)
does not exist in config file of a bonded device, we assume indications
for Service Changed characteristic value were enabled by peer as per
Core 5.0, Vol 3, Part G, 7.1:
"This Characteristic Value shall be configured to be indicated,
using the Client Characteristic Configuration descriptor by a
client" |
Andrzej Kaczmarek |
7 years ago |
1 file, +16, -0 |
| 390b93f9 |
monitor: Use BPF to filter packets by index
This uses a BPF filter to filter packets to specific index. |
Luiz Augusto von Dentz |
7 years ago |
3 files, +45, -7 |
| 0a080597 |
core: Set GATT.Cache default in init_defaults |
Luiz Augusto von Dentz |
7 years ago |
1 file, +2, -1 |
| eb978586 |
doc/gatt-api: Fix documentation of prepare-authorize
Make it clearer what values it can assume and also fit in 80 columns. |
Luiz Augusto von Dentz |
7 years ago |
1 file, +1, -1 |
| 34820d3b |
main.conf: Rename MinEncKeySize to KeySize
There is no conflicts, or other key/encryption related parameter, with
just calling this parameter KeySize so we don't have to just enter
initial for something one can assume it implicitly. |
Luiz Augusto von Dentz |
7 years ago |
4 files, +7, -8 |
| b47b36de |
gatt: Make ATT MTU configurable in main.conf
This adds a new entry to GATT group called ExchangeMTU. |
David Krauser |
7 years ago |
5 files, +25, -1 |
| e58da355 |
gatt: provide MTU in ReadValue and WriteValue
This includes the MTU value in ReadValue and WriteValue when acting as
a server.
Note: The actual data can be bigger than the MTU in case of WriteValue
in case of Long Value is written with Prepare + Execute. |
David Krauser |
7 years ago |
1 file, +7, -16 |