From 0d98b2a95f10d6180eaed6de815153db7016d7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Date: Fri, 1 Sep 2017 13:35:36 +0200 Subject: [PATCH] mesh: Fix setting the right value for Static OOB type According to Mesh Profile spec 1.0, chapter 5.4.1.1 table 5.20 Bit 0 shall be set when static OOB is available X-Original-Commit: aed386724116c187564fd8b9ddb4cfaf2264000d --- nimble/host/mesh/src/prov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/mesh/src/prov.c b/nimble/host/mesh/src/prov.c index f1bf8574f..90193777f 100644 --- a/nimble/host/mesh/src/prov.c +++ b/nimble/host/mesh/src/prov.c @@ -480,7 +480,7 @@ static void prov_invite(const u8_t *data) net_buf_simple_add_u8(buf, 0x00); /* Static OOB Type */ - net_buf_simple_add_u8(buf, prov->static_val ? BIT(1) : 0x00); + net_buf_simple_add_u8(buf, prov->static_val ? BIT(0) : 0x00); /* Output OOB Size */ net_buf_simple_add_u8(buf, prov->output_size);