Open ppryga-nordic opened 2 years ago
@carlescufi Do you know what the status of this one is? It has been marked as stale many times.
@carlescufi Do you know what the status of this one is? It has been marked as stale many times.
Unfortunately still no ETA for this one yet.
Marked as known issue.
Controller HCI encoding of reports needs implementation to report correct data status.
Describe the bug The periodic advertising data status may be set to wrong value when preparing a report event in HCI layer.
In case there periodic advertiser:
sends a data with length that is equal to
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX
. the periodic advertising has included CTE the number of PDUs in a chain is larger than required for transport of advertising data (e.g. for max AD payload of 1650 bytes, minimum required number of PDUs is 7). In other words there are empty PDUs added to the chain to transport CTE. the event generated in HCI layer has data status set toBT_HCI_LE_AD_EVT_TYPE_DATA_STATUS_INCOMPLETE
. That is caused by wrong condition checking if data_len_total is less thanCONFIG_BT_CTLR_SCAN_DATA_LEN_MAX
.Expected behavior In such condition a report event should have data status set to
BT_HCI_LE_AD_EVT_TYPE_DATA_STATUS_COMPLETE
Impact Related with periodic advertising only.