zephyr/subsys/bluetooth/mesh
Trond Einar Snekvik 878043aff1 Bluetooth: Mesh: Change friend_cred decision point to friend selection
The network layer previously decided to use the friend credentials if
there was an established friendship. During the friendship setup phase,
the friendship is not considered established until the LPN receives the
first friend poll. Before this happens, the LPN should send a friend
poll message, encrypted with the friendship credentials. This wrongly
gets encrypted with the master credentials.

Change the decision point to whether the LPN has selected a friend,
which happens after the friend offer, and before the friend poll. This
will remain set for the duration of the friendship.

Signed-off-by: Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
2021-05-17 13:36:24 +03:00
..
access.c Bluetooth: Mesh: Rework publication timer 2021-04-15 20:31:44 +02:00
access.h Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
adv_ext.c Bluetooth: Mesh: adv_ext: update delayable work 2021-04-28 11:48:59 +03:00
adv_legacy.c Bluetooth: Mesh: Extended advertising support 2020-12-09 12:57:59 +02:00
adv.c Bluetooth: Mesh: Extended advertising support 2020-12-09 12:57:59 +02:00
adv.h Bluetooth: Mesh: Extended advertising support 2020-12-09 12:57:59 +02:00
app_keys.c Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
app_keys.h Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
beacon.c Bluetooth: Mesh: Convert beacon timer to delayable work 2021-04-16 15:34:30 -04:00
beacon.h Bluetooth: Mesh: Isolate cryptographic material 2020-10-22 14:36:02 +03:00
cdb.c Bluetooth: Mesh: Add CDB handle key refresh phase 2021-03-04 14:10:56 +02:00
cdb.h Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
cfg_cli.c Bluetooth: Mesh: Introduce acknowledged message API 2021-04-08 13:44:24 +02:00
cfg_srv.c Bluetooth: Mesh: Report configured LPNTimeout in cfg_srv 2021-04-16 15:31:38 -04:00
cfg.c Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
cfg.h Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
CMakeLists.txt Bluetooth: Mesh: Introduce acknowledged message API 2021-04-08 13:44:24 +02:00
crypto.c Bluetooth: Mesh: Isolate cryptographic material 2020-10-22 14:36:02 +03:00
crypto.h Bluetooth: Mesh: Isolate cryptographic material 2020-10-22 14:36:02 +03:00
foundation.h Bluetooth: Mesh: Encapsulate feature config 2020-11-09 11:23:34 +02:00
friend.c Bluetooth: Mesh: Core delayable work updates 2021-04-28 11:48:59 +03:00
friend.h Bluetooth: Mesh: Isolate cryptographic material 2020-10-22 14:36:02 +03:00
health_cli.c Bluetooth: Mesh: Introduce acknowledged message API 2021-04-08 13:44:24 +02:00
health_srv.c bluetooth: mesh: health_srv: update k_work API 2021-03-10 15:18:10 +02:00
heartbeat.c bluetooth: mesh: update heartbeat subscription work API 2021-03-10 20:47:02 +02:00
heartbeat.h Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
Kconfig Bluetooth: Mesh: Add option to include bt name in scan rsp 2021-05-06 19:20:00 +03:00
lpn.c Bluetooth: Mesh: move lpn logic for msg_received inside lpn.c 2021-04-16 15:33:09 -04:00
lpn.h Bluetooth: Mesh: move lpn logic for msg_received inside lpn.c 2021-04-16 15:33:09 -04:00
main.c Bluetooth: Mesh: Allow to be NODE when PROVISIONER is enabled 2021-04-29 09:52:35 -04:00
mesh.h Bluetooth: Mesh: Make address defines public 2020-12-12 14:15:47 +02:00
msg.c Bluetooth: Mesh: Introduce acknowledged message API 2021-04-08 13:44:24 +02:00
net.c Bluetooth: Mesh: Change friend_cred decision point to friend selection 2021-05-17 13:36:24 +03:00
net.h Bluetooth: Mesh: Core delayable work updates 2021-04-28 11:48:59 +03:00
pb_adv.c Bluetooth: Mesh: pb_adv: update delayable work 2021-04-28 11:48:59 +03:00
pb_gatt.c Bluetooth: Mesh: pb_gatt: update delayable work 2021-04-28 11:48:59 +03:00
prov_bearer.h
prov_device.c Bluetooth: Mesh: split prov.c into two separate modules 2020-10-28 12:53:09 +02:00
prov.c Bluetooth: Mesh: Provisioning output count number should be at least 1 2021-04-23 14:58:56 +02:00
prov.h Bluetooth: Mesh: Fixes wrong prov pointer clear 2020-11-19 13:28:28 +02:00
provisioner.c Bluetooth: Mesh: Add CDB handle key refresh phase 2021-03-04 14:10:56 +02:00
provisioner.h Bluetooth: Mesh: split prov.c into two separate modules 2020-10-28 12:53:09 +02:00
proxy.c Bluetooth: Mesh: Add option to include bt name in scan rsp 2021-05-06 19:20:00 +03:00
proxy.h Bluetooth: Mesh: Extended advertising support 2020-12-09 12:57:59 +02:00
rpl.c Bluetooth: Mesh: Perform replay check on SeqAuth 2021-03-11 12:36:04 +02:00
rpl.h Bluetooth: Mesh: Perform replay check on SeqAuth 2021-03-11 12:36:04 +02:00
settings.c Bluetooth: Mesh: Add VA flag to generic pending flags 2021-05-17 13:23:30 +03:00
settings.h Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
shell.c Bluetooth: Mesh: Composition data page 0 traversal 2021-04-06 16:19:13 +03:00
subnet.c Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
subnet.h Bluetooth: Mesh: Break up mesh settings 2021-01-14 16:38:50 +02:00
test.c
test.h
TODO
transport.c Bluetooth: Mesh: transport: update delayable work 2021-04-28 11:48:59 +03:00
transport.h Bluetooth: Mesh: Make internal virtual addr pointers const 2021-03-12 16:17:27 +02:00