Bluetooth: Mesh: Redefine callback registration

There is a problem with the previous method, that is,
we use the same label(bt_mesh_subnet_cb_subnet_evt) and
put it in the same section, which is not friendly for debugging.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
Lingao Meng 2021-08-13 14:10:45 +08:00 committed by Christopher Friedt
commit 4a8a1577ef
6 changed files with 19 additions and 11 deletions

View file

@ -602,7 +602,9 @@ static void subnet_evt(struct bt_mesh_subnet *sub, enum bt_mesh_key_evt evt)
}
}
BT_MESH_SUBNET_CB_DEFINE(subnet_evt);
BT_MESH_SUBNET_CB_DEFINE(app_keys) = {
.evt_handler = subnet_evt,
};
void bt_mesh_app_keys_reset(void)
{