You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2021/07/13 11:14:20 UTC
[mynewt-nimble] branch master updated: nimble/ll: Fix TxAdd field
for ADV_EXT_IND
This is an automated email from the ASF dual-hosted git repository.
andk 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 d0f0cad nimble/ll: Fix TxAdd field for ADV_EXT_IND
d0f0cad is described below
commit d0f0cad655d2568400d524f371f8073cc5549340
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Tue Jun 22 12:04:17 2021 +0200
nimble/ll: Fix TxAdd field for ADV_EXT_IND
We never include AdvA on primary channel so TxAdd should be set to 0 as
it's RFU in such case.
---
nimble/controller/src/ble_ll_adv.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/nimble/controller/src/ble_ll_adv.c b/nimble/controller/src/ble_ll_adv.c
index 092e813..6ab6b24 100644
--- a/nimble/controller/src/ble_ll_adv.c
+++ b/nimble/controller/src/ble_ll_adv.c
@@ -550,11 +550,6 @@ ble_ll_adv_pdu_make(uint8_t *dptr, void *pducb_arg, uint8_t *hdr_byte)
/* only ADV_EXT_IND goes on primary advertising channels */
pdu_type = BLE_ADV_PDU_TYPE_ADV_EXT_IND;
- /* Set TxAdd to random if needed. */
- if (advsm->flags & BLE_LL_ADV_SM_FLAG_TX_ADD) {
- pdu_type |= BLE_ADV_PDU_HDR_TXADD_RAND;
- }
-
*hdr_byte = pdu_type;
adv_mode = 0;