summaryrefslogtreecommitdiffstats
path: root/stack/gatt/gatt_auth.c
diff options
context:
space:
mode:
authorEtan Cohen <etancohen@google.com>2015-03-31 10:41:53 -0700
committerEtan Cohen <etancohen@google.com>2015-03-31 10:41:53 -0700
commite1a9e52ff59d36bd1bb5b7b3a02fafba6394edfe (patch)
tree0a82ebb8b0be6acf27f7cbf38a44c9f70425e141 /stack/gatt/gatt_auth.c
parentdd05445e57161ac40ae8b37252ae9f453bb31e85 (diff)
parentf7f839985b3931682363d2ef3b7c5cae55a842ee (diff)
downloadandroid_system_bt-e1a9e52ff59d36bd1bb5b7b3a02fafba6394edfe.tar.gz
android_system_bt-e1a9e52ff59d36bd1bb5b7b3a02fafba6394edfe.tar.bz2
android_system_bt-e1a9e52ff59d36bd1bb5b7b3a02fafba6394edfe.zip
Merge commit 'f7f839985b3931682363d2ef3b7c5cae55a842ee' into merge
Change-Id: Iaaec1ea0bf3009b7e32a9a60f697631a3f56e889
Diffstat (limited to 'stack/gatt/gatt_auth.c')
-rw-r--r--stack/gatt/gatt_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stack/gatt/gatt_auth.c b/stack/gatt/gatt_auth.c
index 10cf76e88..ae5214592 100644
--- a/stack/gatt/gatt_auth.c
+++ b/stack/gatt/gatt_auth.c
@@ -192,7 +192,7 @@ void gatt_enc_cmpl_cback(BD_ADDR bd_addr, tBT_TRANSPORT transport, void *p_ref_d
gatt_sec_check_complete(status , p_buf->p_clcb, p_tcb->sec_act);
GKI_freebuf(p_buf);
/* start all other pending operation in queue */
- count = p_tcb->pending_enc_clcb.count;
+ count = GKI_queue_length(&p_tcb->pending_enc_clcb);
for (; count > 0; count --)
{
if ((p_buf = (tGATT_PENDING_ENC_CLCB *)GKI_dequeue (&p_tcb->pending_enc_clcb)) != NULL)
@@ -246,7 +246,7 @@ void gatt_notify_enc_cmpl(BD_ADDR bd_addr)
{
gatt_set_sec_act(p_tcb, GATT_SEC_NONE);
- count = p_tcb->pending_enc_clcb.count;
+ count = GKI_queue_length(&p_tcb->pending_enc_clcb);
for (; count > 0; count --)
{