diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 4ebf7ec..7fe8f1b 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
.expect_status = MGMT_STATUS_INVALID_INDEX,
};
+static uint16_t settings_powered_advertising[] = { MGMT_OP_SET_ADVERTISING,
+ MGMT_OP_SET_POWERED, 0 };
+
static const char set_connectable_le_settings_param_1[] = { 0x02, 0x02, 0x00, 0x00 };
static const char set_connectable_le_settings_param_2[] = { 0x03, 0x02, 0x00, 0x00 };
+static const char set_connectable_le_settings_param_3[] = { 0x03, 0x06, 0x00, 0x00 };
static const struct generic_data set_connectable_on_le_test_1 = {
.send_opcode = MGMT_OP_SET_CONNECTABLE,
.expect_settings_set = MGMT_SETTING_CONNECTABLE,
};
+static uint8_t set_connectable_on_adv_param[] = {
+ 0x00, 0x08, /* min_interval */
+ 0x00, 0x08, /* max_interval */
+ 0x00, /* type */
+ 0x00, /* own_addr_type */
+ 0x00, /* direct_addr_type */
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* direct_addr */
+ 0x07, /* channel_map */
+ 0x00, /* filter_policy */
+};
+
+static const struct generic_data set_connectable_on_le_test_3 = {
+ .setup_settings = settings_powered_advertising,
+ .send_opcode = MGMT_OP_SET_CONNECTABLE,
+ .send_param = set_connectable_on_param,
+ .send_len = sizeof(set_connectable_on_param),
+ .expect_status = MGMT_STATUS_SUCCESS,
+ .expect_param = set_connectable_le_settings_param_3,
+ .expect_len = sizeof(set_connectable_le_settings_param_3),
+ .expect_settings_set = MGMT_SETTING_CONNECTABLE,
+ .expect_hci_command = BT_HCI_CMD_LE_SET_ADV_PARAMETERS,
+ .expect_hci_param = set_connectable_on_adv_param,
+ .expect_hci_len = sizeof(set_connectable_on_adv_param),
+};
+
static const uint16_t settings_connectable[] = { MGMT_OP_SET_CONNECTABLE, 0 };
static const uint16_t settings_powered_connectable[] = {
MGMT_OP_SET_CONNECTABLE,
test_le("Set connectable on (LE-only) - Success 2",
&set_connectable_on_le_test_2,
NULL, test_command_generic);
+ test_le("Set connectable on (LE-only) - Success 3",
+ &set_connectable_on_le_test_3,
+ NULL, test_command_generic);
test_bredrle("Set connectable off - Success 1",
&set_connectable_off_success_test_1,