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

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

commit 363d97a5aeee22799938bb9cf0b7ba00a912639b
Author: Szymon Janc <[email protected]>
AuthorDate: Mon Sep 23 16:29:48 2024 +0200

    nimble/host: Don't assert on unknown data status
    
    Just skip advertising report if it has been reported with
    reserved data status.
---
 nimble/host/src/ble_hs_hci_evt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nimble/host/src/ble_hs_hci_evt.c b/nimble/host/src/ble_hs_hci_evt.c
index 37265c016..a8b95108b 100644
--- a/nimble/host/src/ble_hs_hci_evt.c
+++ b/nimble/host/src/ble_hs_hci_evt.c
@@ -683,7 +683,8 @@ ble_hs_hci_evt_le_ext_adv_rpt(uint8_t subevent, const void 
*data,
                 desc.data_status = BLE_GAP_EXT_ADV_DATA_STATUS_TRUNCATED;
                 break;
             default:
-                assert(false);
+                report = (const void *) &report->data[report->data_len];
+                continue;
             }
         }
         desc.addr.type = report->addr_type;

Reply via email to