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:
Vasilyev, Pavel 2021-01-07 18:10:55 +01:00 committed by Johan Hedberg
parent d904f95562
commit d593af30db

View file

@ -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));
}