Bluetooth: Mesh: Fix Solicitation RPL PDU Server compilation

A pointer to the key struct should be passed after the PSA support has
been added.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
Pavel Vasilyev 2023-09-01 15:19:13 +02:00 committed by Carles Cufí
commit d36b7f4de0

View file

@ -153,12 +153,12 @@ static bool sol_pdu_decrypt(struct bt_mesh_subnet *sub, void *data)
net_buf_simple_init(out, 0); net_buf_simple_init(out, 0);
net_buf_simple_add_mem(out, in->data, in->len); net_buf_simple_add_mem(out, in->data, in->len);
err = bt_mesh_net_obfuscate(out->data, 0, sub->keys[i].msg.privacy); err = bt_mesh_net_obfuscate(out->data, 0, &sub->keys[i].msg.privacy);
if (err) { if (err) {
LOG_DBG("obfuscation err %d", err); LOG_DBG("obfuscation err %d", err);
continue; continue;
} }
err = bt_mesh_net_decrypt(sub->keys[i].msg.enc, out, err = bt_mesh_net_decrypt(&sub->keys[i].msg.enc, out,
0, BT_MESH_NONCE_SOLICITATION); 0, BT_MESH_NONCE_SOLICITATION);
if (!err) { if (!err) {
LOG_DBG("Decrypted PDU %s", bt_hex(out->data, out->len)); LOG_DBG("Decrypted PDU %s", bt_hex(out->data, out->len));