Skip to content

nimble/host: Fix for BLE_HS_DBG_ASSERT in adv_set_fields#743

Merged
rymanluk merged 1 commit intoapache:masterfrom
rymanluk:reg_adv
Jan 27, 2020
Merged

nimble/host: Fix for BLE_HS_DBG_ASSERT in adv_set_fields#743
rymanluk merged 1 commit intoapache:masterfrom
rymanluk:reg_adv

Conversation

@rymanluk
Copy link
Contributor

This is regression after
9583379 nimble/host: Fix checking dst_len in adv_set_fields

Function ble_hs_adv_set_fields_mbuf() does not use dst_len which
triggers the BLE_HS_DBG_ASSERT

For that reason, we have now local variable in the adv_set_fields which
is later copied to dst_len if needed.

This is regression after
9583379 nimble/host: Fix checking dst_len in adv_set_fields

Function ble_hs_adv_set_fields_mbuf() does not use dst_len which
triggers the BLE_HS_DBG_ASSERT

For that reason, we have now local variable in the adv_set_fields which
is later copied to dst_len if needed.
@rymanluk rymanluk requested a review from sjanc January 27, 2020 11:20
@rymanluk rymanluk merged commit de3d69e into apache:master Jan 27, 2020
@rymanluk rymanluk deleted the reg_adv branch January 27, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants