This is an automated email from the ASF dual-hosted git repository.

kopyscinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c6f2fe6b host/ble_audio.c: fix 
ble_audio_adv_parse_broadcast_announcement
0c6f2fe6b is described below

commit 0c6f2fe6b78c3b6ad2a125dc5aa378f122655541
Author: Krzysztof Kopyściński <[email protected]>
AuthorDate: Thu Apr 4 12:38:24 2024 +0200

    host/ble_audio.c: fix ble_audio_adv_parse_broadcast_announcement
    
    data->success was set to false at every entry to the funcion. That made
    the valid advertising payload fail after parsing
    BLE_BROADCAST_PUB_ANNOUNCEMENT_SVC_UUID - final break in block was
    reached but the success set in parsing
    BLE_BROADCAST_AUDIO_ANNOUNCEMENT_SVC_UUID was cleared.
---
 nimble/host/audio/src/ble_audio.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/nimble/host/audio/src/ble_audio.c 
b/nimble/host/audio/src/ble_audio.c
index f7597aaf7..425334781 100644
--- a/nimble/host/audio/src/ble_audio.c
+++ b/nimble/host/audio/src/ble_audio.c
@@ -47,8 +47,6 @@ ble_audio_adv_parse_broadcast_announcement(const struct 
ble_hs_adv_field *field,
 
     event = &data->event.broadcast_announcement;
 
-    data->success = false;
-
     switch (field->type) {
     case BLE_HS_ADV_TYPE_SVC_DATA_UUID16:
         if (value_len < 2) {

Reply via email to