zephyr/subsys/bluetooth/host
Johan Hedberg 2b73c97d68 Bluetooth: Mesh: Fix IV Update duration tracking
When the IV Update state enters Normal operation or IV Update in
Progress, we need to keep track of how many hours has passed in the
state, since the specification requires us to remain in the state at
least for 96 hours (Update in Progress has an additional upper limit
of 144 hours).

In order to fulfil the above requirement, even if the node might be
powered off once in a while, we need to store persistently how many
hours the node has been in the state. This doesn't necessarily need to
happen every hour (thanks to the flexible duration range). The exact
cadence will depend a lot on the ways that the node will be used and
what kind of power source it has.

Since there is no single optimal answer, this patch adds a new
configuration option, which allows specifying a divider, i.e. how many
intervals the 96 hour minimum gets split into. After each interval the
duration that the node has been in the current state gets stored to
flash. E.g. the default value of 4 means that the state is saved every
24 hours (96 / 4).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2018-05-17 17:30:03 +03:00
..
mesh Bluetooth: Mesh: Fix IV Update duration tracking 2018-05-17 17:30:03 +03:00
a2dp_internal.h
a2dp.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
at.c tests: bluetooth/at: Fix string signedness issues 2017-09-26 12:56:50 +03:00
at.h tests: bluetooth/at: Fix string signedness issues 2017-09-26 12:56:50 +03:00
att_internal.h Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
att.c Bluetooth: UUID: Remove macros defining 16 bit values 2018-02-13 13:33:48 +02:00
avdtp_internal.h
avdtp.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
CMakeLists.txt Bluetooth: Remove bt_storage API 2018-05-04 17:26:05 -04:00
conn_internal.h Bluetooth: Compress bt_keys struct 2018-05-04 17:26:05 -04:00
conn.c Bluetooth: Compress bt_keys struct 2018-05-04 17:26:05 -04:00
crypto.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
crypto.h
ecc.h
gatt_internal.h Bluetooth: GATT: Add support to persistent CCC config 2018-05-11 14:55:42 +03:00
gatt.c Bluetooth: GATT: Make BT_GATT_CHARACTERISTIC declare its value 2018-05-14 18:51:22 +03:00
hci_core.c subsys: bluetooth: Remove deprcated k_call_stacks_analyze API 2018-05-15 13:43:00 +03:00
hci_core.h Bluetooth: Remove unused rx_prio_queue 2018-05-12 21:28:09 +03:00
hci_ecc.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
hci_ecc.h
hci_raw_internal.h
hci_raw.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
hfp_hf.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
hfp_internal.h Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
Kconfig Bluetooth: Add support for persistent pairing keys storage 2018-05-04 17:26:05 -04:00
keys_br.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
keys.c Bluetooth: Add support for persistent pairing keys storage 2018-05-04 17:26:05 -04:00
keys.h Bluetooth: Compress bt_keys struct 2018-05-04 17:26:05 -04:00
l2cap_br.c Bluetooth: L2CAP: Use BR definition on connection success 2018-04-03 14:30:10 +03:00
l2cap_internal.h Bluetooth: L2CAP: Update LE specific connection result values 2018-04-03 14:30:10 +03:00
l2cap.c net: buf: Redesigned API with split data and meta-data 2018-02-10 09:20:42 +02:00
monitor.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
monitor.h Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
rfcomm_internal.h Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
rfcomm.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
sdp_internal.h
sdp.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
settings.c Bluetooth: Add support for persistent pairing keys storage 2018-05-04 17:26:05 -04:00
settings.h Bluetooth: Add support for persistent pairing keys storage 2018-05-04 17:26:05 -04:00
smp_null.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
smp.c Bluetooth: Compress bt_keys struct 2018-05-04 17:26:05 -04:00
smp.h
testing.c Bluetooth: btp: Add event indicating expiration of incomp timer 2018-01-03 10:48:13 +01:00
testing.h Bluetooth: btp: Add event indicating expiration of incomp timer 2018-01-03 10:48:13 +01:00
uuid.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00