Bluetooth: Mesh: Fix typo when deleting app key in CDB
This commit sets `net_idx` to `BT_MESH_KEY_UNUSED` when deleting app key in cdb. Signed-off-by: Vasilyev, Pavel <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
parent
d904f95562
commit
d593af30db
|
@ -357,7 +357,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_ADDR_UNASSIGNED;
|
||||
key->net_idx = BT_MESH_KEY_UNUSED;
|
||||
memset(key->keys, 0, sizeof(key->keys));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue