summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoHyun Pyun <dh79.pyun@samsung.com>2016-10-05 13:55:22 +0900
committerDoHyun Pyun <dh79.pyun@samsung.com>2016-10-05 13:55:22 +0900
commit675e99a66c22e12330b236713de86a33e5cf2066 (patch)
tree0c4f0da00b67a4f95d0481767a84a53d3094b739
parent5d708f70ba6cb2737e56148e12a86edfe77cc5f0 (diff)
downloadbluetooth-675e99a66c22e12330b236713de86a33e5cf2066.tar.gz
bluetooth-675e99a66c22e12330b236713de86a33e5cf2066.tar.bz2
bluetooth-675e99a66c22e12330b236713de86a33e5cf2066.zip
Change-Id: I358b97719fc4deb2e57e6bd8e309211ce45927c8 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rw-r--r--src/bt-handler.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bt-handler.c b/src/bt-handler.c
index d71602e..5228568 100644
--- a/src/bt-handler.c
+++ b/src/bt-handler.c
@@ -458,6 +458,11 @@ void _bt_cb_bonding_created(int result, bt_device_info_s *dev_info,
if (dev == NULL && ad->searched_item != NULL)
dev = _bt_get_dev_info(ad->searched_device, ad->searched_item);
+ retm_if(_bt_is_matched_profile(ad->search_type,
+ dev_info->bt_class.major_device_class,
+ dev_info->bt_class.major_service_class_mask) == FALSE,
+ "Not supported profile");
+
if (result != BT_ERROR_NONE) {
ERR("Failed to pair with device : Error Cause[%d]", result);
elm_object_disabled_set(ad->scan_btn, EINA_FALSE);