Skip to content

Commit c79a7ab

Browse files
committed
nimble/mesh: Fix bt_mesh_keys_resolve declaration
app_key is expected to be a pointer to pointer and not artay of pointers.
1 parent 4a008c8 commit c79a7ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nimble/host/mesh/src/app_keys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ ssize_t bt_mesh_app_keys_get(uint16_t net_idx, uint16_t app_idxs[], size_t max,
495495

496496
int bt_mesh_keys_resolve(struct bt_mesh_msg_ctx *ctx,
497497
struct bt_mesh_subnet **sub,
498-
const uint8_t *app_key[16], uint8_t *aid)
498+
const uint8_t **app_key, uint8_t *aid)
499499
{
500500
struct app_key *app = NULL;
501501

nimble/host/mesh/src/app_keys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int bt_mesh_app_key_set(uint16_t app_idx, uint16_t net_idx,
4141
*/
4242
int bt_mesh_keys_resolve(struct bt_mesh_msg_ctx *ctx,
4343
struct bt_mesh_subnet **sub,
44-
const uint8_t *app_key[16], uint8_t *aid);
44+
const uint8_t **app_key, uint8_t *aid);
4545

4646
/** @brief Iterate through all matching application keys and call @c cb on each.
4747
*

0 commit comments

Comments
 (0)