Bluetooth: Increment start handle with next discovery

Next discovery for primary and secondary services shall start from the
next handle.

Change-Id: I8bc7ccd9a84848d75b2d9ef0484429599b0c750f
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2016-02-19 11:38:06 +02:00 committed by Gerrit Code Review
commit 920a5b1030

View file

@ -740,8 +740,12 @@ static void att_find_type_rsp(struct bt_conn *conn, uint8_t err,
goto done;
}
/* Continue for the last found handle */
/* Continue from the last found handle */
params->start_handle = end_handle;
if (params->start_handle < UINT16_MAX) {
params->start_handle++;
}
if (!bt_gatt_discover(conn, params)) {
return;
}