nimble/ll: Fix checking AUX_CONNECT_RSP

We should compare TargetA type in AUX_CONNECT_RSP to TxAdd bit in
AUX_CONNECT_REQ.
This commit is contained in:
Andrzej Kaczmarek
2022-03-03 15:05:17 +01:00
parent def9fd0437
commit 426c71bf3f
+1 -1
View File
@@ -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;
}