/* Called to read the public device address of the device */
static int ble_ll_hci_rd_bd_addr(uint8_t *rspbuf, uint8_t *rsplen)
/* Called to read the public device address of the device */
static int ble_ll_hci_rd_bd_addr(uint8_t *rspbuf, uint8_t *rsplen)
{
    struct ble_hci_ip_rd_bd_addr_rp *rsp = (void *) rspbuf;
    memcpy(rsp->addr, g_dev_addr, BLE_DEV_ADDR_LEN);
    *rsplen = sizeof(*rsp);
    return BLE_ERR_SUCCESS;
}