Skip to content

Commit 8bcc85b

Browse files
PavelVPVnashif
authored andcommitted
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 <[email protected]>
1 parent 23ef49b commit 8bcc85b

File tree

2 files changed

+51
-43
lines changed

2 files changed

+51
-43
lines changed

include/bluetooth/mesh/cfg_cli.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ struct bt_mesh_cfg_cli {
2828

2929
/* Internal parameters for tracking message responses. */
3030
struct k_sem op_sync;
31-
uint32_t op_pending;
31+
uint32_t op_pending;
3232
void *op_param;
33+
uint16_t op_addr;
3334
};
3435

3536
/** @def BT_MESH_MODEL_CFG_CLI

0 commit comments

Comments
 (0)