Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -105,9 +105,9 @@ static void primary_by_uuid_cb(guint8 status, const guint8 *ipdu,
- struct discover_primary *dp = user_data;
- GSList *ranges, *last;
- struct att_range *range;
- - uint8_t opdu[ATT_DEFAULT_LE_MTU];
- + uint8_t *opdu;
- guint16 oplen;
- - int err = 0;
- + int err = 0, buflen;
- if (status) {
- err = status == ATT_ECODE_ATTR_NOT_FOUND ? 0 : status;
- @@ -126,8 +126,9 @@ static void primary_by_uuid_cb(guint8 status, const guint8 *ipdu,
- if (range->end == 0xffff)
- goto done;
- + opdu = g_attrib_get_buffer(dp->attrib, &buflen);
- oplen = encode_discover_primary(range->end + 1, 0xffff, &dp->uuid,
- - opdu, sizeof(opdu));
- + opdu, buflen);
- if (oplen == 0)
- goto done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement