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>
This commit is contained in:
parent
8274cbabf6
commit
9977caefa1
3 changed files with 4 additions and 15 deletions
|
@ -51,20 +51,6 @@ void bt_test_cb_register(struct bt_test_cb *cb);
|
||||||
*/
|
*/
|
||||||
void bt_test_cb_unregister(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.
|
/** Send Friend Subscription List Add message.
|
||||||
*
|
*
|
||||||
* Used by Low Power node to send the group address for which messages are to
|
* Used by Low Power node to send the group address for which messages are to
|
||||||
|
|
|
@ -17,11 +17,12 @@
|
||||||
|
|
||||||
#include <bluetooth/hci.h>
|
#include <bluetooth/hci.h>
|
||||||
#include <bluetooth/mesh.h>
|
#include <bluetooth/mesh.h>
|
||||||
#include <bluetooth/testing.h>
|
|
||||||
|
|
||||||
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_MESH_DEBUG_TRANS)
|
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_MESH_DEBUG_TRANS)
|
||||||
#include "common/log.h"
|
#include "common/log.h"
|
||||||
|
|
||||||
|
#include "../testing.h"
|
||||||
|
|
||||||
#include "crypto.h"
|
#include "crypto.h"
|
||||||
#include "adv.h"
|
#include "adv.h"
|
||||||
#include "mesh.h"
|
#include "mesh.h"
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* 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,
|
void bt_test_mesh_model_bound(u16_t addr, struct bt_mesh_model *model,
|
||||||
u16_t key_idx);
|
u16_t key_idx);
|
||||||
void bt_test_mesh_model_unbound(u16_t addr, struct bt_mesh_model *model,
|
void bt_test_mesh_model_unbound(u16_t addr, struct bt_mesh_model *model,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue