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 91ce86b9d36b4bff3ce8dfc2bd58e0705472d8cf Author: MichaĆ Narajowski <[email protected]> AuthorDate: Thu May 27 10:20:19 2021 +0200 Revert "mesh: Initialize msg_ctx when re-encrypting friend msg" This reverts commit 8256009f6d90e6b81b9839e7ec32de87b34df87b. --- nimble/host/mesh/src/friend.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/nimble/host/mesh/src/friend.c b/nimble/host/mesh/src/friend.c index 8dc55c1..9a83c87 100644 --- a/nimble/host/mesh/src/friend.c +++ b/nimble/host/mesh/src/friend.c @@ -345,12 +345,7 @@ static int unseg_app_sdu_unpack(struct bt_mesh_friend *frnd, struct unseg_app_sdu_meta *meta) { uint16_t app_idx = FRIEND_ADV(buf)->app_idx; - struct bt_mesh_net_rx net = { - .ctx = { - .app_idx = app_idx, - .net_idx = frnd->subnet->net_idx, - }, - }; + struct bt_mesh_net_rx net; int err; meta->subnet = frnd->subnet; @@ -442,8 +437,6 @@ static int unseg_app_sdu_prepare(struct bt_mesh_friend *frnd, return 0; } - BT_DBG("Re-encrypting friend pdu"); - err = unseg_app_sdu_decrypt(frnd, buf, &meta); if (err) { BT_WARN("Decryption failed! %d", err);
