Bluetooth: Mesh: Fix unpacking of hb_pub status

Fixes incorrect unpacking of Heartbeat Publication status
messages on the Configuration client.

Reference to packing format: MshPRTv1.1 section 4.3.2.63

Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
This commit is contained in:
Anders Storrø 2023-10-25 11:08:21 +02:00 committed by Carles Cufí
commit 05774c5d76

View file

@ -950,8 +950,8 @@ static int hb_pub_status(struct bt_mesh_model *model,
pub.count = net_buf_simple_pull_u8(buf);
pub.period = net_buf_simple_pull_u8(buf);
pub.ttl = net_buf_simple_pull_u8(buf);
pub.feat = net_buf_simple_pull_u8(buf);
pub.net_idx = net_buf_simple_pull_u8(buf);
pub.feat = net_buf_simple_pull_le16(buf);
pub.net_idx = net_buf_simple_pull_le16(buf) & 0xfff;
if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_HEARTBEAT_PUB_STATUS,
ctx->addr, (void **)&param)) {