Bluetooth: Mesh: Check response address in Configuration Client

The Configuration Client doesn't check the address in a received
response. This means that a response from any device will be accepted.

This change ensures that the correct response will be accepted.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
Pavel Vasilyev 2021-03-24 12:59:45 +01:00 committed by Anas Nashif
commit 8bcc85b38c
2 changed files with 51 additions and 43 deletions

View file

@ -28,8 +28,9 @@ struct bt_mesh_cfg_cli {
/* Internal parameters for tracking message responses. */
struct k_sem op_sync;
uint32_t op_pending;
uint32_t op_pending;
void *op_param;
uint16_t op_addr;
};
/** @def BT_MESH_MODEL_CFG_CLI