/* Checks to see if an address is our device address (either public or random) */
int ble_ll_is_our_devaddr(uint8_t *addr, int addr_type)
/* Checks to see if an address is our device address (either public or random) */
int ble_ll_is_our_devaddr(uint8_t *addr, int addr_type)
{
    int rc;
    uint8_t *our_addr;
    if (addr_type) {
        our_addr = g_random_addr;
    } else {
        our_addr = g_dev_addr;
    }
    rc = 0;
    if (!memcmp(our_addr, addr, BLE_DEV_ADDR_LEN)) {
        rc = 1;
    }
    return rc;
}