Bluetooth: testing: Move bt_test_mesh_net_recv to internal API
This function is called only within mesh stack.
Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
diff --git a/include/bluetooth/testing.h b/include/bluetooth/testing.h
index 60509fc..eb1868e 100644
--- a/include/bluetooth/testing.h
+++ b/include/bluetooth/testing.h
@@ -51,20 +51,6 @@
*/
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 f4c892f..e588925 100644
--- a/subsys/bluetooth/host/mesh/transport.c
+++ b/subsys/bluetooth/host/mesh/transport.c
@@ -17,11 +17,12 @@
#include <bluetooth/hci.h>
#include <bluetooth/mesh.h>
-#include <bluetooth/testing.h>
#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 d27e321..6cc1716 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,