zephyr/subsys
Michał Narajowski 497d9df96a Bluetooth: Mesh: Send Link Close message when closing link
Instead of silently closing the link we should send a Link Close message
three times before resetting provisioning state.

From Mesh Profile Specification v1.0.1.:
```
5.3.1.4.3 Link Close message

The Link Close message is used to close a link.
```

```
5.3.2 Link Establishment procedure

The device shall start the link timer, set to 60 seconds, when the link
is open. When the link timer expires, then the device shall close the
link.
```

```
5.3.3 Generic Provisioning behavior

If the sender does not receive a Transaction Acknowledgment message
within 30 seconds after sending the first message in a transaction,
the sender shall cancel the transaction, cancel the provisioning
process and close the link.
```

From Mesh Profile Test Specification p6:
```
MESH/PVNR/PBADV/BV-01-C

Test Procedure:
[...]
6. The IUT is induced to send a Link Close message with the Reason field
set to 0x02 to terminate the link. The message is sent at least three
times to ensure the message is received by the Lower Tester.
```

Signed-off-by: Michał Narajowski <michal.narajowski@codecoup.pl>
2021-03-15 16:54:44 +02:00
..
bluetooth Bluetooth: Mesh: Send Link Close message when closing link 2021-03-15 16:54:44 +02:00
canbus canbus: canopen: program: read flash in 32 byte chunks 2021-01-20 14:18:03 -06:00
console kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
cpp
debug debug: coredump: improve delayed logging 2021-03-09 07:04:56 -05:00
demand_paging mmu: backing stores reserve page fault room 2021-01-23 19:47:23 -05:00
dfu modules: introduce MCUBOOT_BOOTUTIL module 2021-01-14 18:03:38 +01:00
disk disk: stm32: Select USE_STM32_HAL_SD_EX on stm32l4 2021-02-24 18:10:09 -06:00
emul emul: Add an emulator for the eSPI Host 2021-01-20 17:49:19 -05:00
fb
fs fs: shell: Remove unneeded flags from fs_open calls 2021-03-04 06:10:58 -05:00
ipc ipc: Make log level configurable for RPMsg service and backend 2021-03-06 09:09:50 -06:00
jwt
logging logging: swo: Add option to set custom reference frequency 2021-03-15 10:23:10 +01:00
lorawan lorawan: add callback for datarate changes 2021-02-28 16:36:57 -05:00
mgmt mgmt/osdp: Fix coverity identified logical dead-code 2021-03-10 10:15:48 -05:00
net net: sockets: Provide close method for packet sockets 2021-03-15 15:17:52 +02:00
power power: Get rid of deep sleep and sleep concepts 2021-03-07 07:59:53 -05:00
random random: ctr_drbg: Fix the error path in sys_csrand_get 2020-12-01 10:20:06 -06:00
settings settings: Handle unhandled error 2021-02-03 08:37:11 -05:00
shell shell: use visitor to get required devices 2021-03-11 08:53:18 -05:00
stats misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
storage storage/stream/flash: Failed write of reminder rewinds buffer offset 2021-03-03 11:40:11 +03:00
task_wdt task_wdt: add task-level watchdog subsystem 2021-03-15 12:24:54 +01:00
testsuite tests: ztest: provide test execution times per ztest testcase 2021-03-11 07:52:17 -05:00
timing timing: fix timing_stop() ref counting 2021-01-04 12:15:30 +01:00
tracing tracing: add RAM backend 2021-03-06 07:33:59 -05:00
usb kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
CMakeLists.txt task_wdt: add task-level watchdog subsystem 2021-03-15 12:24:54 +01:00
Kconfig task_wdt: add task-level watchdog subsystem 2021-03-15 12:24:54 +01:00