Skip to content

Commit

Permalink
BLE: Srvc Change Indication is not processing when remote added srvc
Browse files Browse the repository at this point in the history
Srvc change Indication is not processing when remote added the
service when its in connected state.
Its due to Host checking for is SRVC indication is for HID connection
or not. If its not HID connection then we are ignoring the srvc change
indication

Change-Id: I884550c89880e905f05c92c257208d352c8dd193
  • Loading branch information
Janardhana Rao Bokka authored and Gerrit - the friendly Code Review server committed Dec 25, 2019
1 parent eb070d5 commit 3185ef0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bta/gatt/bta_gattc_act.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1264,17 +1264,17 @@ void bta_gattc_process_indicate(uint16_t conn_id, tGATTC_OPTYPE op,

notify.handle = handle;

/* if service change indication/notification, don't forward to application */
if (bta_gattc_process_srvc_chg_ind(conn_id, p_clrcb, p_srcb, p_clcb, &notify,
&p_data->att_value))
return;

/* Not a service change indication, check for an unallocated HID conn */
if (bta_hh_le_is_hh_gatt_if(gatt_if) && !p_clcb) {
APPL_TRACE_ERROR("%s, ignore HID ind/notificiation", __func__);
return;
}

/* if service change indication/notification, don't forward to application */
if (bta_gattc_process_srvc_chg_ind(conn_id, p_clrcb, p_srcb, p_clcb, &notify,
&p_data->att_value))
return;

/* if app registered for the notification */
if (bta_gattc_check_notif_registry(p_clrcb, p_srcb, &notify)) {
/* connection not open yet */
Expand Down

0 comments on commit 3185ef0

Please sign in to comment.