From d0f0cad655d2568400d524f371f8073cc5549340 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Tue, 22 Jun 2021 12:04:17 +0200 Subject: [PATCH] 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 092e813c2..6ab6b2433 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;