nimble/ll: Fix InitA type when resolved
@@ -2770,7 +2770,7 @@ ble_ll_scan_rx_pkt_in(uint8_t ptype, struct os_mbuf *om, struct ble_mbuf_hdr *hd
/* Let's try resolve InitA. */
if (ble_ll_resolv_rpa(init_addr, g_ble_ll_resolv_list[index].rl_local_irk)) {
init_addr = ble_ll_get_our_devaddr(scansm->own_addr_type & 1);
- init_addr_type = scansm->own_addr_type;
+ init_addr_type = scansm->own_addr_type & 1;
}
}
} else if (init_addr && ble_ll_resolv_enabled() && ble_ll_is_rpa(init_addr, init_addr_type)) {
@@ -2778,7 +2778,7 @@ ble_ll_scan_rx_pkt_in(uint8_t ptype, struct os_mbuf *om, struct ble_mbuf_hdr *hd
rl = ble_ll_resolv_list_find(ident_addr, ident_addr_type);
if (rl && ble_ll_resolv_rpa(init_addr, rl->rl_local_irk)) {
init_addr = ble_ll_get_our_devaddr(scansm->own_addr_type & 1);
- init_addr_type = scansm->own_addr_type;
+ init_addr_type = scansm->own_addr_type & 1;
}
}
#endif
