From: Johan Hedberg Date: Fri, 11 Oct 2013 19:22:10 +0000 (+0300) Subject: tools/mgmt-tester: Update set_hs tests to require SSP to be enabled first X-Git-Tag: android-x86-4.4-r3~7443 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b4adb68dd4a2ad5f3594c4518ca859099d4cbdab;p=android-x86%2Fexternal-bluetooth-bluez.git tools/mgmt-tester: Update set_hs tests to require SSP to be enabled first --- diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 04a62ea41..9b9224412 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -948,7 +948,7 @@ static const struct generic_data set_ssp_on_invalid_index_test = { static const char set_hs_on_param[] = { 0x01 }; static const char set_hs_invalid_param[] = { 0x02 }; static const char set_hs_garbage_param[] = { 0x01, 0x00 }; -static const char set_hs_settings_param_1[] = { 0x80, 0x01, 0x00, 0x00 }; +static const char set_hs_settings_param_1[] = { 0xc0, 0x01, 0x00, 0x00 }; static const char set_hs_settings_param_2[] = { 0x81, 0x01, 0x00, 0x00 }; static const struct generic_data set_hs_on_success_test = { @@ -2856,19 +2856,19 @@ int main(int argc, char *argv[]) test_bredrle("Set High Speed on - Success", &set_hs_on_success_test, - NULL, test_command_generic); + setup_ssp, test_command_generic); test_bredrle("Set High Speed on - Invalid parameters 1", &set_hs_on_invalid_param_test_1, - NULL, test_command_generic); + setup_ssp, test_command_generic); test_bredrle("Set High Speed on - Invalid parameters 2", &set_hs_on_invalid_param_test_2, - NULL, test_command_generic); + setup_ssp, test_command_generic); test_bredrle("Set High Speed on - Invalid parameters 3", &set_hs_on_invalid_param_test_3, - NULL, test_command_generic); + setup_ssp, test_command_generic); test_bredrle("Set High Speed on - Invalid index", &set_hs_on_invalid_index_test, - NULL, test_command_generic); + setup_ssp, test_command_generic); test_bredrle("Set Low Energy on - Success 1", &set_le_on_success_test_1,