zephyr/subsys/bluetooth/host
Johan Hedberg 59bbab99a8 Bluetooth: Mesh: Fix cyclic rewriting to flash when restoring state
When we're reading the initial state from flash, calling the various
internal functions was leading to scheduling a rewrite to flash. Add
an extra parameter to the appropriate functions so they know when
they're called due to active configuration by a configuration client,
and when they're called due to restoring the state from flash.

This was not only wasting flash space, but also causing erroneous
behavior with the FCB settings backend if there was an intermediate
node reset operation stored, followed by a reprovisioning. The node
reset entries would cause them to be re-appened after the second valid
provisioning, leading to an incomplete node state.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2018-06-27 15:54:40 +03:00
..
mesh Bluetooth: Mesh: Fix cyclic rewriting to flash when restoring state 2018-06-27 15:54:40 +03:00
a2dp_internal.h
a2dp.c
at.c
at.h
att_internal.h
att.c Bluetooth: att: Add Kconfig option to disable Multiple Read operation 2018-06-27 12:50:24 +03:00
avdtp_internal.h
avdtp.c
CMakeLists.txt Bluetooth: Remove bt_storage API 2018-05-04 17:26:05 -04:00
conn_internal.h Bluetooth: Fix central from failing to start encryption 2018-06-22 18:03:43 +02:00
conn.c Bluetooth: hci_core: Exclude scan related code if non-observer 2018-06-27 12:50:24 +03:00
crypto.c
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: att: Add Kconfig option to disable Multiple Read operation 2018-06-27 12:50:24 +03:00
hci_core.c Bluetooth: hci_core: Exclude scan related code if non-observer 2018-06-27 12:50:24 +03:00
hci_core.h Bluetooth: Export HCI command APIs through public hci.h header file 2018-06-13 21:04:27 +02:00
hci_ecc.c
hci_ecc.h
hci_raw_internal.h
hci_raw.c
hfp_hf.c
hfp_internal.h
Kconfig bluetooth: Make controller crypto functions optional 2018-06-27 12:12:45 +02:00
keys_br.c
keys.c Bluetooth: Add support for persistent pairing keys storage 2018-05-04 17:26:05 -04:00
keys.h Bluetooth: Fix central from failing to start encryption 2018-06-22 18:03:43 +02: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 Bluetooth: L2CAP: Add support for dynamically allocated PSM values 2018-05-18 12:39:58 +03:00
monitor.c
monitor.h
rfcomm_internal.h
rfcomm.c
sdp_internal.h
sdp.c
settings.c Bluetooth: Fix unchecked settings value lengths 2018-06-04 17:05:07 -04:00
settings.h Bluetooth: Add support for persistent pairing keys storage 2018-05-04 17:26:05 -04:00
smp_null.c
smp.c Bluetooth: Fix central from failing to start encryption 2018-06-22 18:03:43 +02:00
smp.h Bluetooth: Fix central from failing to start encryption 2018-06-22 18:03:43 +02:00
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