int bletest_hci_le_enable_resolv_list(uint8_t enable) { int rc; uint8_t buf[BLE_HCI_CMD_HDR_LEN + BLE_HCI_SET_ADDR_RESOL_ENA_LEN]; rc = ble_hs_hci_cmd_build_set_addr_res_en(enable, buf, sizeof buf); if (!rc) { rc = ble_hs_hci_cmd_tx_empty_ack(buf); } return rc; }
static int ble_hs_pvcy_set_resolve_enabled(int enable) { uint8_t buf[BLE_HCI_CMD_HDR_LEN + BLE_HCI_SET_ADDR_RESOL_ENA_LEN]; int rc; rc = ble_hs_hci_cmd_build_set_addr_res_en(enable, buf, sizeof(buf)); if (rc != 0) { return rc; } rc = ble_hs_hci_cmd_tx(buf, NULL, 0, NULL); if (rc != 0) { return rc; } return 0; }