summaryrefslogtreecommitdiffstats
path: root/btif/src/btif_hh.c
diff options
context:
space:
mode:
authorKim Schulz <k.schulz@samsung.com>2013-09-30 10:55:52 +0200
committerZhihai Xu <zhihaixu@google.com>2013-12-03 15:18:48 -0800
commita9eb25c8c01e70613bace21b23a06bd9a10871b1 (patch)
treeef3a9e650ff6e318590217f8e02a4b7004e0782d /btif/src/btif_hh.c
parent5d3f77aab397e4496374708db21e71255992c46e (diff)
downloadandroid_system_bt-a9eb25c8c01e70613bace21b23a06bd9a10871b1.tar.gz
android_system_bt-a9eb25c8c01e70613bace21b23a06bd9a10871b1.tar.bz2
android_system_bt-a9eb25c8c01e70613bace21b23a06bd9a10871b1.zip
Pairing with dissapeard HID decive never times out (in UI)
- added function to notify the UI about failed HID pairing patch set2: - added function header patch set3: - break long line Bug: 10998578 Change-Id: I7314bf07da7ebac7252c6902d987fbca20da2abc
Diffstat (limited to 'btif/src/btif_hh.c')
-rw-r--r--btif/src/btif_hh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/btif/src/btif_hh.c b/btif/src/btif_hh.c
index 1c64e3ec3..ee7277d68 100644
--- a/btif/src/btif_hh.c
+++ b/btif/src/btif_hh.c
@@ -159,6 +159,7 @@ extern BOOLEAN check_cod(const bt_bdaddr_t *remote_bdaddr, uint32_t cod);
extern void btif_dm_cb_remove_bond(bt_bdaddr_t *bd_addr);
extern BOOLEAN check_cod_hid(const bt_bdaddr_t *remote_bdaddr, uint32_t cod);
extern int scru_ascii_2_hex(char *p_ascii, int len, UINT8 *p_hex);
+extern void btif_dm_hh_open_failed(bt_bdaddr_t *bdaddr);
/*****************************************************************************
** Local Function prototypes
@@ -842,6 +843,7 @@ static void btif_hh_upstreams_evt(UINT16 event, char* p_param)
}
else {
bt_bdaddr_t *bdaddr = (bt_bdaddr_t*)p_data->conn.bda;
+ btif_dm_hh_open_failed(bdaddr);
HAL_CBACK(bt_hh_callbacks, connection_state_cb, (bt_bdaddr_t*) &p_data->conn.bda,BTHH_CONN_STATE_DISCONNECTED);
btif_hh_cb.status = BTIF_HH_DEV_DISCONNECTED;
}