OSDN Git Service

tools/mgmt-tester: Fix for Stop discovery test
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>
Thu, 20 Mar 2014 11:25:09 +0000 (12:25 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 20 Mar 2014 12:19:39 +0000 (14:19 +0200)
Test "Stop Discovery - BR/EDR (Inquiry) Success 1" uses hciemu_type
BREDR but uses power settings to enable LE and tries to set LE:

  mgmt: [0x0002] command 0x000d
  mgmt: < 0d 00 02 00 01 00 01                             .......
  mgmt: > 02 00 02 00 03 00 0d 00 0c                       .........
  mgmt: [0x0002] command 0x0d status: 0x0c

This patch fixes this minor issue

tools/mgmt-tester.c

index a3c1c72..9f71743 100644 (file)
@@ -1733,7 +1733,7 @@ static const struct generic_data stop_discovery_success_test_1 = {
 };
 
 static const struct generic_data stop_discovery_bredr_success_test_1 = {
-       .setup_settings = settings_powered_le,
+       .setup_settings = settings_powered,
        .setup_expect_hci_command = BT_HCI_CMD_INQUIRY,
        .setup_expect_hci_param = stop_discovery_inq_param,
        .setup_expect_hci_len = sizeof(stop_discovery_inq_param),