summaryrefslogtreecommitdiffstats
path: root/stack/btm/btm_ble_bgconn.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack/btm/btm_ble_bgconn.c')
-rw-r--r--stack/btm/btm_ble_bgconn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/btm/btm_ble_bgconn.c b/stack/btm/btm_ble_bgconn.c
index b33aa2e2c..2fabe23d6 100644
--- a/stack/btm/btm_ble_bgconn.c
+++ b/stack/btm/btm_ble_bgconn.c
@@ -705,7 +705,7 @@ BOOLEAN btm_send_pending_direct_conn(void )
tBTM_BLE_CONN_REQ *p_req;
BOOLEAN rt = FALSE;
- if ( btm_cb.ble_ctr_cb.conn_pending_q.count )
+ if (!GKI_queue_is_empty(&btm_cb.ble_ctr_cb.conn_pending_q))
{
p_req = (tBTM_BLE_CONN_REQ*)GKI_dequeue (&btm_cb.ble_ctr_cb.conn_pending_q);