linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] mesh: Send correct NetKey index in DevKeyMessageReceived
@ 2020-08-19 21:48 Inga Stotland
  2020-08-20 14:29 ` Gix, Brian
  0 siblings, 1 reply; 2+ messages in thread
From: Inga Stotland @ 2020-08-19 21:48 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: brian.gix, Inga Stotland

The value of net_index in DevKeyMessageReceived() method must be set
to the value of a subnet index on which a device key encoded message
has been received. Was hard coded to 0. Fixed.
---
 mesh/model.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mesh/model.c b/mesh/model.c
index b44e2f669..9529dfb2e 100644
--- a/mesh/model.c
+++ b/mesh/model.c
@@ -965,7 +965,8 @@ bool mesh_model_rx(struct mesh_node *node, bool szmict, uint32_t seq0,
 			else if (decrypt_idx == APP_IDX_DEV_REMOTE ||
 				 decrypt_idx == APP_IDX_DEV_LOCAL)
 				send_dev_key_msg_rcvd(node, i, src, decrypt_idx,
-						0, forward.size, forward.data);
+							net_idx, forward.size,
+								forward.data);
 		}
 
 		/*
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH BlueZ] mesh: Send correct NetKey index in DevKeyMessageReceived
  2020-08-19 21:48 [PATCH BlueZ] mesh: Send correct NetKey index in DevKeyMessageReceived Inga Stotland
@ 2020-08-20 14:29 ` Gix, Brian
  0 siblings, 0 replies; 2+ messages in thread
From: Gix, Brian @ 2020-08-20 14:29 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org, Stotland, Inga

Applied
On Wed, 2020-08-19 at 14:48 -0700, Inga Stotland wrote:
> The value of net_index in DevKeyMessageReceived() method must be set
> to the value of a subnet index on which a device key encoded message
> has been received. Was hard coded to 0. Fixed.
> ---
>  mesh/model.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/mesh/model.c b/mesh/model.c
> index b44e2f669..9529dfb2e 100644
> --- a/mesh/model.c
> +++ b/mesh/model.c
> @@ -965,7 +965,8 @@ bool mesh_model_rx(struct mesh_node *node, bool szmict, uint32_t seq0,
>  			else if (decrypt_idx == APP_IDX_DEV_REMOTE ||
>  				 decrypt_idx == APP_IDX_DEV_LOCAL)
>  				send_dev_key_msg_rcvd(node, i, src, decrypt_idx,
> -						0, forward.size, forward.data);
> +							net_idx, forward.size,
> +								forward.data);
>  		}
>  
>  		/*

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-20 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-19 21:48 [PATCH BlueZ] mesh: Send correct NetKey index in DevKeyMessageReceived Inga Stotland
2020-08-20 14:29 ` Gix, Brian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).