From 53ef6df3e40846528a561f762515d1e628077c19 Mon Sep 17 00:00:00 2001 From: Andre Eisenbach Date: Fri, 29 May 2015 14:05:30 -0700 Subject: [PATCH] Check transport before subscribing for service changes Don't subscribe to the service changed characteristic if SMP pairing was a result of cross-key pairing. Change-Id: Ieb4901e82060e2fa2d9d0e909e384de5f6890222 Author: Chaojing Sun Bug: 20894154 --- bta/dm/bta_dm_act.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bta/dm/bta_dm_act.c b/bta/dm/bta_dm_act.c index 60da3b5a2..9593a42ed 100644 --- a/bta/dm/bta_dm_act.c +++ b/bta/dm/bta_dm_act.c @@ -4471,7 +4471,8 @@ static UINT8 bta_dm_ble_smp_cback (tBTM_LE_EVT event, BD_ADDR bda, tBTM_LE_EVT_D else { sec_event.auth_cmpl.success = TRUE; - GATT_ConfigServiceChangeCCC(bda, TRUE, BT_TRANSPORT_LE); + if (!p_data->complt.smp_over_br) + GATT_ConfigServiceChangeCCC(bda, TRUE, BT_TRANSPORT_LE); } if (bta_dm_cb.p_sec_cback) -- 2.11.0