/* HCI read local supported states command. Returns the states supported by the controller. */
static int ble_ll_hci_le_read_supp_states(uint8_t *rspbuf, uint8_t *rsplen)
/* HCI read local supported states command. Returns the states supported by the controller. */
static int ble_ll_hci_le_read_supp_states(uint8_t *rspbuf, uint8_t *rsplen)
{
    struct ble_hci_le_rd_supp_states_rp *rsp = (void *) rspbuf;
    rsp->states = htole64(ble_ll_read_supp_states());
    *rsplen = sizeof(*rsp);
    return BLE_ERR_SUCCESS;
}