diff --git a/include/bluetooth/testing.h b/include/bluetooth/testing.h index 60509fcfe1b..eb1868ebcec 100644 --- a/include/bluetooth/testing.h +++ b/include/bluetooth/testing.h @@ -51,20 +51,6 @@ void bt_test_cb_register(struct bt_test_cb *cb); */ void bt_test_cb_unregister(struct bt_test_cb *cb); -/** Indicate reception of Mesh Network PDU - * - * This will call registered mesh_net_recv callbacks. - * - * @param ttl Time To Live - * @param ctl Network Control - * @param src Source address - * @param dst Destination address - * @param payload Payload after decryption with the NetKey - * @param payload_len Payload length - */ -void bt_test_mesh_net_recv(u8_t ttl, u8_t ctl, u16_t src, u16_t dst, - const void *payload, size_t payload_len); - /** Send Friend Subscription List Add message. * * Used by Low Power node to send the group address for which messages are to diff --git a/subsys/bluetooth/host/mesh/transport.c b/subsys/bluetooth/host/mesh/transport.c index f4c892f2308..e5889251fac 100644 --- a/subsys/bluetooth/host/mesh/transport.c +++ b/subsys/bluetooth/host/mesh/transport.c @@ -17,11 +17,12 @@ #include #include -#include #define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_MESH_DEBUG_TRANS) #include "common/log.h" +#include "../testing.h" + #include "crypto.h" #include "adv.h" #include "mesh.h" diff --git a/subsys/bluetooth/host/testing.h b/subsys/bluetooth/host/testing.h index d27e321fe2d..6cc17169bb4 100644 --- a/subsys/bluetooth/host/testing.h +++ b/subsys/bluetooth/host/testing.h @@ -9,6 +9,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +void bt_test_mesh_net_recv(u8_t ttl, u8_t ctl, u16_t src, u16_t dst, + const void *payload, size_t payload_len); void bt_test_mesh_model_bound(u16_t addr, struct bt_mesh_model *model, u16_t key_idx); void bt_test_mesh_model_unbound(u16_t addr, struct bt_mesh_model *model,