linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] mesh: Fix storage init of Friend and LPN features
@ 2019-07-25 18:26 Inga Stotland
  2019-07-26 16:20 ` Gix, Brian
  0 siblings, 1 reply; 2+ messages in thread
From: Inga Stotland @ 2019-07-25 18:26 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: brian.gix, Inga Stotland

This fixes a typo in mesh-config-json.c when Friend feature
was initialized twice and LPN was not initialized at all.
---
 mesh/mesh-config-json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
index 75015e607..e3baf5dc6 100644
--- a/mesh/mesh-config-json.c
+++ b/mesh/mesh-config-json.c
@@ -1191,7 +1191,7 @@ static void parse_features(json_object *jconfig, struct mesh_config_node *node)
 	if (json_object_object_get_ex(jconfig, "lowPower", &jvalue)) {
 		mode = get_mode(jvalue);
 		if (mode <= MESH_MODE_UNSUPPORTED)
-			node->modes.friend = mode;
+			node->modes.lpn = mode;
 	}
 
 	if (json_object_object_get_ex(jconfig, "beacon", &jvalue)) {
-- 
2.21.0


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

* Re: [PATCH BlueZ] mesh: Fix storage init of Friend and LPN features
  2019-07-25 18:26 [PATCH BlueZ] mesh: Fix storage init of Friend and LPN features Inga Stotland
@ 2019-07-26 16:20 ` Gix, Brian
  0 siblings, 0 replies; 2+ messages in thread
From: Gix, Brian @ 2019-07-26 16:20 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org, Stotland, Inga

Applied

On Thu, 2019-07-25 at 11:26 -0700, Inga Stotland wrote:
> This fixes a typo in mesh-config-json.c when Friend feature
> was initialized twice and LPN was not initialized at all.
> ---
>  mesh/mesh-config-json.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
> index 75015e607..e3baf5dc6 100644
> --- a/mesh/mesh-config-json.c
> +++ b/mesh/mesh-config-json.c
> @@ -1191,7 +1191,7 @@ static void parse_features(json_object *jconfig, struct mesh_config_node *node)
>  	if (json_object_object_get_ex(jconfig, "lowPower", &jvalue)) {
>  		mode = get_mode(jvalue);
>  		if (mode <= MESH_MODE_UNSUPPORTED)
> -			node->modes.friend = mode;
> +			node->modes.lpn = mode;
>  	}
>  
>  	if (json_object_object_get_ex(jconfig, "beacon", &jvalue)) {

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

end of thread, other threads:[~2019-07-26 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-25 18:26 [PATCH BlueZ] mesh: Fix storage init of Friend and LPN features Inga Stotland
2019-07-26 16:20 ` 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).