diff --git a/emulator/btdev.c b/emulator/btdev.c
index cdf3e5d..77d2c33 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
uint16_t page_scan_type;
uint8_t auth_enable;
uint8_t inquiry_mode;
- uint8_t afh_assess_mode;
+ uint8_t afh_assessment_mode;
uint8_t ext_inquiry_fec;
uint8_t ext_inquiry_rsp[240];
uint8_t simple_pairing_mode;
const struct bt_hci_cmd_write_class_of_dev *wcod;
const struct bt_hci_cmd_write_voice_setting *wvs;
const struct bt_hci_cmd_write_inquiry_mode *wim;
- const struct bt_hci_cmd_write_afh_assess_mode *waam;
+ const struct bt_hci_cmd_write_afh_assessment_mode *waam;
const struct bt_hci_cmd_write_ext_inquiry_response *weir;
const struct bt_hci_cmd_write_simple_pairing_mode *wspm;
const struct bt_hci_cmd_write_le_host_supported *wlhs;
struct bt_hci_rsp_read_class_of_dev rcod;
struct bt_hci_rsp_read_voice_setting rvs;
struct bt_hci_rsp_read_inquiry_mode rim;
- struct bt_hci_rsp_read_afh_assess_mode raam;
+ struct bt_hci_rsp_read_afh_assessment_mode raam;
struct bt_hci_rsp_read_ext_inquiry_response reir;
struct bt_hci_rsp_read_simple_pairing_mode rspm;
struct bt_hci_rsp_read_inquiry_resp_tx_power rirtp;
cmd_complete(btdev, opcode, &status, sizeof(status));
break;
- case BT_HCI_CMD_READ_AFH_ASSESS_MODE:
+ case BT_HCI_CMD_READ_AFH_ASSESSMENT_MODE:
if (btdev->type == BTDEV_TYPE_LE)
goto unsupported;
raam.status = BT_HCI_ERR_SUCCESS;
- raam.mode = btdev->afh_assess_mode;
+ raam.mode = btdev->afh_assessment_mode;
cmd_complete(btdev, opcode, &raam, sizeof(raam));
break;
- case BT_HCI_CMD_WRITE_AFH_ASSESS_MODE:
+ case BT_HCI_CMD_WRITE_AFH_ASSESSMENT_MODE:
if (btdev->type == BTDEV_TYPE_LE)
goto unsupported;
waam = data;
- btdev->afh_assess_mode = waam->mode;
+ btdev->afh_assessment_mode = waam->mode;
status = BT_HCI_ERR_SUCCESS;
cmd_complete(btdev, opcode, &status, sizeof(status));
break;
diff --git a/monitor/bt.h b/monitor/bt.h
index 865f032..09f6183 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
uint16_t setting;
} __attribute__ ((packed));
+#define BT_HCI_CMD_SET_AFH_HOST_CLASSIFICATION 0x0c3f
+struct bt_hci_cmd_set_afh_host_classification {
+ uint8_t map[10];
+} __attribute__ ((packed));
+
#define BT_HCI_CMD_READ_INQUIRY_MODE 0x0c44
struct bt_hci_rsp_read_inquiry_mode {
uint8_t status;
uint8_t type;
} __attribute__ ((packed));
-#define BT_HCI_CMD_READ_AFH_ASSESS_MODE 0x0c48
-struct bt_hci_rsp_read_afh_assess_mode {
+#define BT_HCI_CMD_READ_AFH_ASSESSMENT_MODE 0x0c48
+struct bt_hci_rsp_read_afh_assessment_mode {
uint8_t status;
uint8_t mode;
} __attribute__ ((packed));
-#define BT_HCI_CMD_WRITE_AFH_ASSESS_MODE 0x0c49
-struct bt_hci_cmd_write_afh_assess_mode {
+#define BT_HCI_CMD_WRITE_AFH_ASSESSMENT_MODE 0x0c49
+struct bt_hci_cmd_write_afh_assessment_mode {
uint8_t mode;
} __attribute__ ((packed));