summaryrefslogtreecommitdiffstats
path: root/stack/btm
diff options
context:
space:
mode:
authorGanesh Ganapathi Batta <ganeshg@broadcom.com>2012-04-27 11:41:19 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:19 -0700
commit7e1faaf64d9d362da70a3f4b4c1fca517fad7862 (patch)
tree51d572d4e5b9cf9444ced7e73758753c5e5e3d63 /stack/btm
parent7f58927df0ee3f2f38367efe62c8901a760eeaa4 (diff)
downloadexternal_bluetooth_bluedroid-7e1faaf64d9d362da70a3f4b4c1fca517fad7862.zip
external_bluetooth_bluedroid-7e1faaf64d9d362da70a3f4b4c1fca517fad7862.tar.gz
external_bluetooth_bluedroid-7e1faaf64d9d362da70a3f4b4c1fca517fad7862.tar.bz2
Assign proper fail reasons to status parameter while sending Auth Complete event when Authentication fails
Change-Id: I0102762b8bfa06b8d99227c431be881269c14961
Diffstat (limited to 'stack/btm')
-rwxr-xr-x[-rw-r--r--]stack/btm/btm_sec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/btm/btm_sec.c b/stack/btm/btm_sec.c
index bdf7f95..a845acc 100644..100755
--- a/stack/btm/btm_sec.c
+++ b/stack/btm/btm_sec.c
@@ -4358,7 +4358,7 @@ void btm_sec_disconnected (UINT16 handle, UINT8 reason)
result = HCI_ERR_HOST_REJECT_SECURITY;
}
(*btm_cb.api.p_auth_complete_callback) (p_dev_rec->bd_addr, p_dev_rec->dev_class,
- p_dev_rec->sec_bd_name, reason);
+ p_dev_rec->sec_bd_name, result);
}
}