OSDN Git Service

LE: Only copy UUID for callback on success
authorAndre Eisenbach <andre@broadcom.com>
Fri, 24 May 2013 05:53:51 +0000 (14:53 +0900)
committerMatthew Xie <mattx@google.com>
Wed, 14 Aug 2013 00:38:31 +0000 (00:38 +0000)
commitdda9a3e71119078181638cf3f5a51e38d173f6d4
tree19830107eba86c2e923a67932d395e7fd67ab3ab
parente4020c28c8a9dc56f927b03a8ca3a17d9401bc1e
LE: Only copy UUID for callback on success

When a GATT client application registers with the stack, the UUID is
always copied into the callback buffer, even if the registration failed.
This patch adds a check to make sure an invalid UUID is not passed back
to the application.

Change-Id: I53ddc7939c096a33a64b00a8902bedba00b61e7d
bta/gatt/bta_gattc_act.c