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 12737ede2d627aa37e396b1071c136b6c87b5ca7
Author: MichaƂ Narajowski <[email protected]>
AuthorDate: Thu May 27 10:20:19 2021 +0200

    Revert "mesh: Fix typo when deleting app key in CDB"
    
    This reverts commit 77a1779a53a4c18d18804900988ffac437800d11.
---
 nimble/host/mesh/src/cdb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/mesh/src/cdb.c b/nimble/host/mesh/src/cdb.c
index f0c2e5f..459730e 100644
--- a/nimble/host/mesh/src/cdb.c
+++ b/nimble/host/mesh/src/cdb.c
@@ -359,7 +359,7 @@ void bt_mesh_cdb_app_key_del(struct bt_mesh_cdb_app_key 
*key, bool store)
                bt_mesh_clear_cdb_app_key(key);
        }
 
-       key->net_idx = BT_MESH_KEY_UNUSED;
+       key->net_idx = BT_MESH_ADDR_UNASSIGNED;
        memset(key->keys, 0, sizeof(key->keys));
 }
 

Reply via email to