mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-09 19:47:56 +00:00
fix(nimble): Fixed authcomplete failure caused by a mismatch in the c1 value
This commit is contained in:
committed by
Abhinav Kudnar
parent
c18b38fadd
commit
cdec8e6865
@@ -187,6 +187,8 @@ ble_hs_hci_evt_dispatch_find(uint8_t event_code)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static const uint8_t ble_hs_conn_null_addr[6];
|
||||
|
||||
static ble_hs_hci_evt_le_fn *
|
||||
ble_hs_hci_evt_le_dispatch_find(uint8_t event_code)
|
||||
{
|
||||
@@ -457,7 +459,7 @@ ble_hs_hci_evt_le_enh_conn_complete(uint8_t subevent, const void *data,
|
||||
#if MYNEWT_VAL(BLE_HOST_BASED_PRIVACY)
|
||||
/* RPA needs to be resolved here, as controller is not aware of the
|
||||
* address is RPA in Host based RPA */
|
||||
if (ble_host_rpa_enabled()) {
|
||||
if (ble_host_rpa_enabled() && !memcmp(evt.local_rpa, ble_hs_conn_null_addr, 6) == 0) {
|
||||
uint8_t *local_id_rpa = ble_hs_get_rpa_local();
|
||||
memcpy(evt.local_rpa, local_id_rpa, BLE_DEV_ADDR_LEN);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user