/* NOTE: the addr_type parameter will be 0 if the address is public; any other value is random (all non-zero values). */
int ble_ll_is_rpa(const uint8_t *addr, uint8_t addr_type)
/* NOTE: the addr_type parameter will be 0 if the address is public; any other value is random (all non-zero values). */
int ble_ll_is_rpa(const uint8_t *addr, uint8_t addr_type)
{
    int rc;
    if (addr_type && ((addr[5] & 0xc0) == 0x40)) {
        rc = 1;
    } else {
        rc = 0;
    }
    return rc;
}