Skip to content

Commit

Permalink
nimble/host: Don't assert on unknown data status
Browse files Browse the repository at this point in the history
Just skip advertising report if it has been reported with
reserved data status.
  • Loading branch information
sjanc committed Sep 24, 2024
1 parent 23d6115 commit 363d97a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nimble/host/src/ble_hs_hci_evt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 363d97a

Please sign in to comment.