zephyr/subsys/bluetooth/mesh
Krzysztof Kopyściński 67a33ed1a0 Bluetooth: Mesh: fix Random value generation for Private Beacons
In `private_random_update`, when first beacon is advertised, there could
be a case when uptime is less then interval * 10s
(`priv_random.timestamp` is equal to 0 for first beacon). Then, Private
Random value will not be generated and will be set to all zeros.

New Private Random must also be generated  before Random Interval
expires, when KR or IVU flags are changed. Reset timestamp to 0 on
`bt_mesh_beacon_update` to generate new Random value.

Do not generate new private random if it won't be used (Private Beacon
state is not enabled).

Signed-off-by: Krzysztof Kopyściński <krzysztof.kopyscinski@codecoup.pl>
2023-05-30 06:30:25 -04:00
..
shell Bluetooth: Mesh: Shell: fix vnd model pub command 2023-05-23 13:03:18 +02:00
access.c Bluetooth: Mesh: Add API to store model's user data in settings work 2023-05-08 09:58:21 +02:00
access.h Bluetooth: Mesh: Add API to store model's user data in settings work 2023-05-08 09:58:21 +02:00
adv.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
adv.h Bluetooth: Mesh: add implementation for Proxy Solicitation 2023-03-06 13:52:15 +01:00
adv_ext.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
adv_legacy.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
app_keys.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
app_keys.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
beacon.c Bluetooth: Mesh: fix Random value generation for Private Beacons 2023-05-30 06:30:25 -04:00
beacon.h Bluetooth: Mesh: Private Beacons 2023-03-06 13:52:15 +01:00
blob.h Bluetooth: Mesh: BLOB models 2023-03-06 13:52:15 +01:00
blob_cli.c sys: util: migrate all files to DIV_ROUND_UP 2023-04-11 12:00:37 +02:00
blob_io_flash.c sys: util: migrate all files to DIV_ROUND_UP 2023-04-11 12:00:37 +02:00
blob_srv.c Bluetooth: Mesh: Fix recovery of WAITING_FOR_START BLOB Server state 2023-04-17 10:15:56 +02:00
cdb.c Bluetooth: Mesh: Remote provisioning 2023-03-06 13:52:15 +01:00
cdb.h Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
cfg.c Bluetooth: Mesh: Restore PRB state after reboot 2023-04-13 10:00:16 +02:00
cfg.h Bluetooth: Mesh: Restore default device configuration on reset 2021-07-02 16:58:21 +03:00
cfg_cli.c Bluetooth: Mesh: Add Composition Data Page 1 2023-03-06 13:52:15 +01:00
cfg_srv.c Bluetooth: Mesh: Add Composition Data Page 1 2023-03-06 13:52:15 +01:00
CMakeLists.txt Bluetooth: Mesh: add experimental support mbedtls psa 2023-04-17 16:31:20 +02:00
crypto.c Bluetooth: Mesh: split crypto on seclib dependent and independent parts 2023-04-17 16:31:20 +02:00
crypto.h Bluetooth: Mesh: split crypto on seclib dependent and independent parts 2023-04-17 16:31:20 +02:00
crypto_psa.c Bluetooth: Mesh: add experimental support mbedtls psa 2023-04-17 16:31:20 +02:00
crypto_tc.c Bluetooth: Mesh: split crypto on seclib dependent and independent parts 2023-04-17 16:31:20 +02:00
dfd.h Bluetooth: Mesh: DFD Server model 2023-03-06 13:52:15 +01:00
dfd_srv.c Bluetooth: Mesh: allow user to define BLOB ID for bt_mesh_dfu_cli_send 2023-03-20 13:38:40 +01:00
dfd_srv_internal.h Bluetooth: Mesh: DFD Server model 2023-03-06 13:52:15 +01:00
dfu.h Bluetooth: Mesh: DFU models 2023-03-06 13:52:15 +01:00
dfu_cli.c Bluetooth: Mesh: allow user to define BLOB ID for bt_mesh_dfu_cli_send 2023-03-20 13:38:40 +01:00
dfu_metadata.c Bluetooth: Mesh: split crypto on seclib dependent and independent parts 2023-04-17 16:31:20 +02:00
dfu_slot.c Bluetooth: Mesh: DFU models 2023-03-06 13:52:15 +01:00
dfu_slot.h Bluetooth: Mesh: Fix confusing DFU slot doc 2023-03-15 11:19:18 +01:00
dfu_srv.c Bluetooth: Mesh: fix FW Update procedure recovery on on DFU Server side 2023-03-20 13:38:40 +01:00
foundation.h Bluetooth: Mesh: add implementation for Proxy Solicitation 2023-03-06 13:52:15 +01:00
friend.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
friend.h Bluetooth: Mesh: Align capitalization for BT mesh 2021-07-13 11:23:54 -04:00
gatt_cli.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
gatt_cli.h Bluetooth: Mesh: Add Proxy Client Feature 2022-02-24 13:51:09 -08:00
health_cli.c Bluetooth: Mesh: Remove deprecated health API 2023-03-22 09:35:01 +01:00
health_srv.c Bluetooth: Mesh: Remove deprecated health API 2023-03-22 09:35:01 +01:00
heartbeat.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
heartbeat.h Bluetooth: Mesh: Fix Heartbeat Pub/Sub Count/Period Log calculation 2023-03-06 13:52:15 +01:00
Kconfig Bluetooth: Mesh: Use separate workq for storing mesh settings 2023-05-08 09:58:21 +02:00
large_comp_data_cli.c Bluetooth: Mesh: Add async API for Large Comp Data Client 2023-04-24 13:31:27 +02:00
large_comp_data_srv.c Bluetooth: Mesh: Add support for Models Metadata Page 128 2023-03-06 13:52:15 +01:00
lpn.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
lpn.h Bluetooth: Mesh: Remote provisioning 2023-03-06 13:52:15 +01:00
main.c Bluetooth: Mesh: Move storing of new prov data to settings work item 2023-04-29 12:24:28 +02:00
mesh.h iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
msg.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
msg.h Bluetooth: Mesh: Convert model_ackd_send and model_send to a common API 2022-10-19 16:05:16 +02:00
net.c Bluetooth: Mesh: Store device key candidate asynchronously 2023-04-29 12:24:28 +02:00
net.h Bluetooth: Mesh: Store device key candidate asynchronously 2023-04-29 12:24:28 +02:00
od_priv_proxy_cli.c Bluetooth: Mesh: add implementation for Proxy Solicitation 2023-03-06 13:52:15 +01:00
od_priv_proxy_srv.c Bluetooth: Mesh: add implementation for Proxy Solicitation 2023-03-06 13:52:15 +01:00
op_agg.c Bluetooth: Mesh: Add support for Opcodes Aggregator models 2023-03-06 13:52:15 +01:00
op_agg.h Bluetooth: Mesh: Add support for Opcodes Aggregator models 2023-03-06 13:52:15 +01:00
op_agg_cli.c Bluetooth: Mesh: Add support for Opcodes Aggregator models 2023-03-06 13:52:15 +01:00
op_agg_srv.c Bluetooth: Mesh: Add support for Opcodes Aggregator models 2023-03-06 13:52:15 +01:00
pb_adv.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
pb_gatt.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
pb_gatt.h Bluetooth: Mesh: Add Provisioner Over PB-GATT Support 2022-02-24 13:51:09 -08:00
pb_gatt_cli.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
pb_gatt_cli.h Bluetooth: Mesh: Add Provisioner Over PB-GATT Support 2022-02-24 13:51:09 -08:00
pb_gatt_srv.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
pb_gatt_srv.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
priv_beacon_cli.c Bluetooth: Mesh: Add async API to Private Beacon Client 2023-04-04 14:32:57 +02:00
priv_beacon_srv.c Bluetooth: Mesh: Private Beacons 2023-03-06 13:52:15 +01:00
prov.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
prov.h Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
prov_bearer.h Bluetooth: Mesh: Use default provisioning protocol timeout in RPR Client 2023-03-16 16:42:24 +01:00
prov_device.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
provisioner.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
provisioner.h Bluetooth: Mesh: Add Provisioner Over PB-GATT Support 2022-02-24 13:51:09 -08:00
proxy.h Bluetooth: Mesh: Private Beacons 2023-03-06 13:52:15 +01:00
proxy_cli.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
proxy_cli.h Bluetooth: Mesh: Add Proxy Client Feature 2022-02-24 13:51:09 -08:00
proxy_msg.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
proxy_msg.h Bluetooth: Mesh: Limit number of Bluetooth connections used by mesh 2022-11-25 10:45:07 +01:00
proxy_srv.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
rpl.c Bluetooth: Mesh: Remove outdated RPL entries in settings work item 2023-05-09 13:03:38 +02:00
rpl.h Bluetooth: Mesh: Align capitalization for BT mesh 2021-07-13 11:23:54 -04:00
rpr.h Bluetooth: Mesh: Remote provisioning 2023-03-06 13:52:15 +01:00
rpr_cli.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
rpr_srv.c Bluetooth: Mesh: get rid of host dependency for dh key for mesh 2023-04-17 16:31:20 +02:00
sar_cfg.c Bluetooth: Mesh: Transport SAR Configuration 2023-03-06 13:52:15 +01:00
sar_cfg_cli.c Bluetooth: Mesh: Transport SAR Configuration 2023-03-06 13:52:15 +01:00
sar_cfg_internal.h Bluetooth: Mesh: Transport SAR Configuration 2023-03-06 13:52:15 +01:00
sar_cfg_srv.c Bluetooth: Mesh: Add SAR srv persistence storage 2023-03-15 15:20:35 +01:00
settings.c Bluetooth: Mesh: Use separate workq for storing mesh settings 2023-05-08 09:58:21 +02:00
settings.h Bluetooth: Mesh: Store device key candidate asynchronously 2023-04-29 12:24:28 +02:00
sol_pdu_rpl_cli.c Bluetooth: Mesh: add implementation for Proxy Solicitation 2023-03-06 13:52:15 +01:00
sol_pdu_rpl_srv.c Bluetooth: Mesh: fix SRPL clearing 2023-05-22 15:26:17 +02:00
solicitation.c Bluetooth: Mesh: fix Proxy Solicitation build without CONFIG_BT_SETTINGS 2023-05-22 15:26:07 +02:00
solicitation.h Bluetooth: Mesh: add implementation for Proxy Solicitation 2023-03-06 13:52:15 +01:00
subnet.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
subnet.h iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
test.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
test.h Bluetooth: Mesh: Align capitalization for BT mesh 2021-07-13 11:23:54 -04:00
TODO Bluetooth: Mesh: Align capitalization for BT mesh 2021-07-13 11:23:54 -04:00
transport.c Bluetooth: Mesh: Add support for Opcodes Aggregator models 2023-03-06 13:52:15 +01:00
transport.h Bluetooth: Mesh: Opt ram of transport segment message 2022-02-21 22:06:38 -05:00
transport_legacy.c Bluetooth: Mesh: Transport SAR Configuration 2023-03-06 13:52:15 +01:00