This is an automated email from the ASF dual-hosted git repository.

naraj pushed a commit to branch revert-958-mesh_sync_march21
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit f05565b72e3f721a6d78bcffd6650e2a03ebd58a
Author: MichaƂ Narajowski <[email protected]>
AuthorDate: Thu May 27 10:20:19 2021 +0200

    Revert "mesh: Update seqnum when re-encrypting for friend"
    
    This reverts commit 8255bee130c3ab3e1852448f09634e60fd3ca9fc.
---
 nimble/host/mesh/src/friend.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/nimble/host/mesh/src/friend.c b/nimble/host/mesh/src/friend.c
index 5918ecf..8dc55c1 100644
--- a/nimble/host/mesh/src/friend.c
+++ b/nimble/host/mesh/src/friend.c
@@ -442,8 +442,7 @@ static int unseg_app_sdu_prepare(struct bt_mesh_friend 
*frnd,
                return 0;
        }
 
-       BT_DBG("Re-encrypting friend pdu (SeqNum %06x -> %06x)",
-              meta.crypto.seq_num, bt_mesh.seq);
+       BT_DBG("Re-encrypting friend pdu");
 
        err = unseg_app_sdu_decrypt(frnd, buf, &meta);
        if (err) {
@@ -451,8 +450,6 @@ static int unseg_app_sdu_prepare(struct bt_mesh_friend 
*frnd,
                return err;
        }
 
-       meta.crypto.seq_num = bt_mesh.seq;
-
        err = unseg_app_sdu_encrypt(frnd, buf, &meta);
        if (err) {
                BT_WARN("Re-encryption failed! %d", err);

Reply via email to