From 426c71bf3f17f6ef05ccc0634496bffc6b55f96a Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Fri, 25 Feb 2022 14:53:18 +0100 Subject: [PATCH] nimble/ll: Fix checking AUX_CONNECT_RSP We should compare TargetA type in AUX_CONNECT_RSP to TxAdd bit in AUX_CONNECT_REQ. --- nimble/controller/src/ble_ll_scan_aux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/controller/src/ble_ll_scan_aux.c b/nimble/controller/src/ble_ll_scan_aux.c index c637be711..ed5ca815c 100644 --- a/nimble/controller/src/ble_ll_scan_aux.c +++ b/nimble/controller/src/ble_ll_scan_aux.c @@ -1547,7 +1547,7 @@ ble_ll_scan_aux_check_connect_rsp(uint8_t *rxbuf, } #endif /* BLE_LL_CFG_FEAT_LL_PRIVACY */ - if ((targeta_type != !!(pdu_data->hdr_byte & BLE_ADV_PDU_HDR_RXADD_MASK)) || + if ((targeta_type != !!(pdu_data->hdr_byte & BLE_ADV_PDU_HDR_TXADD_MASK)) || (memcmp(targeta, pdu_data->inita, 6) != 0)) { return -1; }