zephyr/subsys/bluetooth/mesh
Dominik Ermel 49f5598835 Bluetooth: Mesh: Improve logic for serving devices erase capabilities
The commit fixes issue where flash_area_flatten has been used where
code was only supposed to erase devices by hardware requirement prior
to write, by replacing the call with flash_area_erase and supporting
logic to select proper path.
There have been following Kconfig options added:
 - CONFIG_BT_MESH_BLOB_IO_FLASH_WITHOUT_ERASE
 - CONFIG_BT_MESH_BLOB_IO_FLASH_WITH_ERASE
that are available for user depending on devices in the system and allow
to turn off paths that are not used by BLOB IO; for example if user
never writes to device with erase CONFIG_BT_MESH_BLOB_IO_FLASH_WITH_ERASE
will disable the path.
Both Kconfig options are y by default and enable all paths.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2025-01-23 19:25:27 +01:00
..
shell bluetooth: mesh: shell: eliminate ctx_shell usage 2025-01-14 10:56:16 +01:00
access.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
access.h Bluetooth: Mesh: analyze multicast model rx status 2024-03-25 18:39:19 -04:00
adv.c Bluetooth: Mesh: Use relay bufs/pool for brg_cfg 2024-11-19 10:12:19 -05:00
adv.h Bluetooth: Mesh: Fix Assert in bt_mesh_adv_unref when messages to a proxy 2025-01-17 06:43:08 +01:00
adv_ext.c Bluetooth: Mesh: Use relay bufs/pool for brg_cfg 2024-11-19 10:12:19 -05:00
adv_legacy.c Bluetooth: Mesh: Introduce separate workq for ADV EXT 2024-11-05 15:24:31 -06:00
app_keys.c Bluetooth: Mesh: Use memslab replace with net_buf_pool 2023-12-08 20:19:10 +00:00
app_keys.h Bluetooth: Mesh: refactor mesh to use both tinycrypt and psa based crypto 2023-06-17 07:46:03 -04:00
beacon.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
beacon.h Bluetooth: Mesh: Remove bt_mesh_beacon_priv_random_get as unused 2023-08-24 22:09:57 +01:00
blob.h Bluetooth: Mesh: add Kconfig options for BLOB chunk size 2024-08-20 14:45:57 +02:00
blob_cli.c Bluetooth: Mesh: add API to set chunk send interval 2024-09-12 14:50:25 +02:00
blob_io_flash.c Bluetooth: Mesh: Improve logic for serving devices erase capabilities 2025-01-23 19:25:27 +01:00
blob_srv.c Bluetooth: Mesh: Fix uninitialized field when cancelling transfer blob 2024-08-23 09:53:09 +02:00
brg_cfg.c Bluetooth: Mesh: Fix out of bounds write 2024-10-08 18:09:57 -04:00
brg_cfg.h Bluetooth: Mesh: Remove duplicate brg declaration 2024-10-02 14:54:13 +01:00
brg_cfg_cli.c bluetooth: mesh: brg_cfg_cli: Initialize prohibited value 2024-11-28 09:43:48 +01:00
brg_cfg_srv.c Bluetooth: Mesh: Add prefix to Subnet Bridge API 2024-10-02 14:54:13 +01:00
cdb.c Bluetooth: Mesh: Prevent duplicate cdb appkeys 2024-03-06 10:21:27 +00:00
cdb.h
cfg.c everywhere: replace #if IS_ENABLED() as per docs 2024-06-28 07:20:32 -04:00
cfg.h
cfg_cli.c Bluetooth: Mesh: Fix cfg_cli KRP not working for key_net_idx != 0 2024-11-29 14:49:34 +01:00
cfg_srv.c Bluetooth: Mesh: Rename mesh test primitives 2024-08-27 15:14:08 -04:00
CMakeLists.txt Bluetooth: Mesh: Adds subnet bridge states 2024-09-17 05:22:32 -04:00
crypto.c Bluetooth: Mesh: fix proxy solicitation 2023-10-12 18:07:50 +03:00
crypto.h Bluetooth: Mesh: refactor mesh to use both tinycrypt and psa based crypto 2023-06-17 07:46:03 -04:00
crypto_psa.c Bluetooth: Mesh: no more tinycrypt in ble mesh tfm image 2023-11-08 15:09:50 +00:00
crypto_tc.c bluetooth: fixes shadow variables 2023-08-17 13:00:09 +02:00
delayable_msg.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
delayable_msg.h Bluetooth: Mesh: access tx msg randomizer 2023-12-11 09:50:18 +01:00
dfd.h
dfd_srv.c bluetooth: mesh: Remove assertion for Received List message PDU size 2025-01-15 22:57:01 +01:00
dfd_srv_internal.h
dfu.h
dfu_cli.c Bluetooth: Mesh: Check that required models exists on the same element 2024-12-04 09:23:44 +01:00
dfu_metadata.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
dfu_slot.c Bluetooth: Mesh: Ignore return value of settings_delete 2023-11-20 09:23:56 +01:00
dfu_slot.h Bluetooth: Mesh: Add support for Upload OOB Start 2023-09-18 10:55:20 +01:00
dfu_srv.c Bluetooth: Mesh: Check that required models exists on the same element 2024-12-04 09:23:44 +01:00
foundation.h tests: bluetooth: mesh: Removed native_posix and renamed sim_ids 2024-09-17 05:22:32 -04:00
friend.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
friend.h
gatt.h bluetooth: mesh: gatt: Move generic GATT related defines to gatt.h 2024-11-27 22:51:29 -05:00
gatt_cli.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
gatt_cli.h
health_cli.c bluetooth: mesh: health_cli: Add callback to pull msg for periodic pub 2024-12-20 10:18:54 +01:00
health_srv.c Bluetooth: Mesh: Use memslab replace with net_buf_pool 2023-12-08 20:19:10 +00:00
heartbeat.c bluetooth: fixes shadow variables 2023-08-17 13:00:09 +02:00
heartbeat.h
Kconfig Bluetooth: Mesh: Improve logic for serving devices erase capabilities 2025-01-23 19:25:27 +01:00
keys.h Bluetooth: Mesh: add tf-m support for ble mesh 2023-06-19 15:04:17 +02:00
large_comp_data_cli.c Bluetooth: Mesh: Split Model Structure 2023-11-16 16:52:14 +01:00
large_comp_data_srv.c Bluetooth: Mesh: add extension config server by lcd server 2024-06-24 09:44:58 +02:00
lpn.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
lpn.h Bluetooth: Mesh: Add full virtual addresses support 2023-06-17 08:00:55 -04:00
main.c Bluetooth: Mesh: enable scanner before enabling proxy gatt 2024-12-19 12:37:54 +01:00
mesh.h iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
msg.c Bluetooth: Mesh: Make bt_mesh_model as rodata 2023-11-16 16:52:14 +01:00
msg.h Bluetooth: Mesh: Make bt_mesh_model as rodata 2023-11-16 16:52:14 +01:00
net.c Bluetooth: Mesh: Use net xmit params for bridge 2024-11-19 10:12:19 -05:00
net.h lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
od_priv_proxy.h Bluetooth: Mesh: Store priv proxy in sep entry 2023-09-11 19:58:05 +02:00
od_priv_proxy_cli.c Bluetooth: Mesh: Split Model Structure 2023-11-16 16:52:14 +01:00
od_priv_proxy_srv.c Bluetooth: Mesh: add extension config server by private beacon server 2024-06-24 09:44:58 +02:00
op_agg.c Bluetooth: Mesh: Op agg mdl coex 2023-10-20 15:16:33 +02:00
op_agg.h Bluetooth: Mesh: Make bt_mesh_model as rodata 2023-11-16 16:52:14 +01:00
op_agg_cli.c Bluetooth: Mesh: Make element as rodata 2023-11-20 09:22:55 +01:00
op_agg_srv.c bluetooth: mesh: fix typo 2024-06-25 10:27:23 -04:00
pb_adv.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
pb_gatt.c Bluetooth: Mesh: Use memslab replace with net_buf_pool 2023-12-08 20:19:10 +00:00
pb_gatt.h
pb_gatt_cli.c bluetooth: mesh: fix mesh pb gatt cli uuid usage 2025-01-14 00:00:44 +01:00
pb_gatt_cli.h
pb_gatt_srv.c bluetooth: mesh: gatt: Move generic GATT related defines to gatt.h 2024-11-27 22:51:29 -05:00
pb_gatt_srv.h
priv_beacon.h Bluetooth: Mesh: Store priv beacon in sep entry 2023-09-11 19:58:05 +02:00
priv_beacon_cli.c Bluetooth: Mesh: Fix async behavior of Private Beacon Client API 2023-11-20 09:23:56 +01:00
priv_beacon_srv.c Bluetooth: Mesh: Check that required models exists on the same element 2024-12-04 09:23:44 +01:00
prov.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
prov.h everywhere: replace #if IS_ENABLED() as per docs 2024-06-28 07:20:32 -04:00
prov_bearer.h Bluetooth: Mesh: Add ext timeout in PB for OOB I/O 2023-08-21 10:55:43 +02:00
provisionee.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
provisioner.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
provisioner.h
proxy.h bluetooth: mesh: gatt: Move generic GATT related defines to gatt.h 2024-11-27 22:51:29 -05:00
proxy_cli.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
proxy_cli.h Bluetooth: Mesh: Use memslab replace with net_buf_pool 2023-12-08 20:19:10 +00:00
proxy_msg.c Bluetooth: Mesh: Fix Assert in bt_mesh_adv_unref when messages to a proxy 2025-01-17 06:43:08 +01:00
proxy_msg.h Bluetooth: Mesh: Introduce separate workq for ADV EXT 2024-11-05 15:24:31 -06:00
proxy_srv.c Bluetooth: Mesh: use settings priority feature 2025-01-14 00:00:56 +01:00
rpl.c Bluetooth: Mesh: Refine Mesh store logic 2024-10-16 09:56:26 +02:00
rpl.h Bluetooth: Mesh: Refine Mesh store logic 2024-10-16 09:56:26 +02:00
rpr.h
rpr_cli.c Bluetooth: Remove legacy debug symbols 2024-05-07 09:49:27 +02:00
rpr_srv.c Bluetooth: Remove legacy debug symbols 2024-05-07 09:49:27 +02:00
sar_cfg.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
sar_cfg_cli.c Bluetooth: Mesh: Fix dev key selection in SAR Cfg Client 2024-03-04 14:03:09 +01:00
sar_cfg_internal.h bluetooth: mesh: fix typo 2024-06-25 10:27:23 -04:00
sar_cfg_srv.c Bluetooth: Mesh: Split Model Structure 2023-11-16 16:52:14 +01:00
settings.c Bluetooth: Mesh: use settings priority feature 2025-01-14 00:00:56 +01:00
settings.h Bluetooth: Mesh: Adds subnet bridge states 2024-09-17 05:22:32 -04:00
sol_pdu_rpl_cli.c Bluetooth: Mesh: Split Model Structure 2023-11-16 16:52:14 +01:00
sol_pdu_rpl_srv.c Bluetooth: Mesh: Make bt_mesh_model as rodata 2023-11-16 16:52:14 +01:00
solicitation.c Bluetooth: Mesh: fix SRPL always accepting sol pdus with sseq 0 2024-01-31 10:34:06 -06:00
solicitation.h
statistic.c Bluetooth: Mesh: Use memslab replace with net_buf_pool 2023-12-08 20:19:10 +00:00
statistic.h Bluetooth: Mesh: Use memslab replace with net_buf_pool 2023-12-08 20:19:10 +00:00
subnet.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
subnet.h lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
test.c
test.h
testing.c Bluetooth: Mesh: Rename mesh test primitives 2024-08-27 15:14:08 -04:00
testing.h Bluetooth: Mesh: Rename mesh test primitives 2024-08-27 15:14:08 -04:00
transport.c bluetooth: mesh: rpl: fix rpl for subnet bridge 2024-09-17 05:22:32 -04:00
transport.h Bluetooth: Mesh: Add full virtual addresses support 2023-06-17 08:00:55 -04:00
va.c lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
va.h bluetooth: mesh: fix typo 2024-06-25 10:27:23 -04:00