diff options
author | h.sandeep <h.sandeep@samsung.com> | 2016-11-29 17:25:15 +0530 |
---|---|---|
committer | h.sandeep <h.sandeep@samsung.com> | 2016-11-29 18:12:38 +0530 |
commit | 050a4e3e58b09a4c29c5e429fd271e04943b6e61 (patch) | |
tree | c9991a82f2f735f856c7e395802909868c056e9b | |
parent | 496d4c03cd74c91d5a1108a6ec36686fc765da62 (diff) | |
download | bluetooth-050a4e3e58b09a4c29c5e429fd271e04943b6e61.tar.gz bluetooth-050a4e3e58b09a4c29c5e429fd271e04943b6e61.tar.bz2 bluetooth-050a4e3e58b09a4c29c5e429fd271e04943b6e61.zip |
DPM: Handle the modifief bt-frwk API return values
Change-Id: I219ec4c043e8e94806ee1e98cbb7a138c10eb659
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
-rw-r--r-- | src/bluetooth-dpm.c | 91 | ||||
-rw-r--r-- | test/bt_unit_test.c | 6 |
2 files changed, 38 insertions, 59 deletions
diff --git a/src/bluetooth-dpm.c b/src/bluetooth-dpm.c index d176b10..69470f1 100644 --- a/src/bluetooth-dpm.c +++ b/src/bluetooth-dpm.c @@ -27,25 +27,6 @@ #include "bluetooth_private.h" /* LCOV_EXCL_START */ -static int _bt_dpm_get_error_code(int origin_error) -{ - switch (origin_error) { - case BLUETOOTH_DPM_RESULT_SUCCESS: - return BT_ERROR_NONE; - case BLUETOOTH_DPM_RESULT_INVALID_PARAM: - return BT_ERROR_INVALID_PARAMETER; - case BLUETOOTH_DPM_RESULT_NOT_SUPPORTED: - return BT_ERROR_NOT_SUPPORTED; - case BLUETOOTH_DPM_RESULT_SERVICE_NOT_ENABLED: - return BT_ERROR_NOT_ENABLED; - case BLUETOOTH_DPM_RESULT_FAIL: - case BLUETOOTH_DPM_RESULT_ACCESS_DENIED: - default: - return BT_ERROR_OPERATION_FAILED; - } - -} - int bt_dpm_set_allow_bluetooth_mode(bt_dpm_allow_e value) { int error_code = BT_ERROR_NONE; @@ -54,7 +35,7 @@ int bt_dpm_set_allow_bluetooth_mode(bt_dpm_allow_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_set_allow_mode(dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_set_allow_mode(dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -68,7 +49,7 @@ int bt_dpm_get_allow_bluetooth_mode(bt_dpm_allow_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_allow_mode(&dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_get_allow_mode(&dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; @@ -84,7 +65,7 @@ int bt_dpm_activate_device_restriction(bt_dpm_status_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_activate_device_restriction(dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_activate_device_restriction(dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -99,7 +80,7 @@ int bt_dpm_is_device_restriction_active(bt_dpm_status_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_is_device_restriction_active(&dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_is_device_restriction_active(&dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; @@ -115,7 +96,7 @@ int bt_dpm_activate_uuid_restriction(bt_dpm_status_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_activate_uuid_restriction(dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_activate_uuid_restriction(dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -130,7 +111,7 @@ int bt_dpm_is_uuid_restriction_active(bt_dpm_status_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_is_uuid_restriction_active(&dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_is_uuid_restriction_active(&dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; @@ -148,7 +129,7 @@ int bt_dpm_add_devices_to_blacklist(const char *device_address) BT_CHECK_INPUT_PARAMETER(device_address); _bt_convert_address_to_hex(&addr_hex, device_address); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_add_devices_to_blacklist(&addr_hex)); + error_code = _bt_get_error_code(bluetooth_dpm_add_devices_to_blacklist(&addr_hex)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -165,7 +146,7 @@ int bt_dpm_add_devices_to_whitelist(const char *device_address) BT_CHECK_INPUT_PARAMETER(device_address); _bt_convert_address_to_hex(&addr_hex, device_address); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_add_devices_to_whitelist(&addr_hex)); + error_code = _bt_get_error_code(bluetooth_dpm_add_devices_to_whitelist(&addr_hex)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -179,7 +160,7 @@ int bt_dpm_add_uuids_to_blacklist(const char *service_uuid) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_add_uuids_to_blacklist(service_uuid)); + error_code = _bt_get_error_code(bluetooth_dpm_add_uuids_to_blacklist(service_uuid)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -193,7 +174,7 @@ int bt_dpm_add_uuids_to_whitelist(const char *service_uuid) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_add_uuids_to_whitelist(service_uuid)); + error_code = _bt_get_error_code(bluetooth_dpm_add_uuids_to_whitelist(service_uuid)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -207,7 +188,7 @@ int bt_dpm_clear_devices_from_blacklist(void) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_clear_devices_from_blacklist()); + error_code = _bt_get_error_code(bluetooth_dpm_clear_devices_from_blacklist()); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -221,7 +202,7 @@ int bt_dpm_clear_devices_from_whitelist(void) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_clear_devices_from_whitelist()); + error_code = _bt_get_error_code(bluetooth_dpm_clear_devices_from_whitelist()); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -235,7 +216,7 @@ int bt_dpm_clear_uuids_from_blacklist(void) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_clear_uuids_from_blacklist()); + error_code = _bt_get_error_code(bluetooth_dpm_clear_uuids_from_blacklist()); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -249,7 +230,7 @@ int bt_dpm_clear_uuids_from_whitelist(void) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_clear_uuids_from_whitelist()); + error_code = _bt_get_error_code(bluetooth_dpm_clear_uuids_from_whitelist()); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -289,7 +270,7 @@ int bt_dpm_get_devices_from_blacklist(bt_dpm_device_list_s **device_list) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_devices_from_blacklist(&dev_list)); + error_code = _bt_get_error_code(bluetooth_dpm_get_devices_from_blacklist(&dev_list)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -306,7 +287,7 @@ int bt_dpm_get_devices_from_whitelist(bt_dpm_device_list_s **device_list) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_devices_from_whitelist(&dev_list)); + error_code = _bt_get_error_code(bluetooth_dpm_get_devices_from_whitelist(&dev_list)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -352,7 +333,7 @@ int bt_dpm_get_uuids_from_blacklist(bt_dpm_uuids_list_s **uuid_list) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_uuids_from_blacklist(&uuids)); + error_code = _bt_get_error_code(bluetooth_dpm_get_uuids_from_blacklist(&uuids)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -369,7 +350,7 @@ int bt_dpm_get_uuids_from_whitelist(bt_dpm_uuids_list_s **uuid_list) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_uuids_from_whitelist(&uuids)); + error_code = _bt_get_error_code(bluetooth_dpm_get_uuids_from_whitelist(&uuids)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -388,7 +369,7 @@ int bt_dpm_remove_device_from_whitelist(const char *device_address) BT_CHECK_INPUT_PARAMETER(device_address); _bt_convert_address_to_hex(&addr_hex, device_address); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_remove_device_from_whitelist(&addr_hex)); + error_code = _bt_get_error_code(bluetooth_dpm_remove_device_from_whitelist(&addr_hex)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -405,7 +386,7 @@ int bt_dpm_remove_device_from_blacklist(const char *device_address) BT_CHECK_INPUT_PARAMETER(device_address); _bt_convert_address_to_hex(&addr_hex, device_address); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_remove_device_from_blacklist(&addr_hex)); + error_code = _bt_get_error_code(bluetooth_dpm_remove_device_from_blacklist(&addr_hex)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -419,7 +400,7 @@ int bt_dpm_remove_uuid_from_whitelist(const char *service_uuid) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_remove_uuid_from_whitelist(service_uuid)); + error_code = _bt_get_error_code(bluetooth_dpm_remove_uuid_from_whitelist(service_uuid)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -433,7 +414,7 @@ int bt_dpm_remove_uuid_from_blacklist(const char *service_uuid) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_remove_uuid_from_blacklist(service_uuid)); + error_code = _bt_get_error_code(bluetooth_dpm_remove_uuid_from_blacklist(service_uuid)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -448,7 +429,7 @@ int bt_dpm_set_allow_outgoing_call(bt_dpm_status_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_set_allow_outgoing_call(dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_set_allow_outgoing_call(dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -463,7 +444,7 @@ int bt_dpm_get_allow_outgoing_call(bt_dpm_status_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_allow_outgoing_call(&dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_get_allow_outgoing_call(&dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; @@ -479,7 +460,7 @@ int bt_dpm_set_pairing_state(bt_dpm_status_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_set_pairing_state(dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_set_pairing_state(dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -494,7 +475,7 @@ int bt_dpm_get_pairing_state(bt_dpm_status_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_pairing_state(&dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_get_pairing_state(&dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; @@ -511,7 +492,7 @@ int bt_dpm_set_profile_state(bt_dpm_profile_e profile, bt_dpm_status_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_set_profile_state(dpm_profile, dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_set_profile_state(dpm_profile, dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -526,7 +507,7 @@ int bt_dpm_get_profile_state(bt_dpm_profile_e profile, bt_dpm_status_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_profile_state(profile, &dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_get_profile_state(profile, &dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; @@ -542,7 +523,7 @@ int bt_dpm_set_desktop_connectivity_state(bt_dpm_status_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_set_desktop_connectivity_state(dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_set_desktop_connectivity_state(dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -557,7 +538,7 @@ int bt_dpm_get_desktop_connectivity_state(bt_dpm_status_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_desktop_connectivity_state(&dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_get_desktop_connectivity_state(&dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; @@ -573,7 +554,7 @@ int bt_dpm_set_discoverable_state(bt_dpm_status_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_set_discoverable_state(dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_set_discoverable_state(dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -588,7 +569,7 @@ int bt_dpm_get_discoverable_state(bt_dpm_status_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_discoverable_state(&dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_get_discoverable_state(&dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; @@ -604,7 +585,7 @@ int bt_dpm_set_limited_discoverable_state(bt_dpm_status_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_set_limited_discoverable_state(dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_set_limited_discoverable_state(dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -619,7 +600,7 @@ int bt_dpm_get_limited_discoverable_state(bt_dpm_status_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_limited_discoverable_state(&dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_get_limited_discoverable_state(&dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; @@ -635,7 +616,7 @@ int bt_dpm_set_data_transfer_state(bt_dpm_status_e value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_set_data_transfer_state(dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_set_data_transfer_state(dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -650,7 +631,7 @@ int bt_dpm_get_data_transfer_state(bt_dpm_status_e *value) BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); BT_CHECK_INIT_STATUS(); - error_code = _bt_dpm_get_error_code(bluetooth_dpm_get_data_transfer_state(&dpm_value)); + error_code = _bt_get_error_code(bluetooth_dpm_get_data_transfer_state(&dpm_value)); if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); *value = dpm_value; diff --git a/test/bt_unit_test.c b/test/bt_unit_test.c index b11dff9..786a09b 100644 --- a/test/bt_unit_test.c +++ b/test/bt_unit_test.c @@ -4143,8 +4143,7 @@ int test_set_params(int test_id, char *param) \n6.BT_DPM_POLICY_HSP_PROFILE_STATE, \ \n7.BT_DPM_POLICY_PBAP_PROFILE_STATE, \ \n8.BT_DPM_POLICY_SAP_PROFILE_STATE, \ - \n9.BT_DPM_POLICY_SPP_PROFILE_STATE, \ - \n10.BT_DPM_PROFILE_NONE"); + \n9.BT_DPM_POLICY_SPP_PROFILE_STATE"); break; case 1: TC_PRT("Input Value Type (avail. : \n0.BT_DPM_BT_ALLOWED, \n1.BT_DPM_RESTRICTED"); @@ -4188,8 +4187,7 @@ int test_set_params(int test_id, char *param) \n6.BT_DPM_POLICY_HSP_PROFILE_STATE, \ \n7.BT_DPM_POLICY_PBAP_PROFILE_STATE, \ \n8.BT_DPM_POLICY_SAP_PROFILE_STATE, \ - \n9.BT_DPM_POLICY_SPP_PROFILE_STATE, \ - \n10.BT_DPM_PROFILE_NONE"); + \n9.BT_DPM_POLICY_SPP_PROFILE_STATE"); break; } |