zephyr/subsys/bluetooth/host
Joakim Andersson 2e6983c0f5 Bluetooth: GATT: Fix invalid DB hast written to settings storage
Fix issue where an invalid (all zeroes) hash was written to settings
storage on reset. This caused the old value to written to zeroes, before
being written back to it's original value again immediately after.
This causes excessive flash wear.

This happens because the check if (k_delayed_work_remaining) returns the
amount of time until the work will execute. When that time has run out
the time is zero, but the work has not yet been executed.
We then write the invalid hash to flash, and then once the work-item
executes it will write the correct value.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2020-02-18 13:55:33 +02:00
..
a2dp_internal.h
a2dp.c
aes_ccm.c Bluetooth: Move Mesh CCM into a separate module 2020-01-30 12:41:45 +02:00
at.c
at.h
att_internal.h Bluetooth: GATT: Allocate request from a memory slab 2020-01-09 19:20:21 +01:00
att.c Bluetooth: ATT: Fix ATT corrupting mem_slab structure after free 2020-01-28 17:55:38 +02:00
avdtp_internal.h
avdtp.c Bluetooth: L2CAP: Make channel ops const 2019-12-19 11:28:24 +02:00
CMakeLists.txt Bluetooth: Move Mesh CCM into a separate module 2020-01-30 12:41:45 +02:00
conn_internal.h Bluetooth: host: Reserve conn object for connectable advertiser 2020-01-14 14:27:31 +01:00
conn.c Bluetooth: host: Fix handling of scan start failed 2020-02-11 23:56:47 +02:00
crypto.c Bluetooth: Fix infinite recursion in host-based bt_rand 2020-01-31 18:33:06 +01:00
crypto.h
ecc.h
gatt_internal.h Bluetooth: GATT: Use check_perm to check CCC permission 2019-09-19 21:12:39 +03:00
gatt.c Bluetooth: GATT: Fix invalid DB hast written to settings storage 2020-02-18 13:55:33 +02:00
hci_core.c Bluetooth: GATT: Fix not clearing stored data when unpairing 2020-02-14 14:15:11 +02:00
hci_core.h Bluetooth: host: Handle starting roles with different random address 2020-01-20 18:58:02 +02:00
hci_ecc.c kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
hci_ecc.h
hci_raw_internal.h
hci_raw.c Bluetooth: Always use full path to hci_driver.h 2020-01-16 19:20:39 -05:00
hfp_hf.c Bluetooth: Remove usage of BT_BUF_USER_DATA_MIN 2019-11-28 13:35:11 +02:00
hfp_internal.h
Kconfig bluetooth: host: fix RPMsg driver headroom configuration 2020-02-11 13:23:50 +02:00
Kconfig.gatt Bluetooth: GATT: Allocate request from a memory slab 2020-01-09 19:20:21 +01:00
Kconfig.l2cap kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
keys_br.c
keys.c bluetooth: host: Fix simultaneous pairings getting the same keys slot 2020-01-31 12:50:03 +02:00
keys.h Bluetooth: host: Rethink how unpair all works 2020-01-04 14:10:46 +01:00
l2cap_br.c Bluetooth: Always use full path to hci_driver.h 2020-01-16 19:20:39 -05:00
l2cap_internal.h Bluetooth: L2CAP: Add destroy callback to fixed L2CAP channels 2020-01-28 17:55:38 +02:00
l2cap.c Bluetooth: L2CAP: Fix not queueing in case there are no credits 2020-02-10 22:08:14 +02:00
monitor.c bluetooth: monitor: don't build backend if minimal 2019-10-01 09:24:02 -04:00
monitor.h
rfcomm_internal.h Bluetooth: hci_raw: Add support for specifying buffer headroom 2019-11-20 19:29:06 +01:00
rfcomm.c kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
sdp_internal.h
sdp.c Bluetooth: L2CAP: Make channel ops const 2019-12-19 11:28:24 +02:00
settings.c Bluetooth: Setting: Make bt_settings_encode_key take a const address 2020-02-14 14:15:11 +02:00
settings.h Bluetooth: Setting: Make bt_settings_encode_key take a const address 2020-02-14 14:15:11 +02:00
smp_null.c Bluetooth: L2CAP: Add destroy callback to fixed L2CAP channels 2020-01-28 17:55:38 +02:00
smp.c Bluetooth: SMP: Fix failing to pass SM/MAS/PROT/BV-01-C 2020-02-14 11:55:14 +02:00
smp.h Bluetooth: Host: Fix issues with host IRK handling 2019-12-20 15:45:34 +01:00
testing.c
testing.h
uuid.c Bluetooth: UUID: Expose bt_uuid_to_str to application 2019-12-09 17:15:05 +02:00