From 27b1a2dd1a929e35e5e677f95a2b80d1a11d7971 Mon Sep 17 00:00:00 2001 From: Prasad Alatkar Date: Mon, 1 Jul 2019 14:21:30 +0800 Subject: [PATCH] NimBLE: Fix bug in `ble_hs_adv_parse_one_field` --- nimble/host/src/ble_hs_adv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimble/host/src/ble_hs_adv.c b/nimble/host/src/ble_hs_adv.c index 8235db859..7a582b7b3 100644 --- a/nimble/host/src/ble_hs_adv.c +++ b/nimble/host/src/ble_hs_adv.c @@ -594,7 +594,7 @@ ble_hs_adv_parse_one_field(struct ble_hs_adv_fields *adv_fields, if (rc != 0) { return rc; } - adv_fields->uuids16_is_complete = 0; + adv_fields->uuids32_is_complete = 0; break; case BLE_HS_ADV_TYPE_COMP_UUIDS32: @@ -602,7 +602,7 @@ ble_hs_adv_parse_one_field(struct ble_hs_adv_fields *adv_fields, if (rc != 0) { return rc; } - adv_fields->uuids16_is_complete = 1; + adv_fields->uuids32_is_complete = 1; break; case BLE_HS_ADV_TYPE_INCOMP_UUIDS128: